Tuesday, September 6, 2011

Sample Sockt Transpofrt in OSB 11g

Sample Sockt_transport in OSB 11g


Check, the sample-transport is there in your dir or install it.

OSB_ORACLE_HOME/samples/servicebus/sample-transport

Edit the (\Oracle\Middleware\Oracle_OSB1\samples\servicebus\sample-transport) build.properties file with your hostname, port, weblogic server username and password, server.name = AdminServer

1. Run DOMAIN_HOME/bin/setDomainEnv.cmd (setDomainEnv.sh on a UNIX system) on the command prompt to set the environment where DOMAIN_HOME is the physical directory of your OSB domain.

2. Navigated to directory OSB_ORACLE_HOME/samples/servicebus/sample-transport on the same command prompt where OSB_ORACLE_HOME is your OSB home

3. Executed command - ant build

4. Executed command - ant stage

5. Executed command - ant deploy

6. Now go to weblogic admin console --> Deployments section and make sure that you see deployments "Socket Transport" and "SocketAdapter" in "Active" state

7. Create the proxy and business services as directed on the OSB documentation link (http://download.oracle.com/docs/html/E15866_01/example.htm#i1036658)

8. Start and test the socket server as directed on the OSB documentation link

Manual deployment of sockt_transport through weblogic console:

Go to the weblogic console, select Deployments from Domain structure.

Stop the sockt_transport if it is running already.

Click install and select the path

/lib/transports

And select sock_transport.ear file click next and finish with default setting

Restart the weblogic server.

To modify the sockt transport:

Edit the (\Oracle\Middleware\Oracle_OSB1\samples\servicebus\sample-transport\src\com\bea\alsb\transports\sock) SocketOutboundMessageContext.java class as per you requirements.

Create the .ear file using above step 3, 4 and 5

To add sockt transport in eclipse:

Add the sock_transport.jar file into \Oracle\Middleware\oepe_11gR1PS2\plugins

And restart the eclipse to see the changes.

Reference:

http://download.oracle.com/docs/html/E15866_01/example.htm#i1036658

https://forums.oracle.com/forums/thread.jspa?threadID=2150885