You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by krv <vi...@onmobile.com> on 2007/12/13 15:17:12 UTC

Problem using http connector in 5.0.0

Hi,

I am facing a problem using http connector in 5.0.0. I have written a simple
sender and receiver components to a queue. Here is what my configuration
looks like:

<mule-configuration id="Echo_Test" version="1.0">
    <description>A simple receiver</description>
    </mule-environment-properties>
   
	<connector name="jmsConnector"
className="org.mule.providers.jms.JmsConnector">
	    <properties>
	        <property name="specification" value="1.1"/>
	        <property name="connectionFactoryJndiName"
value="ConnectionFactory"/>
	        <property name="jndiInitialFactory"
	                 
value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
	        <map name="connectionFactoryProperties">
	            <property name="brokerURL" value="http://172.16.29.24:61224"/>
	        </map>
	    </properties>
	</connector>
	
   <model name="receiveSample">
       <mule-descriptor name="ReceiveUMO"
implementation="MyMessageReceiver">
           <inbound-router>
               <endpoint address="jms://myQueue"/>
           </inbound-router>
       </mule-descriptor>
   </model>

</mule-configuration>


I send a message to the queue using
MuleClient.send(message,"jms://myQueue",null), but no message is received at
the receiver. The same piece of code is working with 4.1.1.

Am I missing out any configuration or is it a possible bug? Please let me
know.

Thanks in advance,
Vivek
-- 
View this message in context: http://www.nabble.com/Problem-using-http-connector-in-5.0.0-tp14316771s2354p14316771.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Problem using http connector in 5.0.0

Posted by krv <vi...@onmobile.com>.
Hi,

I ran tests using only ActiveMQ code. I was able to receive messages while
using ActiveMQ-4.1.1 but no messages were delivered while using 5.0.0. I
have attached the test classes that I have used.
http://www.nabble.com/file/p14420507/Producer.java Producer.java 
http://www.nabble.com/file/p14420507/Receiver.java Receiver.java 
http://www.nabble.com/file/p14420507/Consumer.java Consumer.java 

Please let me know if more information is needed.
Either I am missing something here or there is in fact a bug in 5.0.0.

Regards,
Vivek


Hiram Chirino wrote:
> 
> Perhaps there is an error in you Mule configuration or perhaps Mule
> has a bug.  If you submit a test cases using the pure JMS client
> showing an error we could help with that easier.
> 
> Regards,
> Hiram
> 
> On Dec 14, 2007 9:47 AM, krv <vi...@onmobile.com> wrote:
>>
>> Hi Community,
>>
>> No one replied to this thread since two days :,(. I am really stuck here.
>>
>> Someone puleeeeeezzzzz comment on this.
>>
>> Vivek
>>
>>
>>
>> krv wrote:
>> >
>> > Hi,
>> >
>> > I am facing a problem using http connector in 5.0.0. I have written a
>> > simple sender and receiver components to a queue. Here is what my
>> > configuration looks like:
>> >
>> > <mule-configuration id="Echo_Test" version="1.0">
>> >     <description>A simple receiver</description>
>> >     </mule-environment-properties>
>> >
>> >       <connector name="jmsConnector"
>> > className="org.mule.providers.jms.JmsConnector">
>> >           <properties>
>> >               <property name="specification" value="1.1"/>
>> >               <property name="connectionFactoryJndiName"
>> > value="ConnectionFactory"/>
>> >               <property name="jndiInitialFactory"
>> >
>> > value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
>> >               <map name="connectionFactoryProperties">
>> >                   <property name="brokerURL"
>> > value="http://172.16.29.24:61224"/>
>> >               </map>
>> >           </properties>
>> >       </connector>
>> >
>> >    <model name="receiveSample">
>> >        <mule-descriptor name="ReceiveUMO"
>> > implementation="MyMessageReceiver">
>> >            <inbound-router>
>> >                <endpoint address="jms://myQueue"/>
>> >            </inbound-router>
>> >        </mule-descriptor>
>> >    </model>
>> >
>> > </mule-configuration>
>> >
>> >
>> > I send a message to the queue using
>> > MuleClient.send(message,"jms://myQueue",null), but no message is
>> received
>> > at the receiver. The same piece of code is working with 4.1.1.
>> >
>> > Am I missing out any configuration or is it a possible bug? Please let
>> me
>> > know.
>> >
>> > Thanks in advance,
>> > Vivek
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-using-http-connector-in-5.0.0-tp14316771s2354p14337056.html
>>
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Regards,
> Hiram
> 
> Blog: http://hiramchirino.com
> 
> Open Source SOA
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-using-http-connector-in-5.0.0-tp14316771s2354p14420507.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Problem using http connector in 5.0.0

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Perhaps there is an error in you Mule configuration or perhaps Mule
has a bug.  If you submit a test cases using the pure JMS client
showing an error we could help with that easier.

Regards,
Hiram

On Dec 14, 2007 9:47 AM, krv <vi...@onmobile.com> wrote:
>
> Hi Community,
>
> No one replied to this thread since two days :,(. I am really stuck here.
>
> Someone puleeeeeezzzzz comment on this.
>
> Vivek
>
>
>
> krv wrote:
> >
> > Hi,
> >
> > I am facing a problem using http connector in 5.0.0. I have written a
> > simple sender and receiver components to a queue. Here is what my
> > configuration looks like:
> >
> > <mule-configuration id="Echo_Test" version="1.0">
> >     <description>A simple receiver</description>
> >     </mule-environment-properties>
> >
> >       <connector name="jmsConnector"
> > className="org.mule.providers.jms.JmsConnector">
> >           <properties>
> >               <property name="specification" value="1.1"/>
> >               <property name="connectionFactoryJndiName"
> > value="ConnectionFactory"/>
> >               <property name="jndiInitialFactory"
> >
> > value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
> >               <map name="connectionFactoryProperties">
> >                   <property name="brokerURL"
> > value="http://172.16.29.24:61224"/>
> >               </map>
> >           </properties>
> >       </connector>
> >
> >    <model name="receiveSample">
> >        <mule-descriptor name="ReceiveUMO"
> > implementation="MyMessageReceiver">
> >            <inbound-router>
> >                <endpoint address="jms://myQueue"/>
> >            </inbound-router>
> >        </mule-descriptor>
> >    </model>
> >
> > </mule-configuration>
> >
> >
> > I send a message to the queue using
> > MuleClient.send(message,"jms://myQueue",null), but no message is received
> > at the receiver. The same piece of code is working with 4.1.1.
> >
> > Am I missing out any configuration or is it a possible bug? Please let me
> > know.
> >
> > Thanks in advance,
> > Vivek
> >
>
> --
> View this message in context: http://www.nabble.com/Problem-using-http-connector-in-5.0.0-tp14316771s2354p14337056.html
>
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://open.iona.com

Re: Problem using http connector in 5.0.0

Posted by krv <vi...@onmobile.com>.
Hi Community,

No one replied to this thread since two days :,(. I am really stuck here.

Someone puleeeeeezzzzz comment on this.

Vivek


krv wrote:
> 
> Hi,
> 
> I am facing a problem using http connector in 5.0.0. I have written a
> simple sender and receiver components to a queue. Here is what my
> configuration looks like:
> 
> <mule-configuration id="Echo_Test" version="1.0">
>     <description>A simple receiver</description>
>     </mule-environment-properties>
>    
> 	<connector name="jmsConnector"
> className="org.mule.providers.jms.JmsConnector">
> 	    <properties>
> 	        <property name="specification" value="1.1"/>
> 	        <property name="connectionFactoryJndiName"
> value="ConnectionFactory"/>
> 	        <property name="jndiInitialFactory"
> 	                 
> value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
> 	        <map name="connectionFactoryProperties">
> 	            <property name="brokerURL"
> value="http://172.16.29.24:61224"/>
> 	        </map>
> 	    </properties>
> 	</connector>
> 	
>    <model name="receiveSample">
>        <mule-descriptor name="ReceiveUMO"
> implementation="MyMessageReceiver">
>            <inbound-router>
>                <endpoint address="jms://myQueue"/>
>            </inbound-router>
>        </mule-descriptor>
>    </model>
> 
> </mule-configuration>
> 
> 
> I send a message to the queue using
> MuleClient.send(message,"jms://myQueue",null), but no message is received
> at the receiver. The same piece of code is working with 4.1.1.
> 
> Am I missing out any configuration or is it a possible bug? Please let me
> know.
> 
> Thanks in advance,
> Vivek
> 

-- 
View this message in context: http://www.nabble.com/Problem-using-http-connector-in-5.0.0-tp14316771s2354p14337056.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.