"Wolfgang Knauf" wrote : Hi,
  | 
  | Do you have a "jndi.properties" file? If not, you have to provide some 
properites to "InitialContext":
  |         Properties props = new Properties();
  |   |         props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  |   |         props.setProperty(Context.URL_PKG_PREFIXES, 
"org.jboss.naming.client");
  |   |         props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
  |   |         props.setProperty("j2ee.clientName", 
"ClientNameFromJBossClientXML");
  |   |         
  |   |         InitialContext initialContext = new InitialContext(props);
  | 
  | What is the value of "HotelTestBean.RemoteJNDIName"?
  | It should be "EARName/EJBName/remote" if your app is bundled as EAR file, 
or "EJBName/remote" if you deploy only an EJB jar.
  | 
  | Hope this helps
  | 
  | Wolfgang
Hi i ried to use this code without editing it but i still have this error:Need 
to specify class name in environment or system property, or as an applet 
parameter, or in an application resource file: java.naming.factory.initial 
But after a reaserch i found that i have to install jars

"So Just adding the "appserv-rt.jar" in sun server lib folder to the classpath 
does the trick for providing the corba properties" :tih is what i found is this 
a solution!!
Thank u for help



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268879#4268879

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268879
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to