You could impmenent this as a jboss service.  What is your program going to do?  If 
it's going to be your basic request/response server (even with long-lived 
connections), you may be able to implement it as a servlet.  Not an HttpServlet, but 
just a custom servlet (i.e., it implements the Servlet interface or extends 
javax.servlet.GenericServlet).  

Assuming you need a protocol other than HTTP, you can write a custom protocol handler 
("connector" in Tomcat lingo) that reads the data, builds a ServletRequest object (not 
HttpServletRequest), and calls the server to map it and service it.  This is how 
tomcat accepts JK2 requests from Apache httpd.

I actually did this for a school project, and implemented several interesting protocol 
connectors and servlets, for services like DNS, SMTP, POP3, HTTP, and finger.  (I 
didn't use tomcat; I wrote my own mini-servlet container, but you may be better off 
using something more tried-and-true like tomcat).

I can dig up the source if you're interested.

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826079#3826079";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826079>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to