Hi, I am using Jboss 4.0 as my application server , trying to use EJB(beginer) i was able to create my Jar file , containing the class files and the ejb-jar.xml which i was able to deploy on the server , by just placing it in the deploy directory and got the message that " it has been deployed" and it gives me jndi name for the same as well now how do i invoke the service from the client? how to get the stub for the client to work? Books say that the application server is to give you the client jar file that the client needs to user to run the client application how to go about it? thanks.
posted 8 years ago
okay , i was finally able to test my session bean without having to create any stubs. somebody tell me if its wrong.. i created the java client( .class) file in the same package as for the bean,and two interfaces in my client i set the Properties for the context factory, and the URL_PROVIDER i passed these to my initialContext() constructor. then just the usual way to get reference to EJBHome and EJBObject and i was able to call the method of my stateless bean.