jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes Creating Stubs with Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Creating Stubs with Jboss" Watch "Creating Stubs with Jboss" New topic

Creating Stubs with Jboss

prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
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?
prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
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.

want to know if its the correct way to do it?
I agree. Here's the link: http://aspose.com/file-tools
subject: Creating Stubs with Jboss
It's not a secret anymore!