0 Replies Latest reply on Nov 23, 2016 9:32 AM by cristian.briscan_wk

    Resource remaping per application

    cristian.briscan_wk

         Hello, I'm new to WildFly (and to JEE application servers in general), so sorry if this is not a new subject. I want to find out if one can remap resources in WildFly per application (web application in this case).

       

         In Tomcat there is the context.xml file of the application copied in $CATALINA_BASE/conf/[enginename]/[hostname]/[appname].xml. And there you can remap resources (a DataSource for instance) from the name required by the application to a resource name you declare in $CATALINA_BASE/conf/server.xml, by using <ResourceLink> tags. This allows the server administrator to remap resources per application, without modifying war files. Is there a similar stuff in WildFly?

       

         The ideea is that I want two versions of the same application, installed on the same server, each looking up on the same resource in JNDI, but I want them to point to different resources (JDBC data sources in this case).

       

         Thank you.