users@glassfish.java.net

OpenMQ: JDBC-Based Data Store

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Feb 2009 00:38:10 PST

Hello,

i tried to configure jms with a jdbc-based data store. But after adding the properties of the imbroker via config.properties i get:

[i][#|2009-02-11T14:43:04.689+0100|WARNING|sun-appserver9.1|com.stc.jmsjca.core.Activation|_ThreadID=27;_ThreadName=JMSJCA connect;_RequestID=d213b51e-b0b0-4d90-8823-8af23b518247;|JMSJCA-E016
: [sync-QueueReceiver(ds01) @ [mq://localhost:7676]]: message delivery initiation failed (attempt #1); will retry in 1 seconds. The error was: com.sun.messaging.jms.JMSException: [C4003]:
Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Verbindung abgewiesen
com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Verbindung abgewiesen
        at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:274)
        at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:220)
        at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:234)
        at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:148)
        at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:90)
        at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:130)
        at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:135)
        at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:778)
        at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew(ConnectionInitiator.java:254)
        at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:208)
        at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:158)
        at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:807)
        at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1509)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2280)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1012)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:414)
        at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:60)
        at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:59)
        at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:98)
        at com.stc.jmsjca.core.RAJMSObjectFactory.createConnection(RAJMSObjectFactory.java:196)
        at com.stc.jmsjca.core.SyncDelivery.start(SyncDelivery.java:155)
        at com.stc.jmsjca.core.Activation.asyncStart(Activation.java:477)
        at com.stc.jmsjca.core.Activation.access$000(Activation.java:78)
        at com.stc.jmsjca.core.Activation$1.run(Activation.java:331)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Verbindung abgewiesen
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.ss.provider.ASPlainSocketImpl$2.run(ASPlainSocketImpl.java:419)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.server.ss.provider.ASPlainSocketImpl._invoke(ASPlainSocketImpl.java:416)
        at com.sun.enterprise.server.ss.provider.ASPlainSocketImpl.connect(ASPlainSocketImpl.java:288)
        at com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:267)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:180)
        at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:214)
        ... 22 more
|#]
[/i]

Here the properties:

imq.brokerid=mq_on_oracle
imq.persist.store=jdbc
imq.persist.jdbc.dbVendor=oracle
imq.persist.jdbc.oracle.property.url=jdbc:oracle:thin:@10.0.0.172:1521:mydb
imq.persist.jdbc.oracle.user=aquser
imq.persist.jdbc.oracle.needpassword=true

Does anybody know, how to solve this error?
[Message sent by forum member 'hewizard' (hewizard)]

http://forums.java.net/jive/thread.jspa?messageID=331451