Can we remove the jars placed in "/tmp" directory when uploading it or deploying a project using business-central in JBoss B*MS 6?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Business Process Management Suite (BPMS) 6.x
  • Red Hat JBoss Enterprise Business Rule Management System (BRMS) 6.x

Issue

After uploading a jar (in Artifact Repository page ) or deploying a project (build & deploy button) in business-central, the created jar is placed in /tmp directory at first.

  • Is there anyway we can prevent this from happening?
  • Can we safely remove all the jars from this /tmp folder without corrupting anything?

Resolution

By default the jar is created in /tmp directory before being uploaded to a specific repository. It is possible to set a different directory by passing the following parameter as a JVM option:

   -Djava.io.tmpdir=/opt/jboss/newTmpPath

For instance:

   ./standalone.sh -Djava.io.tmpdir=/opt/jboss/newTmpPath

The jar can be removed once it is created.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments