On Fri, 02 Feb 2001, you wrote:
> I want to share the JDBC datasources I'm using for my beans
> with my servlets via JNDI bindings.
> 
> I know this is possible with Orion.
> Can anyone tell me if it's possible with JBoss and how?
> 
> Thanks in advance, Owen.
> 
> This email has been virus scanned using Sophos Anti-Virus by intY (www.inty.net)
> 

IF servlets are running inVM --> Context.lookup( "java:/DSName" );
ELSE you are out of luck.  DataSources (and more particularly Connections, I
think) are not serializable or remote (at least, not necessarily; each vendor
is free to make them so) so you can't really go around exposing them via JNDI
to other VMs.

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to