You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kramasundar <kr...@yahoo.com> on 2009/05/13 12:32:24 UTC
Connector for diameter protocol
Hi,
I am trying to port our existing plain old java diameter (
http://en.wikipedia.org/wiki/Diameter_(protocol) Diameter wiki page ) server
on top of tomcat.
I am new to J2EE/Tomcat.
Since Diameter is quite different from HTTP it is bit difficult to get
started with doing things. As far as i have read, it seems that i need a
"protocol handler" for Diameter protocol and feed it into tomcat. Could any
one of you please direct me to some documents/references that describes how
to develop custom protocol handlers for non HTTP protocols like
Sip/Diameter/Radius.....
Thanks,
Ramsundar
--
View this message in context: http://www.nabble.com/Connector-for-diameter-protocol-tp23519306p23519306.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Connector for diameter protocol
Posted by Bill Barker <wb...@wilshire.com>.
"kramasundar" <kr...@yahoo.com> wrote in message
news:23519306.post@talk.nabble.com...
>
> Hi,
>
> I am trying to port our existing plain old java diameter (
> http://en.wikipedia.org/wiki/Diameter_(protocol) Diameter wiki page )
> server
> on top of tomcat.
>
> I am new to J2EE/Tomcat.
>
> Since Diameter is quite different from HTTP it is bit difficult to get
> started with doing things. As far as i have read, it seems that i need a
> "protocol handler" for Diameter protocol and feed it into tomcat. Could
> any
> one of you please direct me to some documents/references that describes
> how
> to develop custom protocol handlers for non HTTP protocols like
> Sip/Diameter/Radius.....
>
Such support as there is amounts to HTTP under Diameter ;)
Well, there isn't much documentation outside of the JavaDocs and the code.
Probably the place to start is
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/coyote/package-summary.html.
You are correct that you need to create a ProtocolHandler. This classs is
responsible for accepting requests, and passing them off to a Thread to
handle them (more on that later). There are ThreadPool classes, and
Executor support classes lying around that you might be able to use for the
thread management (e.g. browse the org.apache.tomcat.util.net package to see
if anything works for you).
The Object in the thread then has to parse the request according to the
protocol, and fill in a Request object (from org.apache.coyote), and
initialize a Response object (same package). Look at the existing
Connectors (especially MemoryConnector, which is the simplest) for how to do
this. It then passes these off to the Adapter that Tomcat will pass to your
ProtocolHandler. That will run it through your Servlet, and pump the data
back to the client. You will possibly need InputBuffer and OutputBuffer
implementations to do the protocol translation.
I guess the last thing is that you enable it via <Connector
protocol="com.myfirm.mypackage.MyProtocolHandler" ... /> and any attributes
in in ... will be passed to your ProtocolHandler JavaBean style.
> Thanks,
> Ramsundar
> --
> View this message in context:
> http://www.nabble.com/Connector-for-diameter-protocol-tp23519306p23519306.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org