tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Fryer <>
Subject How do i deploy a ManagedConnectionFactory in a war file?
Date Tue, 01 Jan 2013 00:45:43 GMT
I have a jar file that contains all the JCA implementation classes including
ResourceAdapter and ManagedConnectionFactory implementation classes.  In
that jar file project, when i run my test cases with tomee, i get the
following printed out to the console that shows the classes being detected
by tomee and resources being created...

INFO - Found ConnectorModule in classpath:
INFO - Beginning load:
INFO - Configuring enterprise application:
WARNING - Method 'lookup' is not available for 'javax.annotation.Resource'.
Probably using an older Runtime.
INFO - Configuring Service(id=Default Managed Container, type=Container,
provider-id=Default Managed Container)
INFO - Auto-creating a container for bean
Container(type=MANAGED, id=Default Managed Container)
INFO - Creating Container(id=Default Managed Container)
INFO - Using directory D:\Users\Anthony\AppData\Local\Temp for stateful
session passivation
INFO - Auto-linking resource-ref 'java:comp/env/eis/sabre/900001' in bean
com.virginaustralia.sabre.jca.MultiUserConnectionPoolTest to
INFO - Dumping Generated ra.xml to:
INFO - Configuring Service(id=sabre-ra-jcaRA, type=Resource,
INFO - Configuring Service(id=eis/sabre/900001, type=Resource,

In my webapp, i have that jar as a dependency and have created a ra.xml file
and put it in the WEB-INF folder.  When I startup tomee for the webapp i
don't see any log messages in the console that indicate the ResourceAdapter
and ManagedConnectionFactory have been found and created by tomee.  How
exactly should i package this resource adapter up in my war file?  Should I
be putting a .rar file in WEB-INF/lib instead of just the .jar file?  Where
should i put the ra.xml file?

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message