You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2017/08/16 07:48:36 UTC

Re: What is the meaning of the code in JmsListenerFactory?

Hi Jacopo,

Did you continue to investigate ?

Thanks

Jacques


Le 26/07/2012 à 17:41, Jacopo Cappellato a écrit :
> On Jul 26, 2012, at 5:15 PM, Jacopo Cappellato wrote:
>
>> Hi all,
>>
>> could you please help me to understand the meaning of the code in JmsListenerFactory that deals with the initialization of listeners? I am confused and before I touch it I would like to be sure I am not missing anything.
>>
>> Specifically:
>>
>> 1) what is the purpose of the while block in the run() method?
>> 2) under what circumstances the loadListener method could return a null object? or a listener that is not connected?
> 3) why are we composing the "serverKey" concatenating server.jndi-server-name + server.jndi-name + server.topic-queue rather then the simpler jms-service.name + server.jndi-server-name? this latter form guarantees that the key is unique while the former doesn't.
>
>> Kind regards,
>>
>> Jacopo
>>
>>
>


Re: What is the meaning of the code in JmsListenerFactory?

Posted by Jacques Le Roux <ja...@les7arts.com>.
OK Michael,

In the meantime, I simply did OFBIZ-4454

Jacques


Le 16/08/2017 à 10:43, Michael Brohl a écrit :
> Hi Jacques,
>
> I would leave it open because it serves as a reminder to work on this.
>
> It's on our agenda because we have projects which make use of JMS/Camel. And there are ideas to make this compatible with the OFBiz standard.
>
> Thanks,
>
> Michael Brohl
> ecomify GmbH
> www.ecomify.de
>
>
> Am 16.08.17 um 10:31 schrieb Jacques Le Roux:
>> OK, thanks
>>
>> So should I also close related Jiras like https://issues.apache.org/jira/browse/OFBIZ-4453 ?
>>
>> Jacques
>>
>>
>> Le 16/08/2017 à 10:04, Jacopo Cappellato a écrit :
>>> Hi Jacques,
>>>
>>> if I well remember at that time I concluded that rather than trying to
>>> improve that code it was better to re-design (e.g. leveraging Apache
>>> Camel) and implement from scratch once the need would arise.
>>>
>>> Jacopo
>>>
>>> On Wed, Aug 16, 2017 at 9:48 AM, Jacques Le Roux <
>>> jacques.le.roux@les7arts.com> wrote:
>>>
>>>> Hi Jacopo,
>>>>
>>>> Did you continue to investigate ?
>>>>
>>>> Thanks
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 26/07/2012 à 17:41, Jacopo Cappellato a écrit :
>>>>
>>>>> On Jul 26, 2012, at 5:15 PM, Jacopo Cappellato wrote:
>>>>>
>>>>> Hi all,
>>>>>> could you please help me to understand the meaning of the code in
>>>>>> JmsListenerFactory that deals with the initialization of listeners? I am
>>>>>> confused and before I touch it I would like to be sure I am not missing
>>>>>> anything.
>>>>>>
>>>>>> Specifically:
>>>>>>
>>>>>> 1) what is the purpose of the while block in the run() method?
>>>>>> 2) under what circumstances the loadListener method could return a null
>>>>>> object? or a listener that is not connected?
>>>>>>
>>>>> 3) why are we composing the "serverKey" concatenating
>>>>> server.jndi-server-name + server.jndi-name + server.topic-queue rather then
>>>>> the simpler jms-service.name + server.jndi-server-name? this latter form
>>>>> guarantees that the key is unique while the former doesn't.
>>>>>
>>>>> Kind regards,
>>>>>> Jacopo
>>>>>>
>>>>>>
>>>>>>
>>
>
>


Re: What is the meaning of the code in JmsListenerFactory?

Posted by Michael Brohl <mi...@ecomify.de>.
Hi Jacques,

I would leave it open because it serves as a reminder to work on this.

It's on our agenda because we have projects which make use of JMS/Camel. 
And there are ideas to make this compatible with the OFBiz standard.

Thanks,

Michael Brohl
ecomify GmbH
www.ecomify.de


Am 16.08.17 um 10:31 schrieb Jacques Le Roux:
> OK, thanks
>
> So should I also close related Jiras like 
> https://issues.apache.org/jira/browse/OFBIZ-4453 ?
>
> Jacques
>
>
> Le 16/08/2017 à 10:04, Jacopo Cappellato a écrit :
>> Hi Jacques,
>>
>> if I well remember at that time I concluded that rather than trying to
>> improve that code it was better to re-design (e.g. leveraging Apache
>> Camel) and implement from scratch once the need would arise.
>>
>> Jacopo
>>
>> On Wed, Aug 16, 2017 at 9:48 AM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>> Hi Jacopo,
>>>
>>> Did you continue to investigate ?
>>>
>>> Thanks
>>>
>>> Jacques
>>>
>>>
>>> Le 26/07/2012 à 17:41, Jacopo Cappellato a écrit :
>>>
>>>> On Jul 26, 2012, at 5:15 PM, Jacopo Cappellato wrote:
>>>>
>>>> Hi all,
>>>>> could you please help me to understand the meaning of the code in
>>>>> JmsListenerFactory that deals with the initialization of 
>>>>> listeners? I am
>>>>> confused and before I touch it I would like to be sure I am not 
>>>>> missing
>>>>> anything.
>>>>>
>>>>> Specifically:
>>>>>
>>>>> 1) what is the purpose of the while block in the run() method?
>>>>> 2) under what circumstances the loadListener method could return a 
>>>>> null
>>>>> object? or a listener that is not connected?
>>>>>
>>>> 3) why are we composing the "serverKey" concatenating
>>>> server.jndi-server-name + server.jndi-name + server.topic-queue 
>>>> rather then
>>>> the simpler jms-service.name + server.jndi-server-name? this latter 
>>>> form
>>>> guarantees that the key is unique while the former doesn't.
>>>>
>>>> Kind regards,
>>>>> Jacopo
>>>>>
>>>>>
>>>>>
>



Re: What is the meaning of the code in JmsListenerFactory?

Posted by Jacques Le Roux <ja...@les7arts.com>.
OK, thanks

So should I also close related Jiras like https://issues.apache.org/jira/browse/OFBIZ-4453 ?

Jacques


Le 16/08/2017 à 10:04, Jacopo Cappellato a écrit :
> Hi Jacques,
>
> if I well remember at that time I concluded that rather than trying to
> improve that code it was better to re-design (e.g. leveraging Apache
> Camel) and implement from scratch once the need would arise.
>
> Jacopo
>
> On Wed, Aug 16, 2017 at 9:48 AM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
>> Hi Jacopo,
>>
>> Did you continue to investigate ?
>>
>> Thanks
>>
>> Jacques
>>
>>
>> Le 26/07/2012 à 17:41, Jacopo Cappellato a écrit :
>>
>>> On Jul 26, 2012, at 5:15 PM, Jacopo Cappellato wrote:
>>>
>>> Hi all,
>>>> could you please help me to understand the meaning of the code in
>>>> JmsListenerFactory that deals with the initialization of listeners? I am
>>>> confused and before I touch it I would like to be sure I am not missing
>>>> anything.
>>>>
>>>> Specifically:
>>>>
>>>> 1) what is the purpose of the while block in the run() method?
>>>> 2) under what circumstances the loadListener method could return a null
>>>> object? or a listener that is not connected?
>>>>
>>> 3) why are we composing the "serverKey" concatenating
>>> server.jndi-server-name + server.jndi-name + server.topic-queue rather then
>>> the simpler jms-service.name + server.jndi-server-name? this latter form
>>> guarantees that the key is unique while the former doesn't.
>>>
>>> Kind regards,
>>>> Jacopo
>>>>
>>>>
>>>>


Re: What is the meaning of the code in JmsListenerFactory?

Posted by Jacopo Cappellato <ja...@hotwaxsystems.com>.
Hi Jacques,

if I well remember at that time I concluded that rather than trying to
improve that code it was better to re-design (e.g. leveraging Apache
Camel) and implement from scratch once the need would arise.

Jacopo

On Wed, Aug 16, 2017 at 9:48 AM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Hi Jacopo,
>
> Did you continue to investigate ?
>
> Thanks
>
> Jacques
>
>
> Le 26/07/2012 à 17:41, Jacopo Cappellato a écrit :
>
>> On Jul 26, 2012, at 5:15 PM, Jacopo Cappellato wrote:
>>
>> Hi all,
>>>
>>> could you please help me to understand the meaning of the code in
>>> JmsListenerFactory that deals with the initialization of listeners? I am
>>> confused and before I touch it I would like to be sure I am not missing
>>> anything.
>>>
>>> Specifically:
>>>
>>> 1) what is the purpose of the while block in the run() method?
>>> 2) under what circumstances the loadListener method could return a null
>>> object? or a listener that is not connected?
>>>
>> 3) why are we composing the "serverKey" concatenating
>> server.jndi-server-name + server.jndi-name + server.topic-queue rather then
>> the simpler jms-service.name + server.jndi-server-name? this latter form
>> guarantees that the key is unique while the former doesn't.
>>
>> Kind regards,
>>>
>>> Jacopo
>>>
>>>
>>>
>>
>