The code line "configuration.addAcceptorConfiguration("remote", "tcp://
0.0.0.0:5672");" is adding an acceptor with the port 5672 while the client
is trying to connect to the port 8990: spring.artemis.broker-url=tcp://
127.0.0.1:8990. What Port are you testing with telnet?

On Thu, 14 Dec 2023 at 05:53, 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