(Resending as I sent to the wrong list, initially...)

Hi Kevin,

I saw your post here: 

http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=X
DT-556

regarding datasource dependency in jboss-service.xml.  I too am using
Xdoclet from CVS and invoking via Maven RC1.  In my project.properties I
have this:

maven.xdoclet.hibernatedoclet.jbossservice.0.depends=jboss.jca:service=Local
TxCM,name=MSSQLDS

which is seemingly identical to the settings in your post, however, the
Hibernate jboss service subtask is not picking it up.

When I comment out the ifHasConfigParam in the template, I see that the
configParameterValue is not picking up my depends parameter.  I wonder if
there was anything special you did to get this to work.

Regards,
Roland



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Stevens
Sent: December 10, 2003 5:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] hibernatedoclet and jboss-service.xml merging

On Tue, 2003-12-09 at 19:16, Roland wrote003A
> When merging using hibernatedoclet, with a custom
> jboss-service-custom.xdt that contains the following:
> 
> <depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends>
> 
> The resulting jboss-service.xml has the depends element outside the
> target mbean.  We want this inside.

My first thought was that the jboss-service-custom.xdt merge point was
intended for including additional mbeans not being processed by xdoclet,
like the jboss-service.ent merge point in the jboss module's service
subtask.  However, the hibernate one looks like it only handles a single
class anyway, it doesn't appear to do any looping, so I'm not sure why
it would need such a merge point.  At any rate, if you want another
merge point adding within the mbean element, or the existing one moving,
I suggest you raise an enhancement request in JIRA.

> I?ve read that this is somewhat fixed in the CVS version, however, it
> only addresses the depends element for the datasource.  Won?t there be
> instances where we?d want additional elements to be merged in the
> correct location?  Can anyone clarify this?

You can put whatever you like in the depends config parameter, it
doesn't necessarily have to be the datasource.  The main limitation I
can see is that it only appears to cater for a single depends
parameter.  If you need more that one, then again I suggest you raise an
enhancement request.

Alternatively, you could try out the JBoss module's own service task. 
That's more flexible (for one thing, it allows for multiple depends
elements using jboss.depends tags); the hibernate one is just a
simplified version, which specifies a bunch of default values and
re-uses the hibernate tags to save you also having to add jboss tags to
your classes.


Andrew.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to