You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by juro <ju...@yahoo.com> on 2006/03/24 17:27:30 UTC

Adding new transport

I have a question for ActiveMQ developers. 

I am looking to use ActiveMQ as integral part of our product. Nevertheless
we have some strong requirement to pass data through custom protocol (not
TCP). 

How would I add custom Transport programmatically?   Is it possible or I
have to add transport through ActiveMQ resources similar to how tcp or vm
transports implemented? 

Thnak you, Juro



--
View this message in context: http://www.nabble.com/Adding-new-transport-t1337393.html#a3574416
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Adding new transport

Posted by James Strachan <ja...@gmail.com>.
On 3/24/06, juro <ju...@yahoo.com> wrote:
>
> I have a question for ActiveMQ developers.
>
> I am looking to use ActiveMQ as integral part of our product. Nevertheless
> we have some strong requirement to pass data through custom protocol (not
> TCP).
>
> How would I add custom Transport programmatically?   Is it possible or I
> have to add transport through ActiveMQ resources similar to how tcp or vm
> transports implemented?

Absolutely; ActiveMQ is designed to allow custom transports to be
plugged in. You can programatically create TransportConnector
instances and add them to the BrokerService in Java code....
http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/BrokerService.html#addConnector(org.apache.activemq.broker.TransportConnector)

or you can use the transport discovery mechanism, so that folks can
just use your new transport using the neat URI syntax.

The way it works is that the URI scheme (e.g. "vm") is used to find a
text file on the classpath - here are all the schemes provided...

http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/transport/

then the contents of the file is the class name of a Java class on the
classpath which extends the TransportFactory class
http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/transport/TransportFactory.html


--

James
-------
http://radio.weblogs.com/0112098/