Hi Gabriel Ciuloaica .
Thank you very much for a quick response. I hope you can do me a little bit
more favor.
I'm using type4 drivers' connection pooling for which I to use JNDI.
The class works fine for Bea Weblogic and Orion Servers but gives exception
in j2ee.
Following is the scenario where I have to use the System.getProperties().
(Only some selected lines.)
Hashtable env;
env = System.getProperties();
env.put(Context.INITIAL_CONTEXT_FACTORY,dbContextFactory);
env.put(Context.PROVIDER_URL, "file:"+sFileStore+"/");
ctx = new InitialContext(env);
Context ctx = new InitialContext(System.getProperties());
ds = (DataSource) ctx.lookup(sPooledExternalName);
con = ds.getConnection(dbUserName,dbPassWord);
What should be the substitute?
Thanks & Regards
Shujah Nawaz
Software Developer.
Ph # 5584677-8.
www.visualsoft-inc.com.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html