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
Post a Comment