Thanks. That worked.
For those interested, I just added the following to
jboss_xml.xdt (renaming it myjboss_xml.xdt) under the
<entity>, <session>, and <method> elements and told
XDoclet where to find it using the "jbossTemplateFile"
attribute in the <jboss> element of the <ejbdoclet>
element in my ant file. If there is a cleaner way to
implement this then please share it. Also, I could
not find a quick way to implement the ejb-ref element
that goes along with the invoker bindings, so if
anyone knows how to do that I would appreciate it. In
fact, any corrections to my implementation would be
appreciated.
In my source I referenced the new tags as follows
where @jboss.invoker is required if
@jboss.invoker-bindings is used.
@jboss.invoker-bindings (0..1)
@jboss.invoker(0..*)
invoker-proxy-binding-name
jndi-name
-------------------------------
Example:
@jboss.invoker-bindings
@jboss.invoker
invoker-proxy-binding-name="myProxyBindingName1"
jndi-name="Proxy1"
@jboss.invoker
invoker-proxy-binding-name="myProxyBindingName2"
jndi-name="Proxy2"
-------------------------------
Insert this in jboss_xml.xdt:
<XDtClass:ifHasClassTag
tagName="jboss:invoker-bindings">
<invoker-bindings>
<XDtClass:forAllClassTags
tagName="jboss:invoker">
<invoker>
<invoker-proxy-binding-name><XDtClass:classTagValue
tagName="jboss:invoker"
paramName="invoker-proxy-binding-name"/></invoker-proxy-binding-name>
<XDtClass:ifHasClassTag
tagName="jboss:invoker" paramName="jndi-name">
<jndi-name><XDtClass:classTagValue
tagName="jboss:invoker"
paramName="jndi-name"/></jndi-name>
</XDtClass:ifHasClassTag>
</invoker>
</XDtClass:forAllClassTags>
</invoker-bindings>
</XDtClass:ifHasClassTag>
Thanks.
--- "M.-Leander Reimer" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> at the moment you could take the original
> jboss_xml.xdt, insert the
> required <invoker-bindings> and <invoker> elements
> at the relevant
> places and then use the jbossTemplateFile attribute
> of the jboss task to
> specify the location for your modified XDT file.
>
> Should work.
>
> Leander
>
>
> [EMAIL PROTECTED] schrieb:
>
> > Figured I try and ask this question again.
> >
> > XDoclet: 1.2.2
> >
> > I am trying to generate <invoker-bindings> and
> > <invoker> elements like the listing below in my
> > jboss.xml file. These elements are available in
> the
> > JBoss 3.2 and 4.0 DTDs. When will those tags be
> > available in XDoclet? Or, is there currently a
> way to
> > generate those elements in my jboss.xml? I cannot
> > find anything in the documentation referencing
> those
> > jboss.xml elements.
> >
> > Thanks.
> >
> > --------jboss.xml--------
> >
> > <jboss>
> > <enterprise-beans>
> > <session>
> > <ejb-name>HelloWorld</ejb-name>
> >
> <jndi-name>helloworld/Hello</jndi-name>
> > <configuration-name>Standard Stateless
> > SessionBean</configuration-name>
> > <invoker-bindings>
> > <invoker>
> >
> >
>
<invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
> > </invoker>
> > </invoker-bindings>
> > </session>
> > </enterprise-beans>
> > </jboss>
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> >
> >
> >
>
-------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT
> Products from real users.
> > Discover which products truly live up to the hype.
> Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user