Dmitry
Dmitry

Reputation: 21

websphere path of installedApps directory

Java How I get path of websphere installedApps directory?

I use

String webSphereAppsPath = new File(".").getCanonicalPath()

Result:

C:\IBM\WebSphere\AppServer2\profiles\AppSrv01

I need result:

C:\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\BASTIONNode01Cell

Upvotes: 0

Views: 1553

Answers (1)

Brett Kail
Brett Kail

Reputation: 33936

Per the Application binary settings topic in the Knowledge Center, you want ${APP_INSTALL_ROOT}/${CELL}. See the Creating, editing, and deleting WebSphere variables topic for sample code on expanding this variable.

(That said, I suspect directly accessing this directory is the wrong approach. You should probably consider asking a new question along the lines of "What is the best way to do X? I can accomplish it by looking at the installedApps directory, but it seems like there should be a better way.")

Upvotes: 1

Related Questions