Comments on: First steps with Java Embedding in Oracle SOA Suite 11g BPEL 2.0 – useful API calls https://technology.amis.nl/2012/01/11/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls/ Friends of Oracle and Java Sat, 01 Aug 2015 11:10:05 +0000 hourly 1 http://wordpress.org/?v=4.2.3 By: lalit https://technology.amis.nl/2012/01/11/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls/#comment-7983 Fri, 28 Nov 2014 12:05:09 +0000 http://technology.amis.nl/blog/14923/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls#comment-7983 Hi,

I am facing an issue related to java embedding .
Here is what I am trying to achieve.
I have to generate a MD5 hash string from an xml file content then I have to check if it matches with another MD5 hash string.
Below is java code I am using.
String md5=getVariableData(“md5Var”).toString(); //this is the variable that needs to be md5 hashed
try{
MessageDigest md = MessageDigest.getInstance(“MD5″);

byte[] myByteArray1 = md5.getBytes(“UTF-8″);
byte[] myByteArray2 = md.digest(myByteArray1);
BigInteger bigInt = new BigInteger( 1, myByteArray2);
String javahashedstring = bigInt.toString(16);
setVariableData(“md5Var”, javahashedstring, false); //return md5 hashed variable
}catch (Exception ex){
ex.printStackTrace();
}

The above java code works fine if I run it as a standalone program.
The java program has is using Message digest class which is present in JSR177.I have added that in sca-inf\lib folder of the composite, added to the project properties->Library and classpath.
I have also added this jar to the my soa server folder E:\SOA11G7\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.ext_11.1.1 and after that I ran Ant command as per the oracle documentation.

Also I am using bpel 2.0.My JDK version is JDK1.6.29

But it still give me below error.I have spent a lot of time on this by going through various documentation and blogs but I am still not able to find an answer.

Any suggestion/pointers would be appreciated.

]]>
By: Sai https://technology.amis.nl/2012/01/11/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls/#comment-7912 Tue, 30 Sep 2014 07:12:41 +0000 http://technology.amis.nl/blog/14923/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls#comment-7912 Thanks Lucas. You rock as always !!!

]]>
By: Basu Ramanan https://technology.amis.nl/2012/01/11/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls/#comment-7000 Thu, 23 Feb 2012 06:19:43 +0000 http://technology.amis.nl/blog/14923/first-steps-with-java-embedding-in-oracle-soa-suite-11g-bpel-2-0-useful-api-calls#comment-7000 hi

We ran the ant script after placing the jar file in <FMW_HOME>/soa/modules/oracle.soa.ext_11.1.1and folder and also confirmed that the MANIFEST file is updated with my custom jar file name.

But oracle.soa.ext_11.1.1.x.jar file does not seem to be automatically added to the server’s classpath and hence when I restarted the weblogic server custom jar files are not being picked up.

Any other additional steps to be performed ?
Would adding oracle.soa.ext.jar explicitly onto BpelcClasspath help ?

]]>