on 10-24-2006 6:29 AM
Hi guys i need to create an servlet that reads a port waiting for a text message in order to use it as parameters for execute an SAP Function....
I need to know if its possible to do that???
How can i made object running for wait the port continuoulsy???
Regards in advance
Hi Oscar,
You need to use java.net.Socket class in your servlet to connect to and read data from port. It will not be difficult, refer to the following article for a simple illustration,
http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html
I hope this helps,
Guru.
PS: Reward points for helpfull replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not understand, why it must be decision based on servlets. In your case you can read about sockets
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.