Sending data from server (servlet) to MIDlet

Hi, Is there any workaround to initiate communication from servlet and send data from servlet to MIDlet?
[132 byte] By [nadianm] at [2007-9-26 14:29:32]
# 1

I read in the online chat (http://developer.java.sun.com/developer/community/chat/JavaLive/2001/jl1127.html) that there may be push architecture coming in MIDP NG. For the time being, all I can think of is to use a listening socket on the device (if the device supports sockets) and then have the server contact the device. However, this method would require the device to be connected to the network and the server would also have to know the devices IP address.

We have written our communications by having the device initate the connection to the server, and then repeatedly poll the server for information. When the server data has been completely transmitted, then the client disconnects.

If you find another solution, please post your results.

Don

d1camero at 2007-7-2 16:16:10 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
DonIs it not what JXTA proposes!!!! Where server can make P2P application using six protocols.
d_n_singh at 2007-7-2 16:16:10 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
D N,I would like to see how JXTA will do peer-2-peer with the current MIDP release. If you are getting information to the contrary, post the web site that states this information.thanksDon
d1camero at 2007-7-2 16:16:10 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Looking at the JXTA source, it uses HTTP (the only supported protocol for current release of MIDP) and the device intiates communication by polling the reply server using a POST method.

It appears as though JXTA simulates p2p with MIDP by polling the relay with HTTP. Thus, as I stated previously, the device has to initiate communications. The current MIDP does not appear to have any capability to "listen" for connections.

D N, If you have information to the contrary please post the source.

nadianm, you could use the same technique for your application. Your application would have to poll the server, then when a message was available, it could download it.

Any other ideas within the current release of MIDP anyone?

thanks

Don

d1camero at 2007-7-2 16:16:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...