Simple scenario - read from one directory, write to another one.
Create a soa composite app in JDev and define the adapters, I also added a DB adapter which I'll leverage in a future post.
I'm using the following xsd for ReadIn and WriteOut.
Here are the JDev artifacts created -
Now I will import the .jca files into OSB11g using the Service Bus Console -
I create a new OSB project with the following structure -
IMPORTING THE FILE READ ADAPTER
I import the readIn.jca file as follows -
Click Import
Move the WSDL resource to the WSDL folder.
Navigate to the JCA artifact in the SB console and then click the action icon on the right.
1.gif
Click Generate
Proxy Service has been created.
If you look at the proxy service configuration you see it is leveraging
jca://eis/FileAdapter
This is configured on WLS so you can see this via the WebLogic console
Click on Deployments and navigate to FileAdapter
Click on Configuration and then
Outbound Connection Pools.
IMPORTING THE FILE WRITE ADAPTER
Do as above and then generate the business service by navigating to the JCA artifact in the SB console and then click the action icon on the right, targeting the Business Services folder.
Amend the proxy message flow to route to the business service.
Test by dropping a file into the input directory.
Hi,
ReplyDeleteThat was a great post.
I tries to do the same but getting the below error:
[JCATransport:381984]OSB JCA transport does not support adapter type: FTP
I am using:
Oracle Service Bus Version: [Oracle Service Bus Server Side Dependencies 11.1
Oracle Weblogic Server Version: [WebLogic Server 10.3.3.0
Thanks.
Hi,
ReplyDeleteThat was a great post.
I tries to do the same but getting the below error:
[JCATransport:381984]OSB JCA transport does not support adapter type: FTP
I am using:
Oracle Service Bus Version: [Oracle Service Bus Server Side Dependencies 11.1
Oracle Weblogic Server Version: [WebLogic Server 10.3.3.0
Thanks.