Hi,
My server is BEA WebLogic Server 8.1.
I currently inherited a JMS app where it uses an Asyncronous Message bean.
The logic in this bean is very simple. It has an OnMessage method which looks at the input message. This input message is just a textmessage, depending on it's value it will implement different processes.
For example:
I have a listener which gets kicked off when the server starts.
This listener kicks off a method (let's say around every 10 minutes) that attempts to write to the JMS queue.
Now is where the problem occurs.
Here is the logic that attempts to send a text message to the queue.
The exception occurs on this line:
queueSender = queueSession.createSender(queue);
I get this error:
I think I am getting this because the process is being kicked off on the server rather than from an user.
Does anyone know how to do this?
I tried using an anonymous producer but doing this:
But then I got an invalid destination error.
Has anyone attempted to this before ( Write to a JMS queue from a method which was set off with a timer)?
Any help would be greatly appreciated,
[ February 06, 2008: Message edited by: Annie McCall ]
[ February 06, 2008: Message edited by: Annie McCall ]
My server is BEA WebLogic Server 8.1.
I currently inherited a JMS app where it uses an Asyncronous Message bean.
The logic in this bean is very simple. It has an OnMessage method which looks at the input message. This input message is just a textmessage, depending on it's value it will implement different processes.
For example:
I have a listener which gets kicked off when the server starts.
This listener kicks off a method (let's say around every 10 minutes) that attempts to write to the JMS queue.
Now is where the problem occurs.
Here is the logic that attempts to send a text message to the queue.
The exception occurs on this line:
queueSender = queueSession.createSender(queue);
I get this error:
I think I am getting this because the process is being kicked off on the server rather than from an user.
Does anyone know how to do this?
I tried using an anonymous producer but doing this:
But then I got an invalid destination error.
Has anyone attempted to this before ( Write to a JMS queue from a method which was set off with a timer)?
Any help would be greatly appreciated,
[ February 06, 2008: Message edited by: Annie McCall ]
[ February 06, 2008: Message edited by: Annie McCall ]