cancel
Showing results for 
Search instead for 
Did you mean: 

Application for reading port

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

I do not understand, why it must be decision based on servlets. In your case you can read about sockets