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

Reply via email to