Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Adding extensions to the wizard that creates a new Xdoclet EJB in a WTP EJB project.
Adding extensions to the wizard that creates a new Xdoclet EJB in a WTP EJB project. [message #162787] Fri, 03 March 2006 22:20 Go to next message
Gary Mohr is currently offline Gary MohrFriend
Messages: 25
Registered: July 2009
Junior Member
I am fairly new to the WTP environment and need a little help.

I need to add logic to a new WTP server adapter (which I am writing) to
insert some additional Xdoclet tags in the generated source file for a new
EBJ Bean. I have created the new server adapter and starting/stopping the
server as well as publishing some types of projects to the server seems to
work. I am interested in getting additional Xdoclet tags inserted following
the "ejb.bean" annotations currently being added by WTP.

Could someone please point me to the correct extension to use or to an
example of some code that implements this type of capability.

Thanks in advance.

Gary
Re: Adding extensions to the wizard that creates a new Xdoclet EJB in a WTP EJB project. [message #164031 is a reply to message #162787] Wed, 15 March 2006 22:41 Go to previous message
Gary Mohr is currently offline Gary MohrFriend
Messages: 25
Registered: July 2009
Junior Member
I have found that I can modify the Xdoclet tags inserted into my generated
source file using the following extension:

<extension point="org.eclipse.jst.j2ee.ejb.annotations.emitter.template ">
<emitter builderId="xdocletbuilder"
classpathProvider="com.bull.eclipse.jonas.JonasClasspathProvider "
ejbIntrospector=" org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.Xdocle tIntrospector "
entityTemplates="templates/ejb/entity"
mergeController="ejb-merge.xml"
messageTemplates="templates/ejb/message" name="XDoclet"
sessionTemplates="templates/ejb/session"/>
</extension>

Unfortunately when I insert this extension it affects the creation of all
EJBs in all projects (including those not associated with my WTP Adapter).

In thinking about this a little more I guess I have some more basic
questions. The Xdoclet annotations that I planned to insert into the
generated source are to get Web server specific deployment descriptors
created when the Xdoclet builder is run during the publish of an EJB project
to my web server. EJB projects can be dynamically associated with multiple
types of Web servers and that association can also be dynamically removed
after the project is created.

My questions are:
Should Xdoclet annotations in the source be used for creating Web server
specific deployment descriptors or is there some better way to do this ?
If Xdoclet annotations are to be used, when should they be inserted into the
source (at creation time, when a project is associated with a server, or
when a project is published to a server) ?

Gary


"Gary Mohr" <Gary.Mohr@bull.com> wrote in message
news:duafep$a3a$1@eclipse.org...
>I am fairly new to the WTP environment and need a little help.
>
> I need to add logic to a new WTP server adapter (which I am writing) to
> insert some additional Xdoclet tags in the generated source file for a new
> EBJ Bean. I have created the new server adapter and starting/stopping the
> server as well as publishing some types of projects to the server seems to
> work. I am interested in getting additional Xdoclet tags inserted
> following the "ejb.bean" annotations currently being added by WTP.
>
> Could someone please point me to the correct extension to use or to an
> example of some code that implements this type of capability.
>
> Thanks in advance.
>
> Gary
>
Previous Topic:Dali in a WTP Build?
Next Topic:Tomcat Integration issues
Goto Forum:
  


Current Time: Tue Apr 16 05:25:06 GMT 2024

Powered by FUDForum. Page generated in 0.10603 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top