You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by rony john <ro...@gmail.com> on 2008/01/24 22:32:27 UTC

jdbc connection

Hi all,

  i have a JSR portlet deployed in jetspeed portal server.
How can i get jdbc connection in portlet without direct jdbc connection?

thanks,
rony

RE: jdbc connection

Posted by "Weaver, Scott" <we...@ugs.com>.
IMO, the best way to achieve this is grab the connection from JNDI.
Jetspeed doesn't really expose the JDBC connection to portlets as that
is not defined within the spec.  You could make your portlet
non-portable and expose the jdbc connection via a custom Jetspeed
service, but I recommend against that.

-scott

> -----Original Message-----
> From: rony john [mailto:rony.john@gmail.com]
> Sent: Friday, January 25, 2008 9:37 AM
> To: Jetspeed Users List
> Subject: Re: jdbc connection
> 
> hi Dennis,
> in jetspeed1 we can get connection from Torque
> like
> Torque.init(<conf file>)
> con = Torque.getConnection();
> 
> but  in jetspeed 2 how we can get connection?
> 
> 
> thanks,
> rony
> 
> On Jan 25, 2008 4:31 AM, Dennis Dam <d....@hippo.nl> wrote:
> 
> > Hi Rony,
> >
> > What do you mean with "direct jdbc connection"? Can you try to
explain
> > exactly what you want?
> >
> > Dennis
> >
> > rony john wrote:
> >
> > > Hi all,
> > >
> > >   i have a JSR portlet deployed in jetspeed portal server.
> > > How can i get jdbc connection in portlet without direct jdbc
> connection?
> > >
> > > thanks,
> > > rony
> > >
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail:
jetspeed-user-help@portals.apache.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jdbc connection

Posted by rony john <ro...@gmail.com>.
hi Dennis,
in jetspeed1 we can get connection from Torque
like
Torque.init(<conf file>)
con = Torque.getConnection();

but  in jetspeed 2 how we can get connection?


thanks,
rony

On Jan 25, 2008 4:31 AM, Dennis Dam <d....@hippo.nl> wrote:

> Hi Rony,
>
> What do you mean with "direct jdbc connection"? Can you try to explain
> exactly what you want?
>
> Dennis
>
> rony john wrote:
>
> > Hi all,
> >
> >   i have a JSR portlet deployed in jetspeed portal server.
> > How can i get jdbc connection in portlet without direct jdbc connection?
> >
> > thanks,
> > rony
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: jdbc connection

Posted by Dennis Dam <d....@hippo.nl>.
Hi Rony,

What do you mean with "direct jdbc connection"? Can you try to explain 
exactly what you want?

Dennis

rony john wrote:

> Hi all,
>
>   i have a JSR portlet deployed in jetspeed portal server.
> How can i get jdbc connection in portlet without direct jdbc connection?
>
> thanks,
> rony
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org