Re: MDB Activation Properties

2024-07-09 Thread Richard Zowalla
Hey Alex,

Would be great to get a doc update PR ;-)

Thanks
Richard

> Am 09.07.2024 um 11:02 schrieb Alex The Rocker :
> 
> What a "funny" coincidence!
> 
> Today I was investigating ways of setting up JMS parameters in TomEE,
> and I too found quite outdated (if not in contradiction) pages.
> 
> This say understatement: "there's plenty of improvement opportunity in
> TomEE JMS-related documentation"...
> 
> I'll see if I can recap all the "gotchas" which I found...
> 
> Alex
> 
> Le mar. 9 juil. 2024 à 10:28, Richard Zowalla  a écrit :
>> 
>> Hi,
>> 
>> at a first glance, it looks like the docs are just out-dated.
>> 
>> I would check the docs of the latest activemq (classic) version used in 
>> TomEE 8 and compare, if these properties are still available or have 
>> changed: 
>> https://activemq.apache.org/components/classic/documentation/redelivery-policy
>> 
>> Gruß
>> Richard
>> 
>> On 2024/06/17 11:47:31 chege wrote:
>>> Hi,
>>> 
>>> I have tried deploying this mdb in tomee 8.0.15 but keeps failing.
>>> 
>>> MDB
>>> 
>>> @MessageDriven(activationConfig = {
>>>@ActivationConfigProperty(propertyName = "useJndi", propertyValue =
>>> "false"),
>>>@ActivationConfigProperty(propertyName = "destination",
>>> propertyValue = "getnews"),
>>>@ActivationConfigProperty(propertyName = "destinationType",
>>> propertyValue = "javax.jms.Queue"),
>>>@ActivationConfigProperty(propertyName = "initialRedeliveryDelay",
>>> propertyValue = "6"),
>>>@ActivationConfigProperty(propertyName = "maximumRedeliveries",
>>> propertyValue = "20"),
>>>@ActivationConfigProperty(propertyName =
>>> "redeliveryBackOffMultiplier", propertyValue = "2"),
>>>@ActivationConfigProperty(propertyName =
>>> "redeliveryUseExponentialBackOff", propertyValue = "true")
>>> })
>>> public class A implements MessageListener {
>>> 
>>>@Override
>>>public void onMessage(Message msg) {
>>> 
>>> 
>>> 
>>>}
>>> 
>>> }
>>> 
>>> 
>>> tomee.xml
>>> 
>>> 
>>>  # Do not start the embedded ActiveMQ broker
>>>  BrokerXmlConfig  =
>>>  ServerUrl = tcp://localhost:61616
>>>  
>>> 
>>> Error:
>>> 
>>> Caused by: org.apache.openejb.OpenEJBException: Unable to create
>>> activation spec: No setter found for the activation spec properties:
>>> [RedeliveryUseExponentialBackOff, redeliveryBackOffMultiplier]
>>> 
>>> 
>>> Acccording to the error [redeliveryBackOffMultiplier,
>>> redeliveryUseExponentialBackOff] are unknown.
>>> 
>>> I am refering to this documentation
>>> https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html
>>> 
>>> What I am doing wrong?
>>> 
>>> Chege
>>> 
>>> 



Re: MDB Activation Properties

2024-07-09 Thread Alex The Rocker
What a "funny" coincidence!

Today I was investigating ways of setting up JMS parameters in TomEE,
and I too found quite outdated (if not in contradiction) pages.

This say understatement: "there's plenty of improvement opportunity in
TomEE JMS-related documentation"...

I'll see if I can recap all the "gotchas" which I found...

Alex

Le mar. 9 juil. 2024 à 10:28, Richard Zowalla  a écrit :
>
> Hi,
>
> at a first glance, it looks like the docs are just out-dated.
>
> I would check the docs of the latest activemq (classic) version used in TomEE 
> 8 and compare, if these properties are still available or have changed: 
> https://activemq.apache.org/components/classic/documentation/redelivery-policy
>
> Gruß
> Richard
>
> On 2024/06/17 11:47:31 chege wrote:
> > Hi,
> >
> > I have tried deploying this mdb in tomee 8.0.15 but keeps failing.
> >
> > MDB
> >
> > @MessageDriven(activationConfig = {
> > @ActivationConfigProperty(propertyName = "useJndi", propertyValue =
> > "false"),
> > @ActivationConfigProperty(propertyName = "destination",
> > propertyValue = "getnews"),
> > @ActivationConfigProperty(propertyName = "destinationType",
> > propertyValue = "javax.jms.Queue"),
> > @ActivationConfigProperty(propertyName = "initialRedeliveryDelay",
> > propertyValue = "6"),
> > @ActivationConfigProperty(propertyName = "maximumRedeliveries",
> > propertyValue = "20"),
> > @ActivationConfigProperty(propertyName =
> > "redeliveryBackOffMultiplier", propertyValue = "2"),
> > @ActivationConfigProperty(propertyName =
> > "redeliveryUseExponentialBackOff", propertyValue = "true")
> > })
> > public class A implements MessageListener {
> >
> > @Override
> > public void onMessage(Message msg) {
> >
> >
> >
> > }
> >
> > }
> >
> >
> > tomee.xml
> >
> > 
> >   # Do not start the embedded ActiveMQ broker
> >   BrokerXmlConfig  =
> >   ServerUrl = tcp://localhost:61616
> >   
> >
> > Error:
> >
> > Caused by: org.apache.openejb.OpenEJBException: Unable to create
> > activation spec: No setter found for the activation spec properties:
> > [RedeliveryUseExponentialBackOff, redeliveryBackOffMultiplier]
> >
> >
> > Acccording to the error [redeliveryBackOffMultiplier,
> > redeliveryUseExponentialBackOff] are unknown.
> >
> > I am refering to this documentation
> > https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html
> >
> > What I am doing wrong?
> >
> > Chege
> >
> >


Re: MDB Activation Properties

2024-07-09 Thread Richard Zowalla
Hi,

at a first glance, it looks like the docs are just out-dated.

I would check the docs of the latest activemq (classic) version used in TomEE 8 
and compare, if these properties are still available or have changed: 
https://activemq.apache.org/components/classic/documentation/redelivery-policy

Gruß
Richard

On 2024/06/17 11:47:31 chege wrote:
> Hi,
> 
> I have tried deploying this mdb in tomee 8.0.15 but keeps failing.
> 
> MDB
> 
> @MessageDriven(activationConfig = {
> @ActivationConfigProperty(propertyName = "useJndi", propertyValue =
> "false"),
> @ActivationConfigProperty(propertyName = "destination",
> propertyValue = "getnews"),
> @ActivationConfigProperty(propertyName = "destinationType",
> propertyValue = "javax.jms.Queue"),
> @ActivationConfigProperty(propertyName = "initialRedeliveryDelay",
> propertyValue = "6"),
> @ActivationConfigProperty(propertyName = "maximumRedeliveries",
> propertyValue = "20"),
> @ActivationConfigProperty(propertyName =
> "redeliveryBackOffMultiplier", propertyValue = "2"),
> @ActivationConfigProperty(propertyName =
> "redeliveryUseExponentialBackOff", propertyValue = "true")
> })
> public class A implements MessageListener {
> 
> @Override
> public void onMessage(Message msg) {
> 
> 
> 
> }
> 
> }
> 
> 
> tomee.xml
> 
> 
>   # Do not start the embedded ActiveMQ broker
>   BrokerXmlConfig  =
>   ServerUrl = tcp://localhost:61616
>   
> 
> Error:
> 
> Caused by: org.apache.openejb.OpenEJBException: Unable to create
> activation spec: No setter found for the activation spec properties:
> [RedeliveryUseExponentialBackOff, redeliveryBackOffMultiplier]
> 
> 
> Acccording to the error [redeliveryBackOffMultiplier,
> redeliveryUseExponentialBackOff] are unknown.
> 
> I am refering to this documentation
> https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html
> 
> What I am doing wrong?
> 
> Chege
> 
> 


MDB Activation Properties

2024-06-17 Thread chege
Hi,

I have tried deploying this mdb in tomee 8.0.15 but keeps failing.

MDB

@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "useJndi", propertyValue =
"false"),
@ActivationConfigProperty(propertyName = "destination",
propertyValue = "getnews"),
@ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "initialRedeliveryDelay",
propertyValue = "6"),
@ActivationConfigProperty(propertyName = "maximumRedeliveries",
propertyValue = "20"),
@ActivationConfigProperty(propertyName =
"redeliveryBackOffMultiplier", propertyValue = "2"),
@ActivationConfigProperty(propertyName =
"redeliveryUseExponentialBackOff", propertyValue = "true")
})
public class A implements MessageListener {

@Override
public void onMessage(Message msg) {



}

}


tomee.xml


# Do not start the embedded ActiveMQ broker
BrokerXmlConfig  =
ServerUrl = tcp://localhost:61616


Error:

Caused by: org.apache.openejb.OpenEJBException: Unable to create
activation spec: No setter found for the activation spec properties:
[RedeliveryUseExponentialBackOff, redeliveryBackOffMultiplier]


Acccording to the error [redeliveryBackOffMultiplier,
redeliveryUseExponentialBackOff] are unknown.

I am refering to this documentation
https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html

What I am doing wrong?

Chege