aspose file tools*
The moose likes Other Java Products and Servers and the fly likes How to deploy and Use a Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "How to deploy and Use a Session Bean" Watch "How to deploy and Use a Session Bean" New topic
Author

How to deploy and Use a Session Bean

Manas Sahu
Greenhorn

Joined: Jul 22, 2003
Posts: 1
Hi,
I'm trying to deploy a Stateful Session Bean in Orion 2.0.2 Application Server. I need some help regarding on how to call the EJB from the Client.
My Source Codes are as follows :
--------------------------------------------------

The Steps I've followed to deploy the EJB are as follows :
1. Made a jar file named examples-ejb.jar, containing
examples\ejb\
examples\ejb\Count.class
examples\ejb\CountBean.class
examples\ejb\CountHome.class
META-INF\
META-INF\ejb-jar.xml
2. Aded a line <ejb-module path="../applications/examples-ejb.jar" remote="false" /> to the C:\Orion\Config\Application.xml file.
3. Copied the jar file to the C:\Orion\Applications\ Directory.
4. Started Orion Server by java -jar Orion.jar and it got started successfully and created Two Files and a Folders like below:
C:\application-deployments\default\example-ejb.jar\
C:\application-deployments\default\example-ejb.jar\deployment.cache
C:\application-deployments\default\example-ejb.jar\orion-ejb-jar.xml
Now how can i call this EJB Class from my Client Class if the Client Class is in the same Server where the Orion Server is installed, and from a different Computer other the Server where the Orion Application Server is installed.
[ July 22, 2003: Message edited by: Marilyn de Queiroz ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
You might call the EJB from a servlet.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deploy and Use a Session Bean