Hi, Did you try to put it in an ear instead of war directly? Le 1 janv. 2013 00:46, "Anthony Fryer" <apfr...@hotmail.com> a écrit :
> 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: > > d:\users\anthony\documents\dev\sabreresourceadapter\sabre-resource-adapter\sabre-ra-jca\target\test-classes > INFO - Beginning load: > > d:\users\anthony\documents\dev\sabreresourceadapter\sabre-resource-adapter\sabre-ra-jca\target\test-classes > INFO - Configuring enterprise application: > > D:\Users\Anthony\Documents\DEV\SabreResourceAdapter\sabre-resource-adapter\sabre-ra-jca > 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 > com.virginaustralia.sabre.jca.MultiUserConnectionPoolTest: > 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 > Resource(id=eis/sabre/900001) > INFO - Dumping Generated ra.xml to: > D:\Users\Anthony\AppData\Local\Temp\ra-9057826138595557674sabre-ra-jca.xml > INFO - Configuring Service(id=sabre-ra-jcaRA, type=Resource, > provider-id=sabre-ra-jcaRA) > INFO - Configuring Service(id=eis/sabre/900001, type=Resource, > provider-id=eis/sabre/900001) > > 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: > http://openejb.979440.n4.nabble.com/How-do-i-deploy-a-ManagedConnectionFactory-in-a-war-file-tp4659993.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >