Multiple deployment settings.....
It's tricky and honestly I haven't given it full thought what the
problems could be. I don't know, maybe we should provide a mechanism to
let user specify which deployment he's targeting now (say
${deployment1.project.name} and n <deployment> nested elements of
ejbdoclet where you define the property there and activate one of those
deployments?).Remember for deployment-oriented stuff use merge points, it's not a good idea to bound the code to a specific deployment. Cheers, Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of Rainer Schmitz > Sent: Thursday, January 31, 2002 3:17 PM > To: xdoclet-user > Subject: Re: [Xdoclet-user] xdoclet and multiple deployement. > > Hi, > > I have a similiar problem: I want to deploy different applications (say > shop1 and shop2) based on the same beans within the same ejb server > (JBoss). To be able to distinguish the bean "instances" I prefix the > JNDI name with the application name, e. g. shop1/ShoppingCart. > > With xDoclet (v1.1.1) I tried to set the application name as ant property: > > * @ejb:bean name="${project.name}/ShoppingCart" type="CMP" > * jndi-name="ejb/${project.name}/ShoppingCart" > > Unfortunately the property replacement does not work properly at this > place. It does work for other tags (e.g. within @ejb:env-entry), so I'm > sure the ant property is set and propagated correctly. > > Any ideas? Or any other solutions to the multiple deployment problem? > > Thanks, > Rainer > > > [EMAIL PROTECTED] wrote: > > > > A different approach is to use @some:tag > > someParameter="${some.ant.property}", and XDoclet will replace > > ${some.ant.property}" with the ant property's value. You can define > these > > properties in build.xml, or in external properties files, which you can > read > > into ant with <property file="fubar.properties"/>. Then you can provide > > different versions of this external properties file to obtain different > > deployment descriptors without having to change anything else. This > requires > > the CVS version (I think). > > > > Would that do the trick for you? > > > > Aslak > > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
