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]

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
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.
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