#525 Oracle AQ Patch 10g.

open
nobody
5
2004-11-16
2004-10-06
Rob v.d. Boom
No

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

Discussion

  • Adrian Brock
    Adrian Brock
    2004-10-12

    • labels: 316841 -->
    • milestone: 228434 -->
     
  • Rob v.d. Boom
    Rob v.d. Boom
    2004-11-16

    • labels: --> 324883
     
  • Adrian Brock
    Adrian Brock
    2004-11-16

    • labels: 324883 --> JBossServer