Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messaging-activemq #116

Open
gangulytista91 opened this issue Mar 31, 2021 · 0 comments
Open

messaging-activemq #116

gangulytista91 opened this issue Mar 31, 2021 · 0 comments

Comments

@gangulytista91
Copy link

gangulytista91 commented Mar 31, 2021

As a newbie I am trying to add messaging-activemq but it failes saying Parser error

here is what I want in my standalone.xml :

    <subsystem xmlns="urn:jboss:domain:messaging-activemq:3.0">
        <server name="default">
            <security-setting name="#">
                <role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/>
            </security-setting>
            <address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" max-size-bytes="10485760" page-size-bytes="2097152" message-counter-history-day-limit="10"/>
            <http-connector name="http-connector" socket-binding="http" endpoint="http-acceptor"/>
            <http-connector name="http-connector-throughput" socket-binding="http" endpoint="http-acceptor-throughput">
                <param name="batch-delay" value="50"/>
            </http-connector>
            <in-vm-connector name="in-vm" server-id="0">
                <param name="buffer-pooling" value="false"/>
            </in-vm-connector>
            <http-acceptor name="http-acceptor" http-listener="default"/>
            <http-acceptor name="http-acceptor-throughput" http-listener="default">
                <param name="batch-delay" value="50"/>
                <param name="direct-deliver" value="false"/>
            </http-acceptor>
            <in-vm-acceptor name="in-vm" server-id="0">
                <param name="buffer-pooling" value="false"/>
            </in-vm-acceptor>
            <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>
            <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>
            <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>
            <connection-factory name="RemoteConnectionFactory" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>
            <pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm" transaction="xa"/>
        </server>
    </subsystem>

I was wondering if I am using the correct puppet code :

{ "messaging-activemq" => {
"server" => {
"default" => {
"security-setting" => {
"#" => {
"role" => {
"guest" =>{
"send" => "true",
"consume" => "true",
"create-non-durable-queue" => "true",
"delete-non-durable-queue" => "true"
}
}
}
},
"address-setting" => {
"#" => {
"dead-letter-address" => "jms.queue.DLQ",
"expiry-address" => "jms.queue.ExpiryQueue",
"max-size-bytes" => 10485760,
"page-size-bytes" => 2097152,
"message-counter-history-day-limit" => 10
}
},
"http-connector" => {
"http-connector" => {
"socket-binding" => "http",
"endpoint" => "http-acceptor"
}
},
"http-connector" => {
"http-connector-throughput" => {
"socket-binding" => "http",
"endpoint" => "http-acceptor-throughput",
"param" => {
"batch-delay" => "50"
}
}
},
"http-connector" => {
"http-acceptor" => {
"http-listener" => "default"
}
},
"http-connector" => {
"http-connector-throughput" => {
"http-listener" => "default",
"param" => {
"batch-delay" => "50"
},
"param" => {
"direct-deliver" => "false"
}
}
},
"in-vm-acceptor" => {
"in-vm" => {
"server-id" => "0",
"param" => {
"buffer-pooling" => "false"
}
}
},
"jms-queue" => {
"ExpiryQueue" => {
"entries" => ["java:/jms/queue/ExpiryQueue"]
},
"DLQ" => {
"entries" => ["java:/jms/queue/DLQ"],
},
"connection-factory" => {
"InVmConnectionFactory" => {
"connector" => "in-vm",
"entries" => ["java:/ConnectionFactory"]
}
},
"connection-factory" => {
"RemoteConnectionFactory" => {
"connector" => "http-connector",
"entries" => ["java:jboss/exported/jms/RemoteConnectionFactory"]
}
},
"pooled-connection-factory" => {
"activemq-ra" => {
"connector" => "in-vm",
"transaction" => "xa",
"entries" => [
"java:/JmsXA java:jboss/DefaultJMSConnectionFactory"
]
}
}
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant