Hi,
 I am trying to integrate JBoss 4.0.2 with Tibco EMS.  Thanks to the jboss team 
and folks who post on the forum, I was able to make the necessary changes in 
jms-ds.xml and other files to load the tibco provider.

I have a  POJO JMSClient running in jboss (not a MDB).  EMS server has security 
enabled and I am using the correcr userid/password for the queues. JmsClient 
connects to EMS, sends a message on a queue (example queue A) , receives a 
response from another queue (example queue A.reply) and then disconnects.

I am using a no-txn-connection-factory because I do not need XA support.

I am facing the folliowing issues

1) The client is able to send a message to a queue (for example queue  A) 
however it is not able to receive a response from another queue (for example 
queue A.reply).   I can see the reply on the queue using show message  and also 
i can see the receiver (my client) connected to the queue. 
Not sure why the client is unable to pick up the message.
The code was using selector JMSCorrelationID ='XYZ' (XYZ is the actual correct 
value). However it does not work even if I remove the selecor.  

Relevant section from stdout.log file
------------------------------------
2005-12-02 00:23:53,431 DEBUG [AuthenticationMapper] In mapAuthenticationRequest
2005-12-02 00:23:54,012 DEBUG [JmsClient] jmsObj class = 
org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
2005-12-02 00:23:54,012 TRACE [JmsSessionFactoryImpl] [EMAIL PROTECTED], [EMAIL 
PROTECTED], type=1
2005-12-02 00:23:54,012 TRACE [JmsConnectionFactoryImpl] Created queue 
connection: [EMAIL PROTECTED]
2005-12-02 00:23:54,012 DEBUG [JmsClient] after creating connection
2005-12-02 00:23:54,012 TRACE [JmsSessionFactoryImpl] Allocating session for 
[EMAIL PROTECTED] with request [EMAIL PROTECTED]
2005-12-02 00:23:54,012 TRACE [NoTxConnectionManager] subject: Subject:
        Principal: jbosslookup
        Private Credential: [EMAIL PROTECTED]

2005-12-02 00:23:54,012 DEBUG [IdleRemover] internalRegisterPool: registering 
pool with interval 900000 old interval: 450000
2005-12-02 00:23:54,012 TRACE [JmsManagedConnection] connection request info: 
[EMAIL PROTECTED]
2005-12-02 00:23:54,022 TRACE [JmsManagedConnection] jms credentials: [EMAIL 
PROTECTED] username=jbosslookup, password=**** }
2005-12-02 00:23:54,202 DEBUG [JmsManagedConnection] created connection: 
QueueConnection[ClientId=null Connected=tcp://WKL86YBV71:7222, 
URL=tcp://WKL86YBV71:7222]
2005-12-02 00:23:54,202 DEBUG [JmsManagedConnection] Using a non-XA 
QueueConnection.  It will not be able to participate in a Global UOW
2005-12-02 00:23:54,202 DEBUG [JmsManagedConnection] xaQueueSession=null, 
[EMAIL PROTECTED]
2005-12-02 00:23:54,202 DEBUG [JmsManagedConnection] transacted=false, ack=1
2005-12-02 00:23:54,202 TRACE [JmsManagedConnection] created new managed 
connection: [EMAIL PROTECTED]
2005-12-02 00:23:54,202 DEBUG [JmsManagedConnection] ConnectionEvent listener 
added: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1133501034202 
permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED]
2005-12-02 00:23:54,202 TRACE [JBossManagedConnectionPool] supplying new 
ManagedConnection: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 
lastUse=1133501034202 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL 
PROTECTED]
2005-12-02 00:23:54,202 TRACE [JBossManagedConnectionPool] Got connection from 
pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1133501034202 
permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] 
[InUse/Available/Max]: [1/19/20]
2005-12-02 00:23:54,212 TRACE [JmsSession] new JmsSession [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [CachedConnectionManager] registering connection 
from [EMAIL PROTECTED], connection : [EMAIL PROTECTED], key: null
2005-12-02 00:23:54,212 TRACE [JmsSessionFactoryImpl] Allocated  [EMAIL 
PROTECTED] [EMAIL PROTECTED]
2005-12-02 00:23:54,212 DEBUG [JmsClient] after creating queueSession
2005-12-02 00:23:54,212 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] createQueue [EMAIL PROTECTED] 
queueName=queue.secmgr
2005-12-02 00:23:54,212 TRACE [JmsSession] createdQueue [EMAIL PROTECTED] 
queue=Queue[queue.secmgr]
2005-12-02 00:23:54,212 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] createProducer [EMAIL PROTECTED] 
dest=Queue[queue.secmgr]
2005-12-02 00:23:54,212 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] createdProducer [EMAIL PROTECTED] 
producer=QueueSender[queue=queue.secmgr]
2005-12-02 00:23:54,212 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] [EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JmsSession] createQueue [EMAIL PROTECTED] 
queueName=queue.secmgr.reply
2005-12-02 00:23:54,212 TRACE [JmsSession] createdQueue [EMAIL PROTECTED] 
queue=Queue[queue.secmgr.reply]
2005-12-02 00:23:54,212 DEBUG [JmsClient] sent MSG[2B651B1B24] :<?xml 
version="1.0" encoding="UTF-8"?>
mandarXXXXX
2005-12-02 00:23:54,212 TRACE [JmsSession] Closing session
2005-12-02 00:23:54,212 TRACE [JmsManagedConnection] Sending connection event: 1
2005-12-02 00:23:54,212 TRACE [CachedConnectionManager] unregistering 
connection from [EMAIL PROTECTED], object: [EMAIL PROTECTED], key: null
2005-12-02 00:23:54,212 TRACE [NoTxConnectionManager] unregisterConnection: 0 
handles left
2005-12-02 00:23:54,212 TRACE [JBossManagedConnectionPool] putting 
ManagedConnection back into pool kill=false [EMAIL PROTECTED] [EMAIL PROTECTED] 
handles=0 lastUse=1133501034202 permit=true trackByTx=false [EMAIL PROTECTED] 
[EMAIL PROTECTED]
2005-12-02 00:23:54,212 TRACE [JBossManagedConnectionPool] Returning connection 
to pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1133501034212 
permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] 
[InUse/Available/Max]: [0/20/20]
2005-12-02 00:23:54,212 DEBUG [JmsClient] successfully closed queueSession
2005-12-02 00:23:54,212 TRACE [JmsSessionFactoryImpl] close() [EMAIL PROTECTED]
2005-12-02 00:23:54,212 DEBUG [JmsClient] successfully closed connection
2005-12-02 00:23:54,212 DEBUG [JmsClient] attempting to retrieve 
msg[JMSCorrelationID ='2B651B1B24'] from queue :queue.secmgr.reply
2005-12-02 00:23:54,212 DEBUG [JmsClient] jmsObj class = 
org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
2005-12-02 00:23:54,222 TRACE [JmsSessionFactoryImpl] [EMAIL PROTECTED], [EMAIL 
PROTECTED], type=1
2005-12-02 00:23:54,222 TRACE [JmsConnectionFactoryImpl] Created queue 
connection: [EMAIL PROTECTED]
2005-12-02 00:23:54,222 DEBUG [JmsClient] after creating connection
2005-12-02 00:23:54,222 TRACE [JmsSessionFactoryImpl] Allocating session for 
[EMAIL PROTECTED] with request [EMAIL PROTECTED]
2005-12-02 00:23:54,222 TRACE [NoTxConnectionManager] subject: Subject:
        Principal: jbosslookup
        Private Credential: [EMAIL PROTECTED]

2005-12-02 00:23:54,222 TRACE [JmsManagedConnection] Looking for connection 
matching credentials: [EMAIL PROTECTED] username=jbosslookup, password=**** }
2005-12-02 00:23:54,222 TRACE [JmsManagedConnection] Found matching connection: 
[EMAIL PROTECTED]
2005-12-02 00:23:54,222 TRACE [JBossManagedConnectionPool] supplying 
ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 
lastUse=1133501034212 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL 
PROTECTED]
2005-12-02 00:23:54,222 TRACE [JBossManagedConnectionPool] Got connection from 
pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1133501034212 
permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] 
[InUse/Available/Max]: [1/19/20]
2005-12-02 00:23:54,222 TRACE [JmsSession] new JmsSession [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]
2005-12-02 00:23:54,222 TRACE [CachedConnectionManager] registering connection 
from [EMAIL PROTECTED], connection : [EMAIL PROTECTED], key: null
2005-12-02 00:23:54,222 TRACE [JmsSessionFactoryImpl] Allocated  [EMAIL 
PROTECTED] [EMAIL PROTECTED]
2005-12-02 00:23:54,222 DEBUG [JmsClient] after creating queueSession
2005-12-02 00:23:54,222 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,222 TRACE [JmsSession] createQueue [EMAIL PROTECTED] 
queueName=queue.secmgr.reply
2005-12-02 00:23:54,222 TRACE [JmsSession] createdQueue [EMAIL PROTECTED] 
queue=Queue[queue.secmgr.reply]
2005-12-02 00:23:54,222 TRACE [JmsSession] getSession [EMAIL PROTECTED] for 
[EMAIL PROTECTED]
2005-12-02 00:23:54,222 TRACE [JmsSession] createConsumer [EMAIL PROTECTED] 
dest=Queue[queue.secmgr.reply]
2005-12-02 00:23:54,222 TRACE [JmsMessageConsumer] new JmsMessageConsumer 
[EMAIL PROTECTED] consumer=QueueReceiver[queue=queue.secmgr.reply] [EMAIL 
PROTECTED]
2005-12-02 00:23:54,222 TRACE [JmsSession] createdConsumer [EMAIL PROTECTED] 
[EMAIL PROTECTED]
2005-12-02 00:23:54,222 DEBUG [JmsClient] Now trying to get a message from 
queue.secmgr.reply
2005-12-02 00:23:54,222 TRACE [JmsMessageConsumer] receive [EMAIL PROTECTED] 
timeout=0
------------------------------------


I am using a timeout of 0.  MessageConsumer.receive(0). The client just hangs 
forever.


I can send more detailed log files or other configuration files  if necessary.

Thanks for your help.

Regards
Mandar




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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to