aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes How to compile and run ejbs through a command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "How to compile and run ejbs through a command prompt" Watch "How to compile and run ejbs through a command prompt" New topic
Author

How to compile and run ejbs through a command prompt

viswanath balam
Greenhorn

Joined: Jun 25, 2007
Posts: 15
Hi
How to compile and run a sample stateless session bean from a command prompt. Can anybody had tried, if please reply with steps.


visu
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
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

Joined: Oct 21, 2007
Posts: 106
Hi,
Simply compile all the java files to class files, then create a jar and deploy it to application server.

-Lave


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, ITIL V3 Foundation Certification
 
 
subject: How to compile and run ejbs through a command prompt
 
Similar Threads
Command for running a java file
error in running first java code
JVM Error
How to enable assertions?
Installing the Android SDK