File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes writing deployment descriptor 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 "writing deployment descriptor" Watch "writing deployment descriptor" New topic
Author

writing deployment descriptor

Tabish, Sa
Greenhorn

Joined: Jan 10, 2001
Posts: 6
Hi, can anyone tell me how to write the deployment descriptor for an EJB that I want to deploy into WEBLOGIC. I have created the bean, and its two interfaces but stuck on creating the deployment descriptor. It is just a simple "Hello World" EJB, please help.
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
I can help you out if you are using WL6.0, not familiar with 5.x
Tabish, Sa
Greenhorn

Joined: Jan 10, 2001
Posts: 6
It is WEBLOGIC 6.0, please help...
Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
You can use the weblogic's deployment tool. It also creates the deployment descriptor. You can peek into this Deployment Descriptor to find out what goes into a deployment descriptor.
pavi kavi
Ranch Hand

Joined: Mar 01, 2001
Posts: 56
Hi
Do this
u have two dd files
1. ejb-jar.xml in this u have enter all the fully qualified class file names of ur home ,remote & bean & also mention the which type os bean it is go thru the example in the wl6.0 u ill find the ejb-jar.xml & only repalce those values okay
2. in weblogic-ejb-jar.xml
write only 2 things one is ejb reference name & another one is the jndi name
i hope it will help u
pavithra
Originally posted by Tabish, Sa:
Hi, can anyone tell me how to write the deployment descriptor for an EJB that I want to deploy into WEBLOGIC. I have created the bean, and its two interfaces but stuck on creating the deployment descriptor. It is just a simple "Hello World" EJB, please help.

Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
Check out the .xml files provided in \samples\examples\ejb (or ejb20). If you can't get it going, post your .xmls.
Tabish, Sa
Greenhorn

Joined: Jan 10, 2001
Posts: 6
Thanks guys,
LAST QUESTION: Do I have to include the deployment descriptors
in a jar file, along with the bean class & the
interfaces. Or just include it in the directory
of jar file.
Dasharatham Bitla
Greenhorn

Joined: Mar 15, 2001
Posts: 2
Yes, u have to include the Deployment Descriptors in the ejb jar file.
Originally posted by Tabish, Sa:
Thanks guys,
LAST QUESTION: Do I have to include the deployment descriptors
in a jar file, along with the bean class & the
interfaces. Or just include it in the directory
of jar file.

hema_bhandari
Greenhorn

Joined: Jul 15, 2001
Posts: 3
hi!!!
i have a similar problem.
firstly after the jar file is created where do i put it and further on how do i go about it.
secondly i have a jar which is working fine with weblogic 5.1.and not with weblogic 6.0.what changes are necessary.
thanx hema
 
 
subject: writing deployment descriptor