properties - Passing a defined pom.xml property to @jboss.entity-command in java class -


i have project several entity beans , @ point have

@jboss.entity-command name="informix-serial" 

in dev, database mysql in prd have informix. want pass property defined in pom.xml, associated profile when compile project.

i've tried this:

in pom.xml

<profiles>   <profile>     <id>dev</id>     <properties>       <jboss.entity.command>mysql-get-generated-keys</jboss.entity.command>     </properties>   </profile>   <profile>     <id>prd</id>     <properties>       <jboss.entity.command>informix-serial</jboss.entity.command>     </properties>   </profile> </profiles> 

and in beans:

@jboss.entity-command name="${jboss.entity.command}" 

the problem is, obviously, variable ${jboss.entity.command} not being resolved value.

any light on subject appreciated.

thanks in advance, ml


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -