
I have had a really hard time finding the jar file containing the interface com.sap.guid.IGUID...
After googling for about 3 hours I finally decided to utilize Java itself to find this class.
After all it's quite easy...
I was following the How To... Create Modules for the JEE Adapter Engine How-To Guide, so I already had some code running on PI...
All I had to do was add this code into the process method (after the audit variable had been initialized!):
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
...
try {
Class c = Class.forName("com.sap.guid.IGUID");
URL loc = c.getProtectionDomain().getCodeSource().getLocation();
audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS, c + " found at " + loc);
} catch (Exception e) {
audit.addAuditLogEntry(key, AuditLogStatus.ERROR, "Class com.sap.guid.IGUID not found");
}
...
}
Then I just ran the example and looked into the RWB Message-Monitoring to find the filesystem location where the class was located.
It turned out that com.sap.guid.IGUID was located at /usr/sap/<sid>/<instance>/j2ee/cluster/bin/core_lib/sap.com~tc~bl~guidgenerator~impl.jar
From here on it's just a simple step to a universal "Where-Is-My-Jarfile" Adapter Module, but that's something I'll leave to you 🙂
Greez, Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |