Hi, I try to get some objects from InitialContext via JNP, but all the time I 
receive:

  | javax.naming.CommunicationException [Root exception is 
java.rmi.UnknownHostException: Unknown host: XXX; nested exception is: 
  |     java.net.UnknownHostException: XXX]
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:347)
  |     at 
client.ClientSideWheelsApp.initializeObjectsFromContext(ClientSideWheelsApp.java:96)
  |     at client.ClientSideWheelsApp.main(ClientSideWheelsApp.java:128)
  | 
where the XXX is only local name of the host (but surely I need the fully 
qualified name). 
My jndi.properties looks like this:

  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.provider.url=jnp://XXX.domain.com:1099
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | jnp.localPort=12099
  | 
Why the InitialContext carries just the local name of the server? How can I 
force it to change it..?
Thx very much

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881635


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to