Skip to main content

Asynchronous communication between xlet and App Server

3 replies [Last post]
deepa625prabhu
Offline
Joined: 2011-08-02

is there any specific method in java.net API for asynchronous communication
between the App Server and the xlet.

Is asynchronous communication possible between the xlet and the App server?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
greg80303
Offline
Joined: 2008-07-03

Asynchronous communication is not built into the Java 1.4.x APIs. However, you can produce your own async behavior by creating a separate thread to perform request/response messaging. This thread can take one or more callback objects that can be notified of various responses/timeouts.

G

deepa625prabhu
Offline
Joined: 2011-08-02

is there any sample chat application using ocap available online?

Please share the link if anyone has come across it, and also share
any relevant information .

deepa625prabhu
Offline
Joined: 2011-08-02

Hi,

I have to write a thread program and implement javax.net.socketFactory to
establish TCP/IP communication between the OCAP App and the servlet.

This Thread should listen to the connection from the servlet and generate an
event and send to the OCAP App.

Can Anyone help me with a sample code for the above problem statement.

is this the right way of Establishing the connection for asynchronous communication w
between the OCAP App and the Servlet.