In this example I’m going to show how to use a Virtual Hosts in a single stack to list a server directory to get some libraries from SAP PI/PO.
The Virtual Hosts allows to share a folder content through of http protocol using the web browser.
1. Expose a directory using the Virtual Hosts (VH), go to http://<host>:<port>/nwa/http
and select de default configuration and check the Directory List option:
2. Create new alias, select the Aliases tab > Add Alias and give it a unique alias Name and set the Path, to: /usr/sap/<SID>/DVEBMGS<nr>/j2ee/cluster/bin/
and Save the configuration, in my case is: vpath=/usr/sap/XID/J00
3. Listing directory in the browser, open the url: http://<host>:<port>/<alias>
, in my case is: http://dummyhost:50000/vpath/
4. Downlad the libraries, acording to wiki scn sap the libraries are stored into /usr/sap/<SID>/DVEBMGS<nr>/j2ee/cluster/bin/
and organized as follow:
- ext/com.sap.aii.af.lib/lib: com.sap.aii.af.lib.mod.jar (AM,AD)
- ext/com.sap.xi.util.misc/lib: com.sap.aii.utilxi.server.jar (P)
- ext/com.sap.xi.util.misc/lib: com.sap.aii.utilxi.core.jar (P)
- ext/com.sap.xi.mapping.api.lib/lib: com.sap.xpi.ib.mapping.lib.jar (M)
- ext/com.sap.xi.mapping.tool.lib/lib: com.sap.xi.mapping.tool.lib_api.jar (M)
- ext/com.sap.guid: sap.com~tc~bl~guidgenerator~impl.jar (AD,P)
- ext/security.class: sap.com~tc~sec~ssf~core.jar (AD)
- ext/tc~bl~txmanager~plb: sap.com~tc~bl~txmanagerimpl~plb~impl.jar (AD)
- services/com.sap.aii.proxy.svc/lib: com.sap.aii.proxy.svc_api.jar (P)
- services/com.sap.aii.af.ms.svc/lib: com.sap.aii.af.ms.svc_api.jar (AD)
- services/com.sap.aii.af.svc/lib: com.sap.aii.af.svc_api.jar (AM,AD)
- services/com.sap.aii.af.cpa.svc/lib: com.sap.aii.af.cpa.svc_api.jar (AM,AD)
- services/com.sap.aii.sec.svc/lib: com.sap.aii.sec.svc_api.jar (AD)
- interfaces/com.sap.aii.af.ms.ifc/lib: com.sap.aii.af.ms.ifc_api.jar (AM,AD)
- interfaces/appcontext_api: sap.com~tc~je~appcontext_api~API.jar (AD)
- system: sap.com~tc~logging~java~impl.jar (AM,AD)
AD = Adapter Development, AM = Adapter Module, D = Dispatcher Module M = Mapping, P = Java Proxy
Browsing the directory list, the files can be downloaded selecting each one.
Bye =)
References
- https://blogs.sap.com/2013/05/13/getting-access-to-file-system-in-java-only-systems/
- Where to get the libraries for XI development – Process Integration – Support Wiki (sap.com)
- Setup com.equalize.xpi.af.modules Adapter Module project in NWDS easily using EGit | SAP Blogs
- FormatConversionBean – One Bean to rule them all! | SAP Blogs
- ExcelTransformBean Part 1: Convert various Excel formats to simple XML easily | SAP Blogs
Thanks Bro!!! SAVED MY LIFE!
I’m glad to hear that