You may also like to know that Enhydra Enterprise
( http://www.enhydra.org/ )
provides integrated Tomcat and JNDI support.
Shawn

Rickard Öberg wrote:

> > I am trying to tie Tomcat with JNDI to use J2EE pattern to obtain resources:
> >
> > Context context = new InitialContext();
> > dataSource = (DataSource)context.lookup("java:comp/env/jdbc/myDataSource");
>
> The latest jBoss release (see jboss.org for download) contains embedded
> Tomcat 3.2 integration and support for "java:comp/env" namespace where
> you can bind environment entries, resource references, and EJB
> references.
>
> We also have a J2EE deployment facility that supports EAR (Enterprise
> ARchives) as specifed in the J2EE spec. This allow you to deploy
> applications which get hosted by Tomcat and the jBoss EJB container
> respectively.
>
> On an implementation note, we solved the "java:comp/" namespace by
> switching context based on thread contextclassloader. Because of this we
> do not need anything special other than the AdaptiveClassLoader being
> set properly on servlet request. Note that "java:/" is *NOT* context
> switched but global to the entire JVM. This is where we bind the
> transaction manager, connection pools, etc.
>
> We are working on doing Tomcat 4.0 integration as well.
>
> regards,
>   Rickard, jBoss dev.
>
> --
> Rickard Öberg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Shawn McMurdo              mailto:[EMAIL PROTECTED]
Lutris Technologies        http://www.lutris.com
Enhydra.Org                http://www.enhydra.org



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

Reply via email to