I'm working on a project that consists of a "web" project that contains my
struts presentation layer, and a utility "business" project that contains my business layer. I'm just using pojos (no EJBs). Both these projects are part of the same EAR file.
My
test server has a websphere datasource setup, and I have a resource reference named jdbc/tmDB defined in the web deployment descriptor for the "web" project.
Anything in my web project can access the datasource. Anything in my business project can access the datasource as well. However if an object in my business project is run as a
thread and I try to access the datasource I get the following logged on the console...
[1/30/06 10:32:55:397 EST] 41dbc872 ConnectionFac I J2CA0122I: Resource reference jdbc/tmDB could not be located, so default values of the following are used: [Resource-ref settings]
res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)
Oddly enough the database updates are still successful. Any idea why threads from the "business" project utility jar cannot find the resource?
Thanks!
Todd
[ January 30, 2006: Message edited by: Todd Johnson ]