Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-23 Thread TomeeUser
Hi Romain & Smith, Thanks for being patient with me and providing solutions. Finally I got everything working. I am attaching herewith the zip file containing working example. Smith.. I too don't have consumer, just used producer. But it should not be a problem now. I would request you guys if y

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-23 Thread TomeeUser
I see all messages are send to right queue ( in activeMQ webconsole ) but MessageListner is not being invoked... I put log statements nothing appears in log...and same client and app works just fine in JBoss... I would really hate to switch back to JBoss as love Tomee for its simplicity. Below

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-23 Thread TomeeUser
No I did not find that. I could find Auto-linking 20130423 10:17:46 INFO (root) org.apache.openejb.config.AutoConfig [processResourceRef]:Auto-linking resource-ref 'java:comp/env/test.ejbs.TomEE.beans.CachedInfoMessageHandlerBean/connectionFactory' in bean CalculatorBean to Resource(id=MyJmsCo

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-22 Thread TomeeUser
Not sure I understood the question.. but I put SOP to see log. -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connect-to-Message-Bean-from-remote-client-Null-pointer-tp4662203p4662374.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-22 Thread TomeeUser
well my my question why the listener is not being called? what else should I do to access the queue ? -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connect-to-Message-Bean-from-remote-client-Null-pointer-tp4662203p4662372.html Sent from the OpenEJB User mailing li

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-22 Thread TomeeUser
however my messagebean doesn't get invoked. I don't get any message in the log. Is there anything I am missing ? -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connect-to-Message-Bean-from-remote-client-Null-pointer-tp4662203p4662370.html Sent from the OpenEJB User

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-20 Thread TomeeUser
Hi Romain, I am sorry still it didn't work. I am providing another zip file, which has ant scripts to build and deploy app and another one to run jmstest/app -- server side code. ( web app ) * =>needs to be changed according to tomee location in build.xml * *ant deploy => in order to deploy*

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-18 Thread TomeeUser
Created a batch file to run the client: *mdbrun.cmd* @SET OCP=%CLASSPATH% @SET TOMEE_HOME=C:\AppServers\tomee @SET TOMEE_LIB=%TOMEE_HOME%\lib @SET CLIENT_JAR=C:\experiments\TomEEAppClient\dist\TomEEAppClient.jar @SET REMOTE_JAR=C:\experiments\TomEEApp\dist\TomEEAppRemote.jar @SET EJB_CLIENT_JAR=%T

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-18 Thread TomeeUser
Hi Romain, Here are the NB projects. TomEEApp.zip TomEEAppClient.zip -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connec

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-18 Thread TomeeUser
Hi Romain, Here is the sample code: *Resources configured in tomee.xml* BrokerXmlConfig = broker:(tcp://localhost:61616) ServerUrl = tcp://localhost:61616 ResourceAdapter = MyJmsResourceAdapter Desti

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-15 Thread TomeeUser
Hi Romain, I moved little further. Now when I make connection client hangs and when I press CTRL-C I get following message at server 20130415 19:28:36 WARN (Transport) org.apache.activemq.broker.TransportConnection [serviceTransportException]:Transport Connection to: tcp://127.0.0.1:60058 fa

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-14 Thread TomeeUser
Hi Romain, Thanks for your help. I got it resolved. One more question how connect to multiple servers? My client needs to send messes to series of servers. Regards, -Shan -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connect-to-Message-Bean-from-remote-client-Nu

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-14 Thread TomeeUser
Hi Romain, Not sure I understood correctly. I changed the scheme to IIRC but still get the following error: Resource/javax.jms.ConnectionFactory=activemq:IIRC:MyJmsConnectionFactory:org.apache.activemq.ActiveMQConnectionFactory:tcp://localhost:61616 ---

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-13 Thread TomeeUser
Hi Romain, I tried to follow the steps mentioned in the thread but still I am getting exceptions: I am using tomee 1.5.2 Any help would be greatly appreciated. -Shan java -DResource/javax.jms.ConnectionFactory=MyJmsConnectionFactory:org.apache.activemq.ActiveMQConnectionFactory:tcp://localhost:61

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-13 Thread TomeeUser
Hi Romain, Thanks for reply. Can you please help me in setting properties ? I am really stuck. Regards, Shan -- View this message in context: http://openejb.979440.n4.nabble.com/Can-not-connect-to-Message-Bean-from-remote-client-Null-pointer-tp4662203p4662215.html Sent from the OpenEJB User m

Can not connect to Message Bean from remote client : Null pointer

2013-04-12 Thread TomeeUser
I created a simple message bean from example and tried to connect it from remote. but getting error not able to connect. Getting Null pointer. Below is the code: Please help /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.xerox.TomEE.b