File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy and Use a Session Bean

 
Manas Sahu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might call the EJB from a servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic