You specifically note trying STOMP and AMQP clients, however you make
no mention of bringing in the STOMP or AMQP protocol dependencies to
enable support of those protocols. Have you?

The artemis-jms-server dependency only brings in support for the CORE
protocol, used by artemis-jms-client for example. For AMQP support you
would add the artemis-amqp-protocol dependency, and for STOMP it would
be artemis-stomp-protocol.

I think you might also have to configure the acceptor URL(s) to
indicate which protocols you want it to support, with e.g
"?protocols=CORE,AMQP,STOMP". As an example, the template file used to
generate the broker.xml config during standalone broker (which
includes all the protocol modules) instance creation has an acceptor
supporting all the protocols (and template variables for the others
that are protocol-specific):
https://github.com/apache/activemq-artemis/blob/2.31.2/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/broker.xml#L101

On Thu, 14 Dec 2023 at 04:54, Shurya kumar <shurya.c...@gmail.com> wrote:
>
> Hi all,
>
> I am using an embedded Artemis broker in my Springboot application.
> I am able to use the broker from the java application.
>
> However, when i try to connect to broker from the python client using
> stomp/amqp, it is not getting connected. But the telnet command is
> able to the port.
>
> Is there something i am missing?
>
>
> Pom.xml
> ---------------
>
> <dependency>
>     <groupId>org.springframework.boot</groupId>
>     <artifactId>spring-boot-starter-artemis</artifactId>
> </dependency>
>
> <!-- https://mvnrepository.com/artifact/org.apache.activemq/artemis-server -->
> <dependency>
>     <groupId>org.apache.activemq</groupId>
>     <artifactId>artemis-jms-server</artifactId>
>     <version>2.19.0</version>
> </dependency>
>
> <dependency>
>     <groupId>org.messaginghub</groupId>
>     <artifactId>pooled-jms</artifactId>
> </dependency>
>
>
> Config
> ----------
>
> @Configuration
> public class ArtemisConfig implements ArtemisConfigurationCustomizer {
>   @Override
>   public void customize(org.apache.activemq.artemis.core.config.Configuration
> configuration) {
>     try {
>       configuration.addAcceptorConfiguration("remote", "tcp://0.0.0.0:5672");
>       configuration.setSecurityEnabled(false);
>     } catch (Exception e) {
>       throw new RuntimeException(e);
>     }
>   }
> }
>
>
> application.properties
> -------------
>
> spring.artemis.embedded.enabled=true
> spring.artemis.mode=embedded
> # Customize host, port, username, and password
> spring.artemis.user=admin
> spring.artemis.password=Test.1
> spring.artemis.broker-url=tcp://127.0.0.1:8990
> spring.artemis.pool.enabled=true
> spring.artemis.pool.max-connections=50
> logging.level.org.apache.activemq.artemis=DEBUG

Reply via email to