activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 4jr006 <martin.ku...@robotron.de>
Subject JMS-ObjectMessage over HTTP?? (5.2.0)
Date Mon, 22 Dec 2008 10:45:42 GMT

Hi, 

i have a problem with ActiveMQ 5.2 and JMS over HTTP.
I have one Server, one MessageSender and one MessageReciver

If i use the TCP-Connection
 <transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multicast://default"/>
it works fine, but if I use a HTTP-Connection
  <transportConnector name="http" uri="http://<server>:9999"/>
ActiveMQ throws the following Exception:

ERROR TransportSupport               - No transportListener available to
process inbound command: ConnectionInfo {commandId = 1, responseRequired =
true, connectionId = ID:rdspc060-1820-1229942323921-1:1, clientId =
ID:rdspc060-1820-1229942
323921-3:0, userName = null, password = null, brokerPath = null,
brokerMasterConnector = false, manageable = true, clientMaster = true}
WARN  ManagedTransportConnection     - Failed to register MBean:
org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=http,ViewType=address,Name=blockingQueue

My Resiver and Sender connect with the following Code:
    ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory(Commons.getConnection());
    cf.setObjectMessageSerializationDefered(true);
    Connection con = cf.createConnection();
    ActiveMQSession session = (ActiveMQSession)con.createSession(false,
Session.AUTO_ACKNOWLEDGE);
   .... //Queue, MessageProducer, MessageSender...

Has anybody an Example for sending JMS-Messages over HTTP?


-- 
View this message in context: http://www.nabble.com/JMS-ObjectMessage-over-HTTP---%285.2.0%29-tp21125791p21125791.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message