What is XDoclet?

hi all,
i'm currently trying to use Eclipse with JBoss IDE to develop a web-based application. The application is required to provide web services.
I have gone through the tutorial provided at  http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=72248. In the example, it uses XDoclet to create neccesary pakage file such as war, ear. My question is, what is XDoclet? Can I use XDoclet to create wsr file which basically the package for web services?

Besides, can i deploy my web services under my own application? eg, my application is running at http://localhost:8080/myApps and JBoss.Net is at http://localhost:8080/jboss-net. After I deployed a web service (says, myWebServices), my client application is required to connect to http://localhost:8080/jboss-net/services/myWebServices. How can i configure it so that the client application is required to connect to http://localhost:8080/myApps/services/myWebServices?

please guide..thanks...
pleasureAsked:
Who is Participating?
 
Computer101Commented:
PAQed, with points refunded (125)

Computer101
E-E Admin
0
 
Giant2Commented:
0
 
sudhakar_koundinyaCommented:
XDoclet is an extended Javadoc Doclet engine
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
sudhakar_koundinyaCommented:
0
 
Giant2Commented:

" XDoclet is an open source code generation engine. It enables Attribute-Oriented Programming for java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your java sources. This is done in special JavaDoc tags. "

0
 
softenggCommented:
XDoclet is an open source code generation engine. It enables Attribute-Oriented Programming for java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your java sources. This is done in special JavaDoc tags.


XDoclet will parse your source files and generate many artifacts such as XML descriptors and/or source code from it. These files are generated from templates that use the information provided in the source code and its JavaDoc tags.


This approach has several benefits:

You don't have to worry about out dating deployment meta-data whenever you touch the code. The deployment meta-data is continuously integrated.
Working with only one file per component gives you a better overview of what you're doing. If your component consists of several files, it's easy to lose track. If you have ever written an Enterprise Java Bean, you know what we mean. A single EJB can typically consists of 7 or more files. With XDoclet you only maintain one of them, and the rest is generated.
You dramatically reduce development time, and can concentrate on business logic, while XDoclet generates 85% of the code for you.

Currently XDoclet can only be used as part of the build process utilizing Jakarta Ant.

Although XDoclet originated as a tool for creating EJBs, it has evolved into a general-purpose code generation engine. XDoclet consists of a core and a constantly growing number of modules. It is fairly straightforward to write new modules if there is a need for a new kind of component.

XDoclet comes with a set of modules for generation of different kinds of files. Users and contributors can write their own modules (or modify existing ones) if they wish to extend the functionality of XDoclet.

Cut Redundant Work. XDoclet helps you to eliminate redundant or "boiler plate" work. Code your business logic and let XDoclet generate the necessary boiler plate and support code for it.
J2EE Made Easy. XDoclet's advanced code generation features makes it easier to code J2EE applications. You write the enterprise bean implementation and XDoclet generates interfaces, value objects, struts forms and much, much more for you. XDoclet follows many widely recognized J2EE patterns.
Support for Leading Servers and Tools. XDoclet comes bundled with modules for all the leading application servers: JBoss, BEA WebLogic, IBM WebSphere, Oracle IAS, Orion, Borland, MacroMedia JRun, Jonas, Pramati, Sybase EAServer and many more. Supported tools: Castor, Hibernate, several JDO vendors, Struts, WebWork, MockObjects and many more.
Extensible. XDoclet's modular design makes it easy for you to write your own modules. Identify repeatable or boiler plate code in your application and write XDoclet templates to generate them.
Open, Distributed Development. XDoclet is developed by a group of experts around the world and distributed under a flexible BSD license. Avoid vendor lock-ins by using XDoclet. Also, the distributed character of XDoclet development makes sure that it will satisfy the needs of most users instead of a single vendor interest.
Referecne : http://xdoclet.sourceforge.net/xdoclet/index.html

0
 
Giant2Commented:
softengg,
why you post entirely the link I posted before?
If "pleasure" visit that site could see all the text you post.
0
 
pleasureAuthor Commented:
From what I understand (correct me if i wrong), XDoclet basically helps us to generate those 'helping files' and also xml-ish files. To work with  XDoclet, we need to spend time to read and understand how XDoclet works which i think it's quite time consuming, am I rite?

Can I use XDoclet to generate web-services.xml? web-services.xml is required to deploy a web service into JBoss. If it cannot be done, how usually ppl use Eclipse to develop web service and deploy it into JBoss?

thanks again...
0
 
Giant2Commented:
>Can I use XDoclet to generate web-services.xml?
Yes, like Ant do (do you know it?).
0
 
pleasureAuthor Commented:
yupe, I do know Ant but I'm not expert in using it. Is that mean we need to customize XDoclet to generate web-services.xml? or we need to use Ant to generate the xml file? as i know, XDoclet is depends on Ant to perform it's task, so basically it's Ant tool..:p

How abt the other issue i post earlier...
*****************************************************************************
Besides, can i deploy my web services under my own application? eg, my application is running at http://localhost:8080/myApps and JBoss.Net is at http://localhost:8080/jboss-net. After I deployed a web service (says, myWebServices), my client application is required to connect to http://localhost:8080/jboss-net/services/myWebServices. How can i configure it so that the client application is required to connect to http://localhost:8080/myApps/services/myWebServices?
*****************************************************************************
Is it possible for us to do something like this?
0
 
softenggCommented:
Giant2, i did not notice u have pasted the URL. I pasted the text as it gives more elaborated info right infront of eye and if it is of interest then user can go to that url. Anyway, i appologize but intention was not to copy your URL.
0
 
pleasureAuthor Commented:
ok, i have found the half of the solution.. this is what is found:

We can download JBoss.Net xDoclet module from http://www.nsdev.org/jboss/stories/xdoclet-module-jboss-net.jar. From the documentation (http://www.myj2ee.com/Members/Firedragon/jbossnet), JBoss.Net xDoclet module will help us to create the web-services.xml, but after i have added the module into my Eclipse enviroment, it's not working, i don't know why? I just couldn't see 'jbossnet' as one of my subtask but the strange thing is when i press Ctrl + Space i can select @jbooos-net as one of the xDoclet tag from the selection list.

So what I did is, i manually create the web-service.xml and it's working..
following is the excerpt from web-service.xml
************************************************
<service name="MyServices" provider="Handler">
<parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
<parameter name="beanJndiName" value="ejb/MyServices"/>
<parameter name="allowedMethods" value="*"/>
</service>
************************************************

please feel free to post your comment..
0
 
sudhakar_koundinyaCommented:
OK by me
0
 
pleasureAuthor Commented:
there is no answer i can accept... can i just leave it like that?
0
 
sudhakar_koundinyaCommented:
>> there is no answer i can accept... can i just leave it like that?
That is the reason, Venabilli proposed to close the question with out giving the points to others ;-)
0
 
pleasureAuthor Commented:
ok..thanks..:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.