[
https://issues.redhat.com/browse/WFLY-13793?page=com.atlassian.jira.plugi...
]
Nicolas De Amicis commented on WFLY-13793:
------------------------------------------
Thanks for the PR and the workaround. The workaround adds to the standalone-full.xml the
expected attribute:
{quote}{{<pooled-connection-factory name="remote-artemis"
entries="java:/jms/artemisConnectionFactory"
connectors="remote-artemis" enable-amq1-prefix="false"/>}}
{quote}
But wildfly is listen always on the wrong queue. In my case, I would like that use the
queue named toPrinter, but wildfly is listen on the queue named jms.queue.toPrinter.
It's seems that enable-amq1-prefix=false has no effect. The version of my remote
ActiveMQ Artemis is 2.10.1
A snippet from my MDB:
{quote}{{@MessageDriven(name = "PrinterMDB", activationConfig = {}}
{{ @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue =
"toPrinter"),}}
{{ @ActivationConfigProperty(propertyName = "destinationType", propertyValue =
"javax.jms.Queue"),}}
{{ @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue =
"Auto-acknowledge")})}}
{{@ResourceAdapter(value = "remote-artemis")}}
{{public class PrinterMDB implements MessageListener}}
{{...}}
{quote}
And the parameters from my standalone-full.xml about remote-artemis:
{quote}{{<remote-connector name="remote-artemis"
socket-binding="remote-artemis"/>}}
{{<pooled-connection-factory name="remote-artemis"
entries="java:/jms/artemisConnectionFactory"
connectors="remote-artemis" enable-amq1-prefix="false"/>}}
{{<outbound-socket-binding name="remote-artemis">}}
{{ <remote-destination host="testserver" port="61616"/>}}
{{</outbound-socket-binding>}}
{quote}
Attribute enable-amq1-prefix doesn't work (remote artemis)
----------------------------------------------------------
Key: WFLY-13793
URL:
https://issues.redhat.com/browse/WFLY-13793
Project: WildFly
Issue Type: Bug
Affects Versions: 17.0.1.Final
Reporter: Nicolas De Amicis
Assignee: Brian Stansberry
Priority: Major
I need to connect Wildfly 17.0.1 to a remote Artemis server. I follow the doc here:
[
https://docs.wildfly.org/17/Admin_Guide.html#Messaging_Connect_a_pooled-c...]
No problem for point 1 to 3. But when I follow the instruction for disabling the
compatibility mode (enable-amq1-prefix) I have this error:
{quote}{{[standalone@localhost:9990 /]
/subsystem=messaging-activemq/pooled-connection-factory=remote-artemis:write-attribute(name="enable-amq1-prefix",
value="false")}}
\{{{}}
\{{ "outcome" => "failed",}}
\{{ "failure-description" => "WFLYCTL0248: Invalid value false for
enable-amq1-prefix; legal values are [XA_GENERIC, GENERIC, XA_T}}
{{OPIC, TOPIC, QUEUE, XA_QUEUE]",}}
\{{ "rolled-back" => true}}
{{}}}
{quote}
If I deploy my MDB that connects to queue myqueue, I see in artemis console my MDB is
connected to jms.queue.myqueue.
I also tried to add the attribute manually but it seems it doesn't work:
{quote}{{<pooled-connection-factory name="remote-artemis"
entries="java:/}}{{jms/remoteCF}}{{" connectors="remote-artemis"
enable-amq1-prefix="false"/>}}
{quote}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)