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:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to