permaculture playing cards*
The moose likes Servlets and the fly likes Extending GenericServlet to handle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Extending GenericServlet to handle "custom" protocol" Watch "Extending GenericServlet to handle "custom" protocol" New topic
Author

Extending GenericServlet to handle "custom" protocol

Chulaka Ailapperuma
Greenhorn

Joined: Oct 07, 2003
Posts: 2
Hi All,
Is it possible to define a new protocol in WebLogic and invoke a servlet (extended from GenericServlet) to service the request? If it is, is there any documentation as to how to go about doing it?
It does not even have to be a servlet, we just want to be able to invoke some component within weblogic with a non-standard protocol.
Some background: Our organization has built an in-house "app server" that services many different clients (with many different budgets). This "app server" is no longer capable of handling the workload and we are looking into replacing it with WebLogic (or WebSphere). But because of other considerations, we cannot change the client's communication protocol.
Thanks,
Chulaka
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
If you use sockets to connect to your program, you can define a custom protocol.


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
Chulaka Ailapperuma
Greenhorn

Joined: Oct 07, 2003
Posts: 2
Hi,
Yes, our clients will use sockets to connect to WLS. What I am trying to find out is, how do you actually define a new protocol in WLS. Do I even need to?
Can I set up a listen port in WLS and whenever a request comes into it, can I get it to invoke a Servlet (perhpas extended from GenericServlet)?
Thanks,
Chulaka
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Extending GenericServlet to handle "custom" protocol