[jboss-dev-forums] [JBoss AS 7 Development] - Re: System Property is not resolved in standalone.xml

Valerio Spadaro do-not-reply at jboss.com
Fri Jan 13 05:42:22 EST 2012


Valerio Spadaro [https://community.jboss.org/people/vspadaro] created the discussion

"Re: System Property is not resolved in standalone.xml"

To view the discussion, visit: https://community.jboss.org/message/646650#646650

--------------------------------------------------------------
I am migrating my application from jboss 6 to 7 and I would to use some custom system properties in the standalone.xml for logging and datasource configuration but jboss doesn't resolve them.
I think that Jboss resolves system properties only in some sections of standalone.xml (for example it resolves ${jboss.binding.address} or {jboss.socket.binding.port-offset} in socket and webservice sections).

I have the same problem in JPA persistence.xml inside a jar: i would to point to a different orm file so i can use my application with different dbms (oracle or mysql). In jboss 6 i used this:

<mapping-file>/META-INF/${db.type}/orm.xml</mapping-file>

but jboss 7 doesnt resolve db.type. 

However jboss 7 can resolve the following tag in the same file:

<property name="hibernate.dialect"   value="${db.dialect}" />
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/646650#646650]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120113/fc7f8028/attachment.html 


More information about the jboss-dev-forums mailing list