File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes How to start EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to start EJB" Watch "How to start EJB" New topic

How to start EJB

vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello sir,
Iam new to EJB please tell me how to start ,what directory structure i shuould use,iam using tomcat server whether it is possible to deploy through that plese tell me if possible give some simple examples.
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Tomcat is web server and you cannot deploy EJB in it. You need application server to deploy EJB.

Have a look at THIS

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106

gives you answers..

<a href="" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="" target="_blank" rel="nofollow">Java Weblog</a> | <a href="" target="_blank" rel="nofollow">Computing Articles</a>
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello sir,
Thank you for reply but that is in unix,but i require with respect to weblogic server ,please give me the directory structure of ejb with weblogic server and where to create .jar or .war or .ear files.
Animesh Mandal

Joined: Jan 03, 2007
Posts: 3
If you are using WSAD 5.1.2 or RAD 6.0 you can create EJB from Enterprise Application.

Then from EJB project you can create Entity bean, Session bean, MDB according to your necessity.
In WSAD you can make you own server to run the application by using JNDI configuration. Once you are done with your EJB creation, before you deploy it, you need to generate RMIC deployment code and also need to configure the deployment descriptor.

From Enterprise Application you can export .ear file and from Web Module you can generate .war files. .ear files consist of .jar files and .war file, with meta-inf folder for with deployment.xml.

You can then use the .ear and .war file remotely to run the application.
Robert Berg

Joined: Dec 29, 2006
Posts: 10
Please refer to the BEA website for documentation on how to create EJBs on WebLogic.

<a href="" target="_blank" rel="nofollow">Exception: null</a>
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
thank you for reply but iam not using WSAD iam using weblogic7.0 in that iam not understanding the directory structure and how to deoly that
please tell me how to test first ejb application.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Don't you just put the key in the ignition and turn it and it starts up? JK

Check out the link that Robert Berg posted.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: How to start EJB
It's not a secret anymore!