Configuring Resource Adapter outside XML

65 views
Skip to first unread message

David Hatton

unread,
Jun 24, 2015, 4:05:56 AM6/24/15
to ironjaca...@googlegroups.com
Have some propertied defined for our resource adapter currently defined via the Ironjacamar XML. E.g.

       <config-property name="databaseName">myDatabase</config-property>

However we would really need to be able to change this at deploy time without having to rebuild the RAR. E.g. via standalone.xml or system property?

How can we do that? And to make matters possibly a little more complicated the RAR is deployed embedded inside an EAR (we can change this if there is no alternative but ideally we would like to keep it embedded).


Jesper Pedersen

unread,
Jun 29, 2015, 8:03:24 AM6/29/15
to ironjaca...@googlegroups.com, hatt...@gmail.com
You probably want to remove the ironjacamar.xml activation in that case, and use an external configuration - such as a dash-ra.xml (IronJacamar) or an entry in :resource-adapters: (WildFly) - to make the system property requirements more clear.

Then you can use the ${systemproperty:defaultvalue} notation for your <config-property>'s.

HTH

Reply all
Reply to author
Forward
0 new messages