-
1. Re: Please give solution,and get appriciation from Jboss Fre
adrian.brock Aug 27, 2002 9:47 AM (in response to sripad)Put the directory
C:\Hello World\resources\
in the classpath not the file
Regards,
Adrian -
2. Re: Please give solution,and get appriciation from Jboss Fre
tdang Aug 27, 2002 10:20 AM (in response to sripad)I think you have to add the jnpserver.jar in your classpath.
By the way, I would try as following:
Try to create the context in the client like this:
...
Properties p = new Properties();
p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put(Context.PROVIDER_URL, "jnp://localhost:1099");
Context context = new InitialContext(p);
MyBeanHome home = (MyBeanHome) PortableRemoteObject.narrow(context.lookup("MyFirstBean"), MyBeanHome.class);
So you can see where the error will be thrown.
Hope this helps! -
3. Re: Please give solution,and get appriciation from Jboss Fre
sripad Aug 27, 2002 6:32 PM (in response to sripad)Thnaks
Tung Dang and Adrian ,with help you guys today I executed my first hello World EJB.tO execute this I have been Strugling since last two weeks.
Thanks again to Tung Dang and Adrian
sripad