-
1. Re: javax.naming.ServiceUnavailableException
raghav75 Feb 20, 2002 4:55 PM (in response to epotvin)hai,
here is the suggestion from me
add this piece of code in ur java file
Properties p = new Properties();
p.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
p.setProperty("java.naming.provider.url","jnp://" + serverHost + ":" + serverPort);
ctx= new InitialContext(p);
BeanHome home= (BeanHome)ctx.lookup(beanName);
for ex:customerBean
CustomerHome home = (CustomerHome)ctx.lookup(CustomerHome);
here port no is 1099
and serverhost is ur host id -
2. Re: javax.naming.ServiceUnavailableException
jbossobj Feb 22, 2002 12:06 AM (in response to epotvin)Hello,
I'm having sort of the same problem but trying to run from a client on the server. I have yet to try this to see if it works. Thank you for the workaround!
However, coding it this way defeats the purpose. So can anyone illuminate me on the best way to get this working!
TIA.