- labels: 316841 -->
- milestone: 228434 -->
Hi,
i found a bug in the startup of the
AQjmsConnectionConsumer. When starting Jboss on
windows (everything local) everyting works fine. When
deploying to a linux system (and oracle remote) the
message "JMS Session null" was given by the Consumer.
After research it appeared that i had to add a sleep in
the AQjmsConnectionConsumer to give the session pool
more time to build the sessions:
Changed by adding sleep :
public void run()
{
JMSException exception = null;
ExceptionListener listener = null;
MessageConsumer consumer = null;
if (!closed)
{
if (trace)
{
log.trace("Starting Advanced Queue
Connecion Consumer.");
}
try
{
//TODO: better solution 24-09-2004.
try
{
Thread.sleep(2000);
} catch (InterruptedException e) {}
if (session != null)
{
} else {
throw new JMSException("JMS Session is
null.");
}
I used:
windowsNT/linux
jdk1.4.2
jboss3.2.3
oracle patch 10g