Search code examples
javascriptsslhttpsactivemq-classicstomp

stomp+ActiveMQ with SSL


I have used stomp+ActiveMQ in my application to push the data events received from external applications. I am able to setup this on HTTP [ws] but when I tried moving this setup to my production server where we have HTTPS [wss], the setup is failing with error saying un-authorised access. I understand it is because of the SSL what we have on production server, but I am unable to find out solution for this, I tried searching and tried following the proposed solutions but none are working. Any help would be highly appreciated.

Update 1: Adding the details asked

Here is the code what I have added for STOMP var client = Stomp.client("wss://domain:61614/stomp");

And the error I get is "ReferenceError: Stomp is not defined"

activemq : 5.9.0 STOM : 1.0.9


Solution

  • I resolved the issue, and it was related to the key strokes what I had generated earlier. I just deleted the previous one and recreated a new one for my SSL and everything started working with the sample application provided by STOMP team. I will integrate it in my actual project and will paste the solution here for everyone use.

    Following are the settings we had used.

    transportConnector name="wss" uri="wss://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600&wireFormat.maxInactivityDuration=500000000&wireFormat.maxInactivityDurationInitalDelay=36000000&websocket.maxIdleTime=0&transport.useInactivityMonitor=false"