pls explain this code
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, June 2, 2008 02:13 AM

Enter your full question. Give me a breif idea of jndi and why we use intial context and where we use it pls refer to the code attached. Please use html tags to format code blocks.String GQS_URL = "t3://10.6.13.133:29800"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.PROVIDER_URL, GQS_URL); Context ctx = new InitialContext(env); ShipmentTrackingMgrHome home = (ShipmentTrackingMgrHome) ctx .lookup("SHIPMENT_TRACKING_MGR"); stmgr = home.create();    More>>

Enter your full question.

Give me a breif idea of jndi and why we use intial context and where we use it pls refer to the code attached.


Please use html tags to format code blocks.String GQS_URL = "t3://10.6.13.133:29800";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, GQS_URL);

Context ctx = new InitialContext(env);
ShipmentTrackingMgrHome home = (ShipmentTrackingMgrHome) ctx
.lookup("SHIPMENT_TRACKING_MGR");
stmgr = home.create();

   <<Less

Re: pls explain this code

Posted By:   Shan_Thiruvarur  
Posted On:   Thursday, July 31, 2008 05:17 PM

Google JNDI and Naming Service !

Do some basic work before asking simple questions.
About | Sitemap | Contact