Can you implement RPC communication with the SmartSockets-BW Plug-in?
book
Article ID: KB0086661
calendar_today
Updated On:
Products
Versions
TIBCO SmartSockets
-
Not Applicable
-
Description
Resolution: Yes. The attached files implement an example of using the SmartSockets/BW plug-in for doing RPC. Here are the instructions for running the demo:
Demo 1: Pure SmartSockets RPC in Java (using a SmartSockets RPC publisher, and a SmartSockets receiver) Demo 2: SmartSockets to BW RPC (SS RPC publisher and BW receiver) Demo 3: BW to SmartSockets RPC (BW publisher <that blocks and waits for reply> and SS receiver)
There are 2 attachments on the SR 1) smartsocketsexample.zip which contains the BW pieces 2) ss_bw_demo.zip which contains the SmartSockets pieces
Place both of these zip files in the same directory and unpack them. This will create 2 subdirectories by the same names The demos are all designed to run on a single machine (but that can be esily changed by adjusting the server_names options)
Before starting the demos: 1) Make sure that you have RTserver running on the local machine (and leave it running for all 3 demos) 2) From the Start>SmartSockets menu open 2, 32-bit command windows and cd to the ss_bw_demo directory in each
For Demo1 (SS to SS) In one command window issue the command: java ss_RPC_rcvr In the other command window issue the command: java ss_RPC_publisher What you should see is the receiver will display it got a "hello world" message and the publisher will display "I got it~!" (meaning it got the reply)
For Demo2 (SS to BW) Start the Tester in Designer and Choose BWRPCReceiver process. Load and Select the current process In one of the command windows from Demo1 issue the command: ss_RPC_publisher What you should see is the "I got it~!" message in the publisher which means the RPC completed. You should also be able to see what took place in the Designer window.
For Demo3(BW to SS) In one of the command windows from Demo1 issue the command: ss_RPC_rcvr Start the Tester in Designer and choose BWRPCPublisher process Load and Select the current process. What you should see is the "hello world" message in the ss_RPC_rcvr, and you can inspect your WaitForSmartSocketsMessage object in Designer to see that it has the "I got it~!" message.
Issue/Introduction
Can you implement RPC communication with the SmartSockets-BW Plug-in?
Attachments
Can you implement RPC communication with the SmartSockets-BW Plug-in?
get_app
Can you implement RPC communication with the SmartSockets-BW Plug-in?
get_app