By using a very new version of PHP Stomp client, I get slightly further but not much. Here is the URL for resolving the first issue (thanks Michael):
http://groups.google.com/group/stompcli-dev/browse_thread/thread/5d6cd3b06bbebb7aHere is the error now shown by the stomp client:
Fatal error: Uncaught exception 'Stomp_Exception' with message 'Connection not acknowledged' in /var/www/vservers/robv/www/htdocs/noreaster-client/Stomp.php:227 Stack trace: #0 /var/www/vservers/robv/www/htdocs/noreaster-client/mySStest.php(180): Stomp->connect('user', 'password') #1 {main} thrown in /var/www/vservers/robv/www/htdocs/noreaster-client/Stomp.php on line 227
The above occurs because ActiveMQ is not setting the session up and is returning false instead. The stomp lines of code are:
$frame = new Stomp_Frame("CONNECT", $headers);
$this->_writeFrame($frame);
$frame = $this->readFrame();
Here is what $frame looks like before and after the readFrame() call:
$frame before
object(Stomp_Frame)#124 (3) {
["command"]=>
string(7) "CONNECT"
["headers"]=>
array(2) {
["login"]=>
string(4) "user"
["passcode"]=>
string(8) "password"
}
["body"]=>
NULL
}
$frame after
bool(false)
Here is what appears in the activemq.log:
DEBUG TransportConnection - Setting up new connection: /127.0.0.1:46203
DEBUG Transport - Transport failed: java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:50)
at org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:58)
at java.io.DataInputStream.readByte(DataInputStream.java:241)
at org.apache.activemq.transport.stomp.StompWireFormat.readLine(StompWireFormat.java:186)
at org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:94)
at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:203)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:195)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
at java.lang.Thread.run(Thread.java:595)
DEBUG TransportConnection - Stopping connection: /127.0.0.1:46203
DEBUG TcpTransport - Stopping transport tcp:///127.0.0.1:46203
DEBUG TransportConnection - Stopped connection: /127.0.0.1:46203
DEBUG TransportConnection - Cleaning up connection resources: /127.0.0.1:46203
DEBUG TransportConnection - Connection Stopped: /127.0.0.1:46203
All of the configuration has not changed since my original message. I am stumped as to why the connection is being reset.
Any help would be greatly appreciated.
Rob