That connection factory won't work with ActiveMQ, you need to use the ActiveMQConnectionFactory. See http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnectionFactory.html
You can see an example of its usage here http://activemq.apache.org/hello-world.html. On Wed, Oct 14, 2015 at 11:39 AM, gerardl <[email protected]> wrote: > Can I use the com.sun.messaging.ConnectionFactory to connect through JMS to > ActiveMQ? > > When attempting this I get the following error: > > [C4003]: Error occurred on connection creation [localhost:61616]. - cause: > java.lang.NumberFormatException: For input string: " ?☺ActiveMQ > > Are there specific settings to be configured on > com.sun.messaging.ConnectionFactory before it will communicate properly > with > ActiveMQ? > > Thanks, > Ger. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/com-sun-messaging-ConnectionFactory-and-ActiveMQ-tp4702958.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >
