Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to compile and run ejbs through a command prompt

 
viswanath balam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How to compile and run a sample stateless session bean from a command prompt. Can anybody had tried, if please reply with steps.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Compiling ,you just need a plain old Java Comiler along with EJB API in classpath.

To run you need a EJB Container,write corresponding DD's and deploy your classes and you can call those methods from your Standalone Application or Servlets.
But it is not a simple task.
[ December 21, 2007: Message edited by: ramya sri ]
 
Lave Kulshreshtha
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Simply compile all the java files to class files, then create a jar and deploy it to application server.

-Lave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic