Hello Charles, By chance, I'm investigating similar problem - connect multiple OSGi clients and server. But I have requirement to allow bidirectional communication even in case of NAT/Firewall.
IMHO, ActiveMQ with HTTP transport should not be compared to REST directly. Choice depends on requirements. ActiveMQ is messaging, so the level of communication between your remote services is async message-passing, from high-level perspective. So HTTP as just a transport for message delivery (which can luckily go through firewalls ;-) ). Seems in my case REST will not work as I can have NAT between server and client. Messaging seems to be good abstraction for communication in our case. I just post messages and do not care how they get to recipient (even do not care if recipient is running right now or not). Sincerely yours, Roman cmoulliard wrote: > > Hi Dejan, > > So, it makes no sense to use ActiveMq with HTTP transport in this case but > perhaps a solution like OSGI remoting (in this case) : > http://cxf.apache.org/distributed-osgi-reference.html or maybe using Camel > + RESTful services to expose services on the distant OSGI server. > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > twitter : http://twitter.com/cmoulliard > > > Dejan Bosanac wrote: >> >> Hi Charles, >> >> http transport should work just like a regular tcp transport. The only >> thing >> is that it is slower, since messages are encoded to xml when they're on >> the >> wire. >> >> Cheers >> -- >> Dejan Bosanac - http://twitter.com/dejanb >> >> Open Source Integration - http://fusesource.com/ >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Blog - http://www.nighttale.net >> >> >> On Thu, Oct 29, 2009 at 10:08 AM, cmoulliard <cmoulli...@gmail.com> >> wrote: >> >>> >>> Does it make sense to design a topology like this between different >>> osgi servers to propose remote services though an ActiveMq queue playing >>> the >>> role of osgi server integrator ? >>> >>> 1) Bundle A >>> >>> This bundle contains a spring DSL xml file with routes defined like this >>> : >>> >>> from(). >>> .to() >>> .to() >>> .to(ActiveMq:queueOut) >>> >>> and service waiting feedback >>> >>> from(ActiveMq:queueIn). >>> .to() >>> >>> deployed on server OSGI (1) >>> >>> 2) Bundle B >>> >>> from(ActiveMq:queueOut). >>> .to() // Service replying to the request >>> .to(ActiveMq:queueIn) >>> >>> deployed in server OSGI (2) >>> >>> Additional question : >>> >>> Are there any restrictions if we use HTTP transport connector of >>> ActiveMq >>> to >>> place Java object on the queue (size, serialization, ....) ? >>> >>> Regards, >>> >>> ----- >>> Charles Moulliard >>> SOA Architect >>> >>> My Blog : http://cmoulliard.blogspot.com/ >>> http://cmoulliard.blogspot.com/ >>> -- >>> View this message in context: >>> http://www.nabble.com/ActiveMQ---HTTP---Remoting-tp26109373p26109373.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >>> >> >> >> ----- >> Dejan Bosanac >> >> Open Source Integration - http://fusesource.com/ >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Blog - http://www.nighttale.net >> > > -- View this message in context: http://www.nabble.com/ActiveMQ---HTTP---Remoting-tp26109373p26112078.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.