Re: Tomcat Connectors!! Help needed!!
Thanks! your suggestion helped me a lot. Can you plz. tell me whether a Java [Servlet] can be connected to a telnet tool? It's not clear what you are asking; there is no such thing as a "telnet tool". Do you want to connect from a telnet client to a servlet, or do you want to connect from a Servlet to a telnet server? I do wish people would learn to be as precise as possible in asking questions. So I'm only going to answer one of the possibilities :-) A telnet client can connect to an HTTP server and run a web request which can be a servlet. This is often done for debugging. However you did say "raw data" which most programmers would interpret as "binary". And you cannot send binary data from a telnet client. If your servlet accepts textual raw data, you might try something like this: telnet serverhost 80 # or 8080 if Tomcat in default configuration POST /MyDataServlet HTTP/1.1 Host: serverhost 12345.67 890123.45 1.11 2.222 etc etc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connectors!! Help needed!!
Hello Ian, Thanks! your suggestion helped me a lot. Can you plz. tell me whether a java application (Servlet) can be connected to a telnet tool? Regards, Meenakshi -Original Message- From: Ian Darwin [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 12:40 AM To: Tomcat Developers List Subject: Re: Tomcat Connectors!! Help needed!! Do not use as many exclamation marks than words. Do not have as many words in your disclaimer as your query. Your technical question is addressed below... Sharma, Meenakshi wrote: >Hello Everybody, > >I'm developing an application which is a java servlet, deployed on tomcat >5.5 >Now, I want my application to take raw data from the client through >sockets, & for that it has to make a socket connection and listen that >port for data. > >I've heard that we can create Connectors in Tomcat, which can listen >to any protocol type of request i.e. Http, Telnet or any of >application protocol. > >In my case I need a Connector which can listen to a socket for raw >data type requests... > > > Writing your own connector is probably a big undertaking, and not for the faint of heart. Why not just write a standalone server, if you're not using HTTP? Or, even simpler, why not have the client use POST and read the body as an input stream in the servlet? This does allow you to send "raw data" from a client to a Servlet. Consult any good book on Servlet Programming for how to do it. This way you get all the benefits of Tomcat without having to rewrite it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Tomcat Connectors!! Help needed!!
Do not use as many exclamation marks than words. Do not have as many words in your disclaimer as your query. Your technical question is addressed below... Sharma, Meenakshi wrote: Hello Everybody, I'm developing an application which is a java servlet, deployed on tomcat 5.5 Now, I want my application to take raw data from the client through sockets, & for that it has to make a socket connection and listen that port for data. I've heard that we can create Connectors in Tomcat, which can listen to any protocol type of request i.e. Http, Telnet or any of application protocol. In my case I need a Connector which can listen to a socket for raw data type requests... Writing your own connector is probably a big undertaking, and not for the faint of heart. Why not just write a standalone server, if you're not using HTTP? Or, even simpler, why not have the client use POST and read the body as an input stream in the servlet? This does allow you to send "raw data" from a client to a Servlet. Consult any good book on Servlet Programming for how to do it. This way you get all the benefits of Tomcat without having to rewrite it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Connectors!!Help needed!!
Hello Everybody, I'm developing an application which is a java servlet, deployed on tomcat 5.5 Now, I want my application to take raw data from the client through sockets, & for that it has to make a socket connection and listen that port for data. I've heard that we can create Connectors in Tomcat, which can listen to any protocol type of request i.e. Http, Telnet or any of application protocol. In my case I need a Connector which can listen to a socket for raw data type requests... And, I can hook my application (or servlet) with that Connector & can listen to those requests which are coming on that connection. But, as a solution I want my client to be a simple Telnet tool, which can send requests on the port, I've configured for my Connector. But, till now I've seen tomcat entertaining Http requests only. Please suggest, - How to implement this in tomcat 5.5 - Is there any built-in connector available - Is it possible to make a custom connector for this scenario which can handle raw socket requests Looking forward to your comments & suggestions - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.