Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes tools for generation deployment descriptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "tools for generation deployment descriptors" Watch "tools for generation deployment descriptors" New topic
Author

tools for generation deployment descriptors

Subramanian A.S
Greenhorn

Joined: Aug 06, 2003
Posts: 2
Is there any tool for generating deployment descriptors automatically. i.e if i provide the jar file it should generate ejb-jar.xml and weblogic-ejb-jar.xml. similarly for web.xml. please help
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
WebLogic has a tool called DDInit.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
Check out the RI from Sun where you just have to give the class files,all others are generated by the server.
Subramanian A.S
Greenhorn

Joined: Aug 06, 2003
Posts: 2
Originally posted by Lasse Koskela:
WebLogic has a tool called DDInit.

dd's are generated by DDInit??
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
dd's are generated by DDInit??

That's what the docs say. For example, the documentation of EJBInit (part of DDInit) says:
Target a JAR file or a folder containing files that you intend to archive as a JAR file, and EJBInit will generate the ejb-jar.xml and the weblogic-ejb-jar.xml files for the module.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Originally posted by Subramanian A.S:
Is there any tool for generating deployment descriptors automatically. i.e if i provide the jar file it should generate ejb-jar.xml and weblogic-ejb-jar.xml. similarly for web.xml. please help

Now that you are lookign for a tool, why dont you check out XDoclet to generate the deployment descriptors. Looks like a real cool thing to experiment with.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Does XDoclet generate a valid web.xml or ejb-jar.xml if your source code doesn't have any XDoclet tags in their javadocs?
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Never used it myself. But i am *almost* certain that they work on the tags that we attach as comments to the Bean file. S'd be able to generate web.xml file as well.(not sure here, but sd'nt be a big deal for them).
The biggest advantage , i guess, is the way it can be integrated into the daily builds. I mean I dont have to worry about the bean and the descriptors/ interfaces to be in sync. The only code that gets checked into the source control is the bean and nothing else. Run build, generate descriptors, interfaces and ofcourse do a ejbc equivalent and move on.
I guess they generate value objects as well. I agree, so do IDEs, but the fact that i dont need to check in any of the code into the source control + XDoclet's integration with ANT makes it appear so cool to me. There should be lots of other interesting stuff that it offers. I mean yeah, more the generated code , faster is the development.
The authors , i guess are experts on using this tool. Some day i will check it out for sure!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I know XDoclet works on the javadoc tags. What I was wondering whether XDoclet creates a "default" web.xml/ejb-jar.xml for source code that has no XDoclet tags.
For example, if I have three servlets will the web.xml (if it is generated at all in the absence of any XDoclet-tagged source code) contain URL-mappings for all of them using "servlet/<class name>" or something similar as a default pattern?
Anyway, I'll post this question to the "Other Open Source Projects" forum...
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

What I was wondering whether XDoclet creates a "default" web.xml/ejb-jar.xml for source code that has no XDoclet tags.

I guess not.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tools for generation deployment descriptors
 
Similar Threads
Session Bean Portability
a problem about ejb1.2
Newbie - CNTR0063W error when starting server
Deployment descriptor
Local EJB call - Naming Exception