Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes what are the INTIAL_CONTEXT parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "what are the INTIAL_CONTEXT parameters" Watch "what are the INTIAL_CONTEXT parameters" New topic
Author

what are the INTIAL_CONTEXT parameters

Raja Sagar Panamgipalli
Ranch Hand

Joined: Aug 13, 2003
Posts: 109
Hello there...

Guys,i'm not able understand what to insert here in the HelloClient program ..ie..while getting the initialcontext...
i haven't really gone through the documentation ..plz help me as to why this is needed...


Is the above correct...its autogenerated by the IDE...
when i compile the Hworld Client i also get the exception as below...

this was shown in the JBuilder tool i'm using.....kindly help me....
regards
Sagar


SCJP 1.4<br />SCBCD 1.3
Thomas von Haugwitz
Greenhorn

Joined: Jun 16, 2004
Posts: 1
hi,

simple solution
change environment.put(Context.PROVIDER_URL, "jnp://localhost:8080");
to environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");
and make sure your JBoss is running :-)

Greetings


Thomas
 
wood burning stoves
 
subject: what are the INTIAL_CONTEXT parameters
 
Similar Threads
JNDI Configuration Query
EJB JNDI NoInitialContext Exception
EJB 3 Eclipse Jboss issues
making a rmi call with ipv6
making a rmi call over ipv6 using jboss