I am very new to JMS concept.Am using weblogic5.1
Actually I have added two factories (QueueConnectionFactory
and TopicConnectionFactory) in the Factories icon under JMS
of my weblogic console.
Only this change only I made..
And I have tried weblogic examples
--------------------------------------------------------------------------------------
JMS_FACTORY="javax.jms.QueueConnectionFactory"
queueName="javax.jms.exampleQueue";
qconFactory = (QueueConnectionFactory)ctx.lookup(JMS_FACTORY);
qcon = qconFactory.createQueueConnection();
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
try {
queue = (Queue) ctx.lookup(queueName);
} catch (NamingException ne) {
queue = qsession.createQueue(queueName);
ctx.bind(queueName, queue);
}
-----------------------------------------------------------------------------------------
Actually I tried adding queue using weblogic console
I am getting error like this on the weblogic console
Property change error for property "AddQueue".
Failed to create queue "javax.jms.exampleQueue": javax.jms.JMSException: Error Creating JMSDestination
And in the startweblogic dosprompt am getting exception like this
Fri Oct 20 12:52:42 GMT+05:30 2000:<I> <JMS> com.sybase.jdbc2.jdbc.SybSQLExcepti
on: Stored procedure 'reserveJmsKeys' not found. Specify owner.objectname or use
sp_help to check whether the object exists (sp_help may produce lots of output)
at com.sybase.jdbc2.tds.Tds.processEed(Compiled Code)
at com.sybase.jdbc2.tds.Tds.nextResult(Compiled Code)
Is Stored procedure 'reserveJmsKeys' should be there on the database-------------------------(1)
Then I tried running programm as said above code.Since queue is not bounded already.
While binding queue, am getting error like this
Exception in thread "main" javax.jms.JMSException: Error Creating JMSDestination
at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)
at weblogic.jms.common.WLStub626n4y193g3f641i4g4e1y3r6a153j4j.createQueu
e(WLStub626n4y193g3f641i4g4e1y3r6a153j4j.java:418)
at weblogic.jms.client.JMSQueueSession.createQueue(JMSQueueSession.java:47)
at QueueSend.init(QueueSend.java:43)
at QueueSend.main(QueueSend.java:82)
Did weblogic5.1 support JMS ---------------------------------(2)
Any one help in this regard.
Thanks in advance.
Regards,
Vinoth.C
-
Error creating JMSDestination (0 messages)
- Posted by: vinoth chidambaram
- Posted on: February 19 2001 07:33 EST