> I know this is not exactly what this thread was about, but in addition to > having multiple separate deployment descriptors be able to be generated > with different values, I'd really like the ability to deploy the same bean > multiple times in the SAME deployment descriptor, with different > configurations. For example, I'd like to be able to deploy an Entity bean > as both a Read-Only bean in WLS, and as a Read-Write bean that invalidates > the Read-Only cached value for the Read-Only deployment. > > Any ideas on how this can be done?
You can't. The question is how? What's the easy way? The key here is the ejb:bean jndi-name parameter. I think a good solution could be letting user define multiple ejb:bean tags, loop over all those ejb:bean, create a separate entry for each on, and so on. There should be a dittoing facility too, for example: @ejb:bean name="foo" jndi-name="a" type="CMP" ... @ejb:bean jndi-name="b" b will use all attributes from a but will use b as jndi-name and bind to it. There should also be a mechanism to bind settings from other tags to a particular jndi-name, say @appserver:readonly jndi-name="b" for a readonly method, but only for jndi-name b. > Jason Ara. > > -----Original Message----- > > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 31, 2002 11:42 AM > > To: 'Rainer Schmitz'; 'xdoclet-user' > > Subject: RE: [Xdoclet-user] xdoclet and multiple deployement. > > > > > > 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 > > > > _______________________________________________ > 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
