Use case :
Use spring in Bpel to read,write huge files. Since default File Adapter works in Bpel memory this would be good for heavy lifting. I know we have options of java embedd and EJB, but since springs are considered as best java option I would like to explore this option.
Steps:
1. Create a SOA Project , Composite.
2. Create a java interface that has method for reading/writing files : IFileUtils.java method readWriteFile(String filename)
3. Create a java class that implements the IFileUtils interface for reading/writing files : FileUtils.java
4. Now if you dont see spring option in composite , update the Jdeveloper with "Spring & Oracle WebLogic SCA" using help->updates.
5. Create a Bpel process that will invoke the spring.
6. Drop a Spring context in composite :
Name : FileUtilsSpring
Create a new context : FileUtilitySpring.
7. Open FileUtilitySpring.xml and add below lines of code inside the bean tag aftre the below comment
The file should look like :
8. Now you should be able to wire the Bpel and spring component. It will generate the WSDL and load java classes, Composite should look like :
9. Add invoke to Bpel to add the spring context, assign required values
10. Deploy the code and Test in EM
Use spring in Bpel to read,write huge files. Since default File Adapter works in Bpel memory this would be good for heavy lifting. I know we have options of java embedd and EJB, but since springs are considered as best java option I would like to explore this option.
Steps:
1. Create a SOA Project , Composite.
2. Create a java interface that has method for reading/writing files : IFileUtils.java method readWriteFile(String filename)
3. Create a java class that implements the IFileUtils interface for reading/writing files : FileUtils.java
4. Now if you dont see spring option in composite , update the Jdeveloper with "Spring & Oracle WebLogic SCA" using help->updates.
5. Create a Bpel process that will invoke the spring.
6. Drop a Spring context in composite :
Name : FileUtilsSpring
Create a new context : FileUtilitySpring.
7. Open FileUtilitySpring.xml and add below lines of code inside the bean tag aftre the below comment
The file should look like :
8. Now you should be able to wire the Bpel and spring component. It will generate the WSDL and load java classes, Composite should look like :
9. Add invoke to Bpel to add the spring context, assign required values
10. Deploy the code and Test in EM
Thank you.Well it was nice post and very helpful information on Oracle SOA Online Training Bangalore
ReplyDeleteThanks for sharing your amazing article with a lot of information thanks a lot
ReplyDeleteThanks a lot for sharing a great blog with a lot of information about ORACLE keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.
ReplyDeleteOracle SOA Training
Oracle SOA 12c Training
Oracle soa online training
Oracle soa course
oracle soa suite training
https://smconsultant.com/training/oracle-fusion-middleware/oracle-soa-training/
ReplyDeleteThanks a lot for sharing a great blog I was browsing through the internet looking for Oracle SOA and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information blogs about Oracle SOA at Oracle SOA Blogs. Bookmarked this page, it helped me a lot and I have gained a lot of knowledge by reading your blog and Oracle SOA Training
ReplyDeleteThanks a lot for sharing a valuable blog on Oracle SOA Training. I was browsing through the internet looking for Oracle SOA Training and Oracle fusion applications and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about Oracle SOA by attending Oracle SOA Training. You can learn about interview questions by visiting fusion Interview Questions
ReplyDeleteHi there! It is a very interesting blog on SOA topic. I was surfing through the internet for Oracle SOA interview questions and came across your blog. You definitely have a good understanding of the topic. You can find more information on Oracle SOA training here.
ReplyDeleteThanks a lot for sharing a valuable blog on Oracle SOA Tutorial. I was browsing through the internet looking for Oracle SOA Tutorial and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, You can learn more about Oracle SOA by visiting Oracle SOA Tutorial
ReplyDeleteThanks for sharing this great information on Oracle SOA. Actually I was looking for the same information on internet for SOA Interview Questions and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about SOA by attending Oracle SOA Training training .
ReplyDeleteThanks for sharing this great information on Oracle SOA. Actually I was looking for the same information on internet for SOA Interview Questions and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about SOA by attending Oracle SOA Training training .
ReplyDelete
ReplyDeleteThanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Training
. Actually, I was looking for the same information on internet for Oracle SOA Interview Questions and Answers
and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.
ReplyDeleteThanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Training
. Actually, I was looking for the same information on internet for Oracle SOA Interview Questions and Answers
and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.
Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle ADF .
ReplyDeleteActually, I was looking for the same information on internet for
Oracle ADF Interview Questions and Answers/Tips and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject.
Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle ADF .
ReplyDeleteActually, I was looking for the same information on internet for
Oracle ADF Interview Questions and Answers/Tips and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject.
Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject. Same as your blog i found another one Oracle SOA .Actually I was looking for the same information on internet for Oracle SOA Suite and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.
ReplyDelete
ReplyDeleteThanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Supply Chain Management Cloud . Actually, I was looking for the same information on internet for
Oracle Fusion HCM Interview Questions and Answers and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject.
ReplyDeleteThanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Supply Chain Management Cloud . Actually, I was looking for the same information on internet for
Oracle Fusion HCM Interview Questions and Answers and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject.