You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ivan <iv...@dhousestudio.com> on 2008/09/04 17:34:40 UTC

Behaviour of JMS consumer

   Hi!

I have JMS-consumer service in SMX 3.2.x.
And I see in jconsole of AMQ, it creates connection each time and 
connection dies immedially.

Is it possible to use static connection in case JMS-consumer?
Or is it feature of working of JMS-consumer?


   Thanks,
   Truly yours,
   Ivan Pryvalov.

Re: Behaviour of JMS consumer

Posted by ivan <iv...@dhousestudio.com>.
Guillaume Nodet пишет:
> I don't think so.  Would you mind raising a JIRA issue explaining the
> problem please ?

SM-1555


   Thanks,
   Ivan Pryvalov.

> 
> On Fri, Sep 5, 2008 at 11:03 AM, ivan <iv...@dhousestudio.com> wrote:
>> Guillaume Nodet пишет:
>>> You should use a pooled connection factory from activemq or jencks to
>>> wrap your real connection factory.
>>> Note that if you use the <jms:consumer/> endpoint, there is a cache
>>> level that you can configure to use a single connection and not
>>> recreate it.
>> Ok, I use CACHE_CONNECTON.
>>
>> But one more issue: when SMX as well as JMS service is running, after
>> redeploying service old connection stills and new connection creates. So,
>> AMQ have unused permament connection. Is it normally?
>>
>>  Thanks,
>>  Truly yours,
>>  Ivan Pryvalov.
>>
>>
>>> On Thu, Sep 4, 2008 at 5:34 PM, ivan <iv...@dhousestudio.com> wrote:
>>>>  Hi!
>>>>
>>>> I have JMS-consumer service in SMX 3.2.x.
>>>> And I see in jconsole of AMQ, it creates connection each time and
>>>> connection
>>>> dies immedially.
>>>>
>>>> Is it possible to use static connection in case JMS-consumer?
>>>> Or is it feature of working of JMS-consumer?
>>>>
>>>>
>>>>  Thanks,
>>>>  Truly yours,
>>>>  Ivan Pryvalov.
>>>>
>>>
>>>
>>
> 
> 
> 


Re: Behaviour of JMS consumer

Posted by Guillaume Nodet <gn...@gmail.com>.
I don't think so.  Would you mind raising a JIRA issue explaining the
problem please ?

On Fri, Sep 5, 2008 at 11:03 AM, ivan <iv...@dhousestudio.com> wrote:
> Guillaume Nodet пишет:
>>
>> You should use a pooled connection factory from activemq or jencks to
>> wrap your real connection factory.
>> Note that if you use the <jms:consumer/> endpoint, there is a cache
>> level that you can configure to use a single connection and not
>> recreate it.
>
> Ok, I use CACHE_CONNECTON.
>
> But one more issue: when SMX as well as JMS service is running, after
> redeploying service old connection stills and new connection creates. So,
> AMQ have unused permament connection. Is it normally?
>
>  Thanks,
>  Truly yours,
>  Ivan Pryvalov.
>
>
>>
>> On Thu, Sep 4, 2008 at 5:34 PM, ivan <iv...@dhousestudio.com> wrote:
>>>
>>>  Hi!
>>>
>>> I have JMS-consumer service in SMX 3.2.x.
>>> And I see in jconsole of AMQ, it creates connection each time and
>>> connection
>>> dies immedially.
>>>
>>> Is it possible to use static connection in case JMS-consumer?
>>> Or is it feature of working of JMS-consumer?
>>>
>>>
>>>  Thanks,
>>>  Truly yours,
>>>  Ivan Pryvalov.
>>>
>>
>>
>>
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Behaviour of JMS consumer

Posted by ivan <iv...@dhousestudio.com>.
Guillaume Nodet пишет:
> You should use a pooled connection factory from activemq or jencks to
> wrap your real connection factory.
> Note that if you use the <jms:consumer/> endpoint, there is a cache
> level that you can configure to use a single connection and not
> recreate it.

Ok, I use CACHE_CONNECTON.

But one more issue: when SMX as well as JMS service is running, after 
redeploying service old connection stills and new connection creates. 
So, AMQ have unused permament connection. Is it normally?

   Thanks,
   Truly yours,
   Ivan Pryvalov.


> 
> On Thu, Sep 4, 2008 at 5:34 PM, ivan <iv...@dhousestudio.com> wrote:
>>  Hi!
>>
>> I have JMS-consumer service in SMX 3.2.x.
>> And I see in jconsole of AMQ, it creates connection each time and connection
>> dies immedially.
>>
>> Is it possible to use static connection in case JMS-consumer?
>> Or is it feature of working of JMS-consumer?
>>
>>
>>  Thanks,
>>  Truly yours,
>>  Ivan Pryvalov.
>>
> 
> 
> 


Re: Behaviour of JMS consumer

Posted by Guillaume Nodet <gn...@gmail.com>.
You should use a pooled connection factory from activemq or jencks to
wrap your real connection factory.
Note that if you use the <jms:consumer/> endpoint, there is a cache
level that you can configure to use a single connection and not
recreate it.

On Thu, Sep 4, 2008 at 5:34 PM, ivan <iv...@dhousestudio.com> wrote:
>  Hi!
>
> I have JMS-consumer service in SMX 3.2.x.
> And I see in jconsole of AMQ, it creates connection each time and connection
> dies immedially.
>
> Is it possible to use static connection in case JMS-consumer?
> Or is it feature of working of JMS-consumer?
>
>
>  Thanks,
>  Truly yours,
>  Ivan Pryvalov.
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/