Weblogic newbie question

Hi guys,

I just started to learn abt Weblogic. I am trying to use 7.0.

I already have an application with the ejb-jar.xml ready.

How do i generate the weblogic-ejb-jar from ejb-jar.xml ?

Is there any tool out there that generates weblogic-ejb-jar directly from ejb-jar.xml ?

Regards,

Meka Toka

[336 byte] By [mekatokaa] at [2007-9-28 18:58:32]
# 1
Refer to 'Creating EJB Deployment Descriptors' http://e-docs.bea.com/wls/docs70/webserv/example.html#develop033
dvohra09a at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Ok I meant how to generate weblogic-ejb-jar.xml from ejb-jar.xml.

Not how to pacakage them ?

I know i can generate the file using the DTD and an XML editor. But thats not what i want.

Say I am porting an application that used to exist on say JBoss to Weblogic. Then i would have the pre packaged application EAR which would not have any weblogic specific descriptors.

In that case .. what to do ? Are there any tools ?

Regards,

Meka Toka

mekatokaa at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

You do not actually need the weblogic-ejb-jar.xml file, to be honest. That only provides WLS-specific additional data. You can deploy to both JBoss and WebLogic with only the ejb-jar.xml file - unless you're doing CMP, in which case I strongly recommend using all of the vendor-specific files.

And there's nothing to prevent you from putting all of the XML files in your finished ejb-jar, so that the same .jar file can be deployed on (say) both WLS and JBoss.

And while I don't know of any specific tool that will generate a vendor-specific file from the ejb-jar.xml file, many other tools allow you to build EJBs and the XML files at the same time. I believe EJBGenerator is a freebie one that does it for WLS.

crackersa at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Yeah that thing i know that at the time of building application there are tools that use tags etc to generate all at once. But I already have an application.

And Yes, I am using CMP so i guess i would have to use the vencor specific files.

So my only option would be to use an XML editor and create the files myself.

Regards,

Meka Toka

mekatokaa at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
With EjbGen you could generate the ejb classes and the deploymentdescriptors with a Bean Class. http://www.beust.com/cedric/ejbgen/
dvohra09a at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
I remeber there is a tool to build weblogic jar foryou:Weblogic Builder-you can use this tool to migrate your jboss-jar to weblogic-jar.
lixylixya at 2007-7-12 17:18:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...