Hi,

Iam using the following snippet both in JBoss and the WebLogic server.

timeOutInSeconds=60;
Message message = qReceiver.receive(timeOutInSeconds*1000);
if( message == null )
{
  //throw exception; user defined
 }else{
                if( message instanceof TextMessage )
                {
                        result = ((TextMessage) message).getText();
                } else  {
                   //throw exception; user defined
                }
}


Problem is,
In Weblogic, the message is null and it is still able to process further. 
In JBoss also the message is null, but not able to process further.
It is throwing the exception.

Following are the message formats--
In weblogic--
Message = >TextMessage[null, ]

In JBoss--
Message = >SpyTextMessage {
Header { 
   jmsDestination  : null
   jmsDeliveryMode : -1
   jmsExpiration   : 0
   jmsPriority     : -1
   jmsMessageID    : null
   jmsTimeStamp    : 0
   jmsCorrelationID: null
   jmsReplyTo      : null
   jmsType         : null
   jmsRedelivered  : false
   jmsProperties   : {TJMSID=15b9e68:10c1f5c4b6e:-7f13, 
api=checkAdapterServerStatus}
   jmsPropReadWrite: true
   msgReadOnly     : false
   producerClientId: ID:7
}
Body {
   text            :
}
}


I want to know, whether the receive method of queue will behave differently in 
the different servers r any other issue ..
Do let me know if u need any other details.

Pls do the need full.


Noor.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954348#3954348

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954348

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to