tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Is there any option for .rar files on Tomcat 5.5.7
Date Fri, 04 Feb 2005 03:23:36 GMT

But you can fake it by implementing a custom javax.naming.spi.ObjectFactory 
and returning an object implementing 
javax.resource.cci.ConnectionFactory.  I have done this to mimick the Kodo 
JDO JCA adapter so that whether the app is running in Weblogic or Tomcat, I 
access the JDO persistence manager in exactly the same way....

     public Connection getConnection()
     {
         return (javax.resource.cci.Connection) pmf().getPersistenceManager();
     }

note:  KodoPersistenceManager implements javax.resource.cci.Connection 
which is why this works.


See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html#Adding%20Custom%20Resource%20Factories


Jake

At 12:09 AM 2/4/2005 +0100, you wrote:
 >On Thu, 03 Feb 2005 18:04:00 -0500, Edmon Begoli <ebegoli@gmail.com> wrote:
 >> I understand that Tomcat is not a full J2EE app. server, but I would
 >> like to know if there
 >> are any options to deploy .rar JCA adapters on Tomcat 5.5.7?
 >
 >No, Tomcat doesn't support JCA, sorry.
 >
 >--
 >xxxxxxxxxxxxxxxxxxxxxxxxx
 >Rémy Maucherat
 >Developer & Consultant
 >JBoss Group (Europe) SàRL
 >xxxxxxxxxxxxxxxxxxxxxxxxx
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
 >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Mime
View raw message