Use of <local-last> in jboss-deployment-structure.xml

Solution Verified - Updated -

Issue

  • What is the use of <local-last value="true"/> in jboss-deployment-structure.xml ?
  • How can I make the local-resource present in a sub-deployment (WAR or an EJB Jar) have the lowest priority ?
  • If the same class is present both in the sub deployment as myappA.war and in another sub deployment myAppB.war ,that is visible to the myAppA.war, then how to ensure that the Class from the other deployment i.e myAppB.war will be loaded, rather than the class actually packaged in the myappA.war.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP).
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.