For information, the following code work inside my app:
try {
InitialContext context = new InitialContext();
DataSource ds = (DataSource) context.lookup("java:comp/env/jdbc/
Nadesico");
NSLog.out.appendln("Datasource = " + ds);
}catch (Exception e ){
e.printStackTrace();
}
So:
- Is there a way to tell WO to lookup the good name in the context?
- If not, how can I replace my EO datasource from the model with this
one?
- Any of you know how to configure the app server to correct the
behaviour? (returning the full java:comp/env/jdbc url instead of the
one in web.xml)
Regards Kuon
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
