• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to deploy and Use a Session Bean

 
Greenhorn
Posts: 1
  • 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 ]
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might call the EJB from a servlet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!