Hi,

I was able to run the loan-broker example.
However, it failed when I used a custom log4j JMS appender that does the JMS
connection and the create a Message.
 
I created a JMS Log4j appender.  Inside the activateOptions method in the
Appender class, I put the codes to connect to the JMS server:

ActiveMQConnectionFactory factory = new
ActiveMQConnectionFactory(tcp://localhost:61616");
Destination inQueue = new ActiveMQQueue("demo.org.servicemix.source");
Destination outQueue = new ActiveMQQueue("demo.org.servicemix.output");
requestor=MultiplexingRequestor.newInstance(factory, inQueue, outQueue);

And insdier the append mehtod in the Appender class, I have:

Message out = requestor.getSession.createMapMessage();
out.setStringProperty("ssn", "111-11-1111");
...
Message in=requestor.request(null, out);

When I ran the client, it got stuck at this line:
requestor=MultiplexingRequestor.newInstance(factory, inQueue, outQueue);

and i got the following error from servicemix.  What is wrong?  Thanks


log4j:ERROR Attempting to get new instance of MultiplexingRequestor
log4j:ERROR Received Exception when attempting to get requester at address:
null (specified in log4j properties file). Exception:
javax.jms.JMSException: Wire format negociation timeout: peer did not send
his wire format.
log4j:ERROR Inside activateOptions()

-- 
View this message in context: 
http://www.nabble.com/Log4j-JMS-Appender-tf2498575.html#a6965204
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to