Is it possible to share a deployment directory in an EAP standalone-mode server?

Solution Verified - Updated -

Issue

  • Is it possible to share a directory for deployments for several EAP6 instances in standalone-mode?
  • User would also like for all members of a cluster to look to the same NAS directory for deployments, instead of tightly coupling these to the actual server/deployments directory.
  • Applications are unexpectedly redeployed or undeployed where the deployment directory is shared, with multiple applications, in standalone-mode.
  • Using a single custom deployment directory for multiple standalone instances might create problem when multiple instance tries to read the same location at the same time.
  • There are 3 jboss instances running in 3 different port. The requirement is, to keep the .war file in one folder and share the same war with all 3 jboss intances. Since jboss creates marker file (.deployed or .failed), will it create a race condition if all 3 instances try to share the same .war file. How can this be achieved?
  • We are planning to create common disk mount and keep the war file. We can create soft file link in each server instance to the war file in the disk mount folder. Will this approach work and what are the risks involved?

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content