Friday, June 09, 2006

Java Embedding

Java embedding - that is is java code within the BPEL process. The main purpose for which I used this was database updates as well as logging . Updating the database was a challenge and one of the best ways is to do through the database adapters. But since I am using Eclipse & not JDev, didnt have the database adapters functionality there. As a workaround created a separate BPEL process in JDev and was successful in updating the database. However, wasnt successful in calling this BPEL process created in JDEV from the main BPEL process created in Eclipse.

Hence, ended up using java embedding as a final successful workaround.
Application database updates:
I used java embedding mostly for updating the application database through stored proc calls.

Getting values from dehydration store through api's


Logging:

Logging may be done in opmn logs or you may define your own custom log file.
Example:Using log4j (include the jar file in the lib dir)
Logger logger = Logger.getLogger( "default.com.logs.appllogfile" );
logger.info( "Info using log4j" );

Other levels of logging:
a. Info
b. Debug
c. Audit
...
...
...

2 Comments:

At 6:23 PM, Anonymous Anonymous said...

doesn't db adapters work with eclipse? isn't it oracle pm functionality and not IDE? I think it should work.

 
At 8:08 PM, Blogger massachusetts said...

There are a few features that are there in JDev (BPEL) and not in Eclipse. Thats the reason why I created a new bpel process to update the database using database adapters in JDEV. Was successful in doing so. However, there were lots of namespace issues in invoking this jdev process from the main eclipe bpel process. So ended up using java embedding for the same.

 

Post a Comment

<< Home