Re: Sun Application server JDBC
Re: Sun Application server JDBC
- Subject: Re: Sun Application server JDBC
- From: 時期 精霊 <email@hidden>
- Date: Wed, 16 Nov 2005 17:15:35 +0100
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden