Solved

What is XDoclet?

Posted on 2004-09-08
17
340 Views
Last Modified: 2010-03-31
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...
0
Comment
Question by:pleasure
  • 5
  • 4
  • 4
  • +2
17 Comments
 
LVL 12

Expert Comment

by:Giant2
ID: 12004280
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12004304
XDoclet is an extended Javadoc Doclet engine
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12004307
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12004327

" 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
 
LVL 1

Expert Comment

by:softengg
ID: 12004484
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
 
LVL 12

Expert Comment

by:Giant2
ID: 12004516
softengg,
why you post entirely the link I posted before?
If "pleasure" visit that site could see all the text you post.
0
 

Author Comment

by:pleasure
ID: 12004603
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
 
LVL 12

Expert Comment

by:Giant2
ID: 12004613
>Can I use XDoclet to generate web-services.xml?
Yes, like Ant do (do you know it?).
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:pleasure
ID: 12004794
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
 
LVL 1

Expert Comment

by:softengg
ID: 12004883
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
 

Author Comment

by:pleasure
ID: 12052639
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
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12241160
OK by me
0
 

Author Comment

by:pleasure
ID: 12244442
there is no answer i can accept... can i just leave it like that?
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12245494
>> 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
 

Author Comment

by:pleasure
ID: 12245943
ok..thanks..:-)
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12270067
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 40
commonTwo  challenge 63 98
advertisement module in core php 4 87
recursion example 16 68
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now