Gert, You're right. I looked at ComponentSupport and made the following changes to my code, and it now works. In case anyone else makes my mistake, here are the changes -
- in my pojo constructor I added super(new QName("http://servicemix.apache.org/mytest", "myreceiver"), "myreceiver"); rather than calling activateEndpoint directly myself - in my init method I was doing a super.init(), but changed this to :- super.init(context); As for the 'could not connect to broker' error, the only config changes I've made to activemq.xml are - remove the discoveryUri="multicast://default" part as suggested in the comments if not on a network - I also found I needed to remove <amq:networkConnector uri="multicast://default"/> or servicemix wouldn't start on my non-networked pc I've tried : <sm:jmsFlow id="jms" jmsURL="tcp://127.0.0.1:61616"></sm:jmsFlow> in servicemix.xml as an experiment, but it didn't seem to change anything so I'll remove it. I've increased the debug level as you've suggested and I'll examine the log more closely. I didn't intentionally change any JCA settings, is there a specific one I should check? My main task is the ftp-poller -> receiver pojo, which you've cracked (the pojo - pojo was going to be a workaround), so I can move on again in the meantime. Thank you very much for your help. BM Gert Vanthienen wrote: > > L.S., > > Could you try to set the logging level to DEBUG to see if this gives you > more information about what's going on? Any other > errors/warnings/suspicious messages in the log to help us tackle this > one? Did you change anything in the flow configuration (I see this > exchange is using JCA flow)? > > Concerning your previous message: not sure if that is the cause of your > problems, but since you are extending/using PojoSupport, so you probably > need to do an additional super.init() to properly initialize it. > > Gert > > BM wrote: >> I still haven't managed to get this to work, despite trying to use the >> lightweight ftp component instead of servicemix-ftp, and packaging it up >> into the lightweight container. >> >> I thought that I'd try a 2-way communication between 2 pojos while I >> hoped >> somebody might have some ideas. Interestingly I'm getting the following >> exception when pojo 1 sends to pojo 2 : >> >> 17:27:09,562 | ERROR | >> pool-flow.jca.org.apache.servicemix.jca.{http://servicemix.apache.org/nftest}nfreceiver:nfreceiver-thread-2 >> | ActiveMQEndpointWorker | vemq.ra.ActiveMQEndpointWorker 245 | >> Endpoint >> connection to JMS broker failed: Could not connect to broker URL: >> tcp://localhost:61616. Reason: java.net.ConnectException: Connection >> refused: connect >> >> I've seen a post elsewhere suggesting that JMS problems could cause the >> original not-initialised error. >> >> I've disabled my firewall, and because I'm not on a network I've removed >> the >> discoveryUri="multicast://default" from the following line in >> activemq.xml >> :- >> <transportConnector uri="tcp://localhost:61616" >> discoveryUri="multicast://default"/> >> as suggested in the comments. >> >> Using a socket tracer I see 15 sockets have been made to port 61616, but >> they're all in TIME_WAIT closing state after I try my pojo-pojo test. If >> I >> don't run the test there are 15 connected sockets to port 61616, so there >> isn't a problem with the port already in use etc. >> >> I'm running java 1.5, servicemix 3.1.2 on a Windows XP SP2 box. >> >> I'm at my wits end now - any ideas would really be appreciated. >> >> Cheers, >> BM >> >> >> >> >> > > > -- View this message in context: http://www.nabble.com/Error-calling-DONE-on-InOnly-message-tf4718625s12049.html#a13507991 Sent from the ServiceMix - User mailing list archive at Nabble.com.