Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » xDoclet and oc4j task
xDoclet and oc4j task [message #206627] Fri, 11 January 2008 12:55 Go to next message
Eclipse UserFriend
Originally posted by: conrad.crampton.kent.pnn.police.uk

Hi,
I am new to xdoclet but having followed a couple of tutorials etc. have
managed to get somewhere with creating session ejb using the xdoclet
wizard but have come across a problem generating the app server specific
deployment descriptor. In this case oc4j. The xdoclet docs list that there
is an oc4j specific task (with appropriate xdoclet tags too), but when I
go to the ejbdoclet setting in the project properties there is no oc4j
listed so I can't select it as a task to run when I run xdoclet from
within Eclipse.
There is an autogenerated build.xml file that is created before the
xdoclet task runs that appears to take the tasks from the ejbdoclet config
window but manually editing this doesn't work as it gets overwritten on
each compilation.

So the question is, how do I add oc4j task option to the ejbdoclet config
window?

Many thanks in advance
Conrad
Re: xDoclet and oc4j task [message #206929 is a reply to message #206627] Thu, 17 January 2008 07:28 Go to previous message
Naci Dai is currently offline Naci DaiFriend
Messages: 55
Registered: July 2009
Member
XDoclet plugin has an extension point to add server specific tasks.

XDoclet is not being developed anymore so we do not have any plans to
add new support for it.


However, If you are able to code a plugin, you can look at the existing
extensions for jboss, weblogic etc. to add the oc4j.

Look at the plugins named:

ejbtools/plugins/org.eclipse.jst.j2ee.xdoclet.runtime

in plugin.xml you need to add task provider extension:

<!-- OC4J -->
<extension
id="org.eclipse.jst.j2ee.xdoclet.ejbDocletTaskProvider.oc4j "
name="OC4J EJBDoclet Task Provider"
point=" org.eclipse.jst.j2ee.ejb.annotations.xdoclet.ejbDocletTaskPr ovider ">
<EjbdocletTaskProvider
class="my.OC4JEjbdocletTaskProvider"
defaultSelection="false"
description="Adds oc4j task to ejbdoclet"
....

And implement a few classes to to provide the behavior


> Hi,
> I am new to xdoclet but having followed a couple of tutorials etc. have
> managed to get somewhere with creating session ejb using the xdoclet
> wizard but have come across a problem generating the app server specific
> deployment descriptor. In this case oc4j. The xdoclet docs list that
> there is an oc4j specific task (with appropriate xdoclet tags too), but
> when I go to the ejbdoclet setting in the project properties there is no
> oc4j listed so I can't select it as a task to run when I run xdoclet
> from within Eclipse.
> There is an autogenerated build.xml file that is created before the
> xdoclet task runs that appears to take the tasks from the ejbdoclet
> config window but manually editing this doesn't work as it gets
> overwritten on each compilation.
>
> So the question is, how do I add oc4j task option to the ejbdoclet
> config window?
>
> Many thanks in advance
> Conrad
>
Previous Topic:Optimizing Exporting of Libraries
Next Topic:Using WTP 3.0M4 to create a project at a specified location
Goto Forum:
  


Current Time: Thu Apr 25 11:45:51 GMT 2024

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

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

Back to the top