Hi ActiveMQ Users,
we use an ActiveMQ deployed on JBoss 7.4 as Messaging Broker for JMS Messages. 
We have a requirement that the ActiveMQ is reachable under a Context, let’s say 
‘jms’ so for example “tcp://localhost:8080/jms”.
We use org.apache.activemq:artemis-jms-client:2.19.1 to connect our Java 
Application to Artemis with the configuration :
```java
var conectionFactory = new 
ActiveMQConnectionFactory(“tcp://localhost:8080/jms”);
```
Within the constructor of ActiveMQConnectionFactory the methode 
ActiveMQConnectionFactory#setBrokerURL is called which forwards 
“tcp://localhost:8080/jms” to ServerLocatorImpl#newLocator. From here the 
context ‘jms’ is missing, and the connections are opened against 
“tcp://localhost:8080/”.

Is there any Build-in way to archive a connection against a context, do we have 
to implement our own ServerLocator or is it impossible to connect against a 
context?

Best Merlin

Reply via email to