[Messaging, JMS & JBossMQ] - MDB that makes a nested asynchronous request/reply times out
by avernon
I have for several days been trying to get this scenaio to work...
MDB 1 receives a message
MDB 1 sends a message and waits for a reply
MDB 2 receives the message, determines the response
MDB 2 replies on the reply to queue specified.
The message is posted on the queue that same second
(I checked the WSMQ Explorer to confirm the exact time)
MDB 1 times out several seconds later (timeout period)
This is shown below with JBoss DEBUG logging enabled.
If I run the exact same code as a simple Java application to obtain the reply MDB 1 is expecting then it works fine... What could possibly be wrong? Can anyone suggest anything?
22:49:33,296 DEBUG [BaseMDB]
Reply ID: (ID:414d5120484254657374514d332020200089054820024402)
<?xml version="1.0" encoding="UTF-8"?><HB_EAI_REPLY><HB_EAI_HEADER version="1.0" created="2008-04-16T22:49:33" r
eturnCode="3001"/></HB_EAI_REPLY>
22:49:33,296 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@
18c28a, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@bccad2{ url=null ,addedOrder=0}
22:49:33,296 INFO [STDOUT] >>>>>>>>>>>>>>>>>>>> the message has been placed on queue:///BANK_REPLY.QL
22:49:33,296 INFO [STDOUT] DONE ON MEssage>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:49:33,296 DEBUG [ManagedEntityManagerFactory] ************** closing entity managersession **************
22:49:37,218 INFO [STDOUT] Where is my message? It should have been onqueue:///BANK_REPLY.QL
22:49:37,218 WARN [XmlHelper] Service: CustomerRetrievalReply timeout occurred for service: CustomerRetrieval. JMS ID:
ID:414d5120484254657374514d332020200089054820024402
22:49:37,218 INFO [IvrAccountHandler] [0002] Missing account for userID: 1
22:49:37,218 INFO [STDOUT] ***********class ae.hilal.j2ee.mdb.ProductionMDB-3686138 connection: 12455934
Here is the test code that works...
package ae.hilal.eai.spi;
import java.util.Properties;
import javax.jms.JMSException;
import javax.jms.QueueConnection;
import javax.jms.QueueReceiver;
import javax.jms.QueueSession;
import javax.jms.TextMessage;
import org.apache.log4j.Logger;
import com.ibm.mq.jms.JMSC;
import com.ibm.mq.jms.MQQueue;
import com.ibm.mq.jms.MQQueueConnectionFactory;
public class TestMQ {
private static final long serialVersionUID = -7743081529785780978L;
private static final Logger log = Logger.getLogger(TestMQ.class);
private TestMQ() {
}
public static void main(String[] args) throws JMSException
{
System.out.println("What is it? " + JMSC.MQJMS_EXP_UNLIMITED);
System.out.println("What is it? " + JMSC.MQJMS_EXP_APP);
MQQueueConnectionFactory qcf =new MQQueueConnectionFactory();
Properties props = new Properties();
props.put("ConnectionFactory.ConnectionMode", "Client");
props.put("ConnectionFactory.Client.HostName", "localhost");
props.put("ConnectionFactory.Client.QueueManagerName", "HBTestQM3");
props.put("ConnectionFactory.Client.Channel", "HILALBANKCLIENTCONN");
props.put("ConnectionFactory.Client.Port", "1513");
String connectionMode = props
.getProperty("ConnectionFactory.ConnectionMode");
if ("Bind".equals(connectionMode)) {
log.info("Using Bind mode for MQ connection.");
qcf.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
} else {
String hostname = props
.getProperty("ConnectionFactory.Client.HostName");
String queueManagerName = props
.getProperty("ConnectionFactory.Client.QueueManagerName");
String channel = props
.getProperty("ConnectionFactory.Client.Channel");
String port = props
.getProperty("ConnectionFactory.Client.Port");
Integer portNo = null;
if (port != null)
try
{
portNo = Integer.parseInt(port);
}
catch (NumberFormatException ex)
{
System.out.println("Invalid port number: " + port);
}
System.out.println("Using Client mode for MQ connection. host: "
+ hostname + " QMName: " + queueManagerName
+ " Channel: " + channel + " Port: " + port);
qcf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
// qcf.setQueueManager(queueManagerName);
qcf.setHostName(hostname);
// qcf.setChannel(channel);
if (portNo != null)
qcf.setPort(portNo);
}
try
{
QueueConnection connection = qcf.createQueueConnection();
connection.start();
QueueSession s = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
QueueReceiver receiver = s.createReceiver(new MQQueue("BANK_REPLY.QL"));
System.out.println(":Reading off " + receiver.getQueue());
TextMessage msg = (TextMessage) receiver.receive(3);
System.out.println(msg.getText());
} catch (JMSException e) {
e.getLinkedException().printStackTrace();
// e.printStackTrace();
throw e;
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144615#4144615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144615
18 years, 3 months
[JBoss Messaging] - Re: Clustered server preference
by chip_schoch
Let me clear up some things. First, I am not using 1.3.0. I am using JBoss AS 4.2.2.ga, JBM1.4.0.SP1, as stated in the intial post. I simply made the mistake of referencing a paragraph in the 1.3 documentation. My bad.
I have been running numerous tests using the program I included, although I found a few bugs that I fixed, and it is clear that the the consumption on a distributed queue is not FIFO. And as I look at the JMS spec I see that FIFO is not guaranteed. One wonders why they use the term MessageQueue instead of MessageBag. So, I will ask my question again. Is there a way to configure JBossMessaging (1.4.0SP1) such that I can get FIFO from a particular destination regardless of the number of consumers of that destination?
Finally, my singleton service is a service that monitors a directory on a SAN for incoming files and queues a message when a file comes in. I really don't want the service running on multiple nodes monitoring a shared directory. It is not a "singleton cluster". It is a singleton service that runs in the cluster.
The only reason I am trying to understand this stuff is that we are about ready to deploy our new architecture in production (3 linux app servers clustered and 4 windows app servers running a jms client service) and we are not seeing the load balanced across them like we should. Apparently my misunderstanding of how distributed queues work is a major contributing factor.
Here is the last 3 runs of my program with 2 client listeners using:
<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=LoadBalanceConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/LoadBalanceConnectionFactory</binding>
| <binding>/LoadBalanceConnectionFactory</binding>
| <binding>java:/LoadBalanceConnectionFactory</binding>
| <binding>java:/LoadBalanceConnectionFactory</binding>
| </bindings>
| </attribute>
|
| <attribute name="PrefetchSize">1</attribute>
| <attribute name="SlowConsumers">true</attribute>
| <attribute name="SupportsFailover">false</attribute>
| <attribute name="SupportsLoadBalancing">true</attribute>
| </mbean>
| </server>
[2008-04-16 13:44:26,266] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_0
| [2008-04-16 13:44:26,313] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_1
| [2008-04-16 13:44:26,313] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_2
| [2008-04-16 13:44:26,329] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_3
| [2008-04-16 13:44:26,344] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_4
| [2008-04-16 13:44:26,360] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_5
| [2008-04-16 13:44:26,376] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_6
| [2008-04-16 13:44:26,391] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_7
| [2008-04-16 13:44:26,407] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_8
| [2008-04-16 13:44:26,422] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_9
| [2008-04-16 13:44:26,438] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_10
| [2008-04-16 13:44:26,454] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_11
| [2008-04-16 13:44:26,469] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_12
| [2008-04-16 13:44:26,485] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_13
| [2008-04-16 13:44:26,501] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_14
| [2008-04-16 13:44:26,516] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_15
| [2008-04-16 13:44:26,532] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_16
| [2008-04-16 13:44:26,547] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_17
| [2008-04-16 13:44:26,563] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_18
| [2008-04-16 13:44:26,579] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_19
| [2008-04-16 13:44:26,594] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_20
| [2008-04-16 13:44:26,610] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_21
| [2008-04-16 13:44:26,626] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_22
| [2008-04-16 13:44:26,641] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_23
| [2008-04-16 13:44:26,657] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_24
| [2008-04-16 13:44:27,016] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_0
| [2008-04-16 13:44:27,016] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_1
| [2008-04-16 13:44:28,032] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_2
| [2008-04-16 13:44:28,047] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_3
| [2008-04-16 13:44:29,063] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_4
| [2008-04-16 13:44:29,079] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_5
| [2008-04-16 13:44:30,094] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_6
| [2008-04-16 13:44:30,110] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_7
| [2008-04-16 13:44:31,157] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_8
| [2008-04-16 13:44:31,157] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_9
| [2008-04-16 13:44:32,204] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_10
| [2008-04-16 13:44:32,204] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_11
| [2008-04-16 13:44:33,219] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_12
| [2008-04-16 13:44:33,235] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_13
| [2008-04-16 13:44:34,266] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_15
| [2008-04-16 13:44:34,266] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_14
| [2008-04-16 13:44:35,297] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_16
| [2008-04-16 13:44:35,297] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_17
| [2008-04-16 13:44:36,329] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_18
| [2008-04-16 13:44:36,344] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_19
| [2008-04-16 13:44:37,376] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_20
| [2008-04-16 13:44:37,376] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_21
| [2008-04-16 13:44:38,407] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_22
| [2008-04-16 13:44:38,407] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_23
| [2008-04-16 13:44:39,422] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_24
| [2008-04-16 13:44:52,360] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_0
| [2008-04-16 13:44:52,391] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_1
| [2008-04-16 13:44:52,422] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_2
| [2008-04-16 13:44:52,422] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_3
| [2008-04-16 13:44:52,454] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_4
| [2008-04-16 13:44:52,469] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_5
| [2008-04-16 13:44:52,485] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_6
| [2008-04-16 13:44:52,501] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_7
| [2008-04-16 13:44:52,516] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_8
| [2008-04-16 13:44:52,532] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_9
| [2008-04-16 13:44:52,547] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_10
| [2008-04-16 13:44:52,563] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_11
| [2008-04-16 13:44:52,579] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_12
| [2008-04-16 13:44:52,594] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_13
| [2008-04-16 13:44:52,610] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_14
| [2008-04-16 13:44:52,626] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_15
| [2008-04-16 13:44:52,641] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_16
| [2008-04-16 13:44:52,657] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_17
| [2008-04-16 13:44:52,672] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_18
| [2008-04-16 13:44:52,672] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_19
| [2008-04-16 13:44:52,704] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_20
| [2008-04-16 13:44:52,704] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_21
| [2008-04-16 13:44:52,735] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_22
| [2008-04-16 13:44:52,735] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_23
| [2008-04-16 13:44:52,751] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_24
| [2008-04-16 13:44:53,313] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_0
| [2008-04-16 13:44:53,313] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_3
| [2008-04-16 13:44:54,407] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_1
| [2008-04-16 13:44:54,422] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_23
| [2008-04-16 13:44:55,454] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_22
| [2008-04-16 13:44:55,485] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_21
| [2008-04-16 13:44:56,532] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_24
| [2008-04-16 13:44:56,547] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_2
| [2008-04-16 13:44:57,594] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_19
| [2008-04-16 13:44:57,610] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_20
| [2008-04-16 13:44:58,719] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_11
| [2008-04-16 13:44:58,751] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_12
| [2008-04-16 13:44:59,813] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_16
| [2008-04-16 13:44:59,829] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_17
| [2008-04-16 13:45:00,876] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_7
| [2008-04-16 13:45:00,954] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_8
| [2008-04-16 13:45:01,969] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_6
| [2008-04-16 13:45:02,047] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_9
| [2008-04-16 13:45:03,063] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_15
| [2008-04-16 13:45:03,126] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_18
| [2008-04-16 13:45:04,172] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_5
| [2008-04-16 13:45:04,219] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_10
| [2008-04-16 13:45:05,266] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_4
| [2008-04-16 13:45:05,329] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_13
| [2008-04-16 13:45:06,360] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_14
| [2008-04-16 13:45:20,188] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_0
| [2008-04-16 13:45:20,235] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_1
| [2008-04-16 13:45:20,251] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_2
| [2008-04-16 13:45:20,266] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_3
| [2008-04-16 13:45:20,282] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_4
| [2008-04-16 13:45:20,297] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_5
| [2008-04-16 13:45:20,313] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_6
| [2008-04-16 13:45:20,329] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_7
| [2008-04-16 13:45:20,344] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_8
| [2008-04-16 13:45:20,360] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_9
| [2008-04-16 13:45:20,376] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_10
| [2008-04-16 13:45:20,391] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_11
| [2008-04-16 13:45:20,407] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_12
| [2008-04-16 13:45:20,422] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_13
| [2008-04-16 13:45:20,438] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_14
| [2008-04-16 13:45:20,454] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_15
| [2008-04-16 13:45:20,469] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_16
| [2008-04-16 13:45:20,485] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_17
| [2008-04-16 13:45:20,501] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_18
| [2008-04-16 13:45:20,516] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_19
| [2008-04-16 13:45:20,532] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_20
| [2008-04-16 13:45:20,532] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_21
| [2008-04-16 13:45:20,563] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_22
| [2008-04-16 13:45:20,563] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_23
| [2008-04-16 13:45:20,579] INFO - com.eLynx.Utility.test.JBMTest - Queueing message: Test_Message_24
| [2008-04-16 13:45:21,001] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_6
| [2008-04-16 13:45:21,001] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_0
| [2008-04-16 13:45:22,079] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_18
| [2008-04-16 13:45:22,141] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_19
| [2008-04-16 13:45:23,126] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_11
| [2008-04-16 13:45:23,188] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_12
| [2008-04-16 13:45:24,172] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_5
| [2008-04-16 13:45:24,251] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_7
| [2008-04-16 13:45:25,282] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_4
| [2008-04-16 13:45:25,344] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_8
| [2008-04-16 13:45:26,376] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_9
| [2008-04-16 13:45:26,454] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_10
| [2008-04-16 13:45:27,422] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_14
| [2008-04-16 13:45:27,516] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_15
| [2008-04-16 13:45:28,485] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_21
| [2008-04-16 13:45:28,563] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_22
| [2008-04-16 13:45:29,594] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_16
| [2008-04-16 13:45:29,672] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_17
| [2008-04-16 13:45:30,657] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_23
| [2008-04-16 13:45:30,735] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_24
| [2008-04-16 13:45:31,751] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_1
| [2008-04-16 13:45:31,844] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_2
| [2008-04-16 13:45:32,813] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_20
| [2008-04-16 13:45:32,907] INFO - com.eLynx.Utility.test.TestListener - Listener_1 received message: Test_Message_3
| [2008-04-16 13:45:33,860] INFO - com.eLynx.Utility.test.TestListener - Listener_2 received message: Test_Message_13
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144609#4144609
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144609
18 years, 3 months
[JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat
by claudio_br
With wireshark I got:
GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1
|
| User-Agent: Java/1.5.0_06
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-type: application/x-www-form-urlencoded
|
|
|
| HTTP/1.0 200 OK
|
| Date: Wed, 16 Apr 2008 17:08:56 GMT
|
| Server: Microsoft-IIS/6.0
|
| X-Powered-By: ASP.NET
|
| X-AspNet-Version: 2.0.50727
|
| Cache-Control: private, max-age=0
|
| Content-Type: text/xml; charset=utf-8
|
| Content-Length: 3399
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: keep-alive
|
|
|
| <?xml version="1.0" encoding="utf-8"?>
|
| <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://webservices.maplink2.com.br" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://webservices.maplink2.com.br" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
| <wsdl:types>
|
| <s:schema elementFormDefault="qualified" targetNamespace="http://webservices.maplink2.com.br">
|
| <s:element name="getToken">
|
| <s:complexType>
|
| <s:sequence>
|
| <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
|
| <s:element minOccurs="0" maxOccurs="1" name="pwd" type="s:string" />
|
| </s:sequence>
|
| </s:complexType>
|
| </s:element>
|
| <s:element name="getTokenResponse">
|
| <s:complexType>
|
| <s:sequence>
|
| <s:element minOccurs="0" maxOccurs="1" name="getTokenResult" type="s:string" />
|
| </s:sequence>
|
| </s:complexType>
|
| </s:element>
|
| </s:schema>
|
| </wsdl:types>
|
| <wsdl:message name="getTokenSoapIn">
|
| <wsdl:part name="parameters" element="tns:getToken" />
|
| </wsdl:message>
|
| <wsdl:message name="getTokenSoapOut">
|
| <wsdl:part name="parameters" element="tns:getTokenResponse" />
|
| </wsdl:message>
|
| <wsdl:portType name="AuthenticationSoap">
|
| <wsdl:operation name="getToken">
|
| <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Cria token para autentica....o do usu..rio</wsdl:documentation>
|
| <wsdl:input message="tns:getTokenSoapIn" />
|
| <wsdl:output message="tns:getTokenSoapOut" />
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="AuthenticationSoap" type="tns:AuthenticationSoap">
|
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
| <wsdl:operation name="getToken">
|
| <soap:operation soapAction="http://webservices.maplink2.com.br/getToken" style="document" />
|
| <wsdl:input>
|
| <soap:body use="literal" />
|
| </wsdl:input>
|
| <wsdl:output>
|
| <soap:body use="literal" />
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:binding name="AuthenticationSoap12" type="tns:AuthenticationSoap">
|
| <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
| <wsdl:operation name="getToken">
|
| <soap12:operation soapAction="http://webservices.maplink2.com.br/getToken" style="document" />
|
| <wsdl:input>
|
| <soap12:body use="literal" />
|
| </wsdl:input>
|
| <wsdl:output>
|
| <soap12:body use="literal" />
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="Authentication">
|
| <wsdl:port name="AuthenticationSoap" binding="tns:AuthenticationSoap">
|
| <soap:address location="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti..." />
|
| </wsdl:port>
|
| <wsdl:port name="AuthenticationSoap12" binding="tns:AuthenticationSoap12">
|
| <soap12:address location="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti..." />
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1
|
| User-Agent: Java/1.5.0_06
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-type: application/x-www-form-urlencoded
|
|
|
| HTTP/1.0 200 OK
|
| Date: Wed, 16 Apr 2008 17:08:56 GMT
|
| Server: Microsoft-IIS/6.0
|
| X-Powered-By: ASP.NET
|
| X-AspNet-Version: 2.0.50727
|
| Cache-Control: private, max-age=0
|
| Content-Type: text/xml; charset=utf-8
|
| Content-Length: 3399
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: keep-alive
|
|
|
| <?xml version="1.0" encoding="utf-8"?>
|
| <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://webservices.maplink2.com.br" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://webservices.maplink2.com.br" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
| <wsdl:types>
|
| <s:schema elementFormDefault="qualified" targetNamespace="http://webservices.maplink2.com.br">
|
| <s:element name="getToken">
|
| <s:complexType>
|
| <s:sequence>
|
| <s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
|
| <s:element minOccurs="0" maxOccurs="1" name="pwd" type="s:string" />
|
| </s:sequence>
|
| </s:complexType>
|
| </s:element>
|
| <s:element name="getTokenResponse">
|
| <s:complexType>
|
| <s:sequence>
|
| <s:element minOccurs="0" maxOccurs="1" name="getTokenResult" type="s:string" />
|
| </s:sequence>
|
| </s:complexType>
|
| </s:element>
|
| </s:schema>
|
| </wsdl:types>
|
| <wsdl:message name="getTokenSoapIn">
|
| <wsdl:part name="parameters" element="tns:getToken" />
|
| </wsdl:message>
|
| <wsdl:message name="getTokenSoapOut">
|
| <wsdl:part name="parameters" element="tns:getTokenResponse" />
|
| </wsdl:message>
|
| <wsdl:portType name="AuthenticationSoap">
|
| <wsdl:operation name="getToken">
|
| <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Cria token para autentica....o do usu..rio</wsdl:documentation>
|
| <wsdl:input message="tns:getTokenSoapIn" />
|
| <wsdl:output message="tns:getTokenSoapOut" />
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="AuthenticationSoap" type="tns:AuthenticationSoap">
|
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
| <wsdl:operation name="getToken">
|
| <soap:operation soapAction="http://webservices.maplink2.com.br/getToken" style="document" />
|
| <wsdl:input>
|
| <soap:body use="literal" />
|
| </wsdl:input>
|
| <wsdl:output>
|
| <soap:body use="literal" />
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:binding name="AuthenticationSoap12" type="tns:AuthenticationSoap">
|
| <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
| <wsdl:operation name="getToken">
|
| <soap12:operation soapAction="http://webservices.maplink2.com.br/getToken" style="document" />
|
| <wsdl:input>
|
| <soap12:body use="literal" />
|
| </wsdl:input>
|
| <wsdl:output>
|
| <soap12:body use="literal" />
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="Authentication">
|
| <wsdl:port name="AuthenticationSoap" binding="tns:AuthenticationSoap">
|
| <soap:address location="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti..." />
|
| </wsdl:port>
|
| <wsdl:port name="AuthenticationSoap12" binding="tns:AuthenticationSoap12">
|
| <soap12:address location="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti..." />
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1
|
| SOAPAction: "http://webservices.maplink2.com.br/getToken"
|
| Content-Type: application/soap+xml; charset=UTF-8
|
| JBoss-Remoting-Version: 22
|
| User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto)
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Transfer-Encoding: chunked
|
|
|
| HTTP/1.0 501 Not Implemented
|
| Server: squid/2.6.STABLE16
|
| Date: Thu, 17 Apr 2008 17:02:56 GMT
|
| Content-Type: text/html
|
| Content-Length: 1185
|
| Expires: Thu, 17 Apr 2008 17:02:56 GMT
|
| X-Squid-Error: ERR_UNSUP_REQ 0
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: close
|
|
|
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
| <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
| <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
| <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
| </HEAD><BODY>
| <H1>ERROR</H1>
| <H2>The requested URL could not be retrieved</H2>
| <HR noshade size="1px">
| <P>
| While trying to retrieve the URL:
| <A HREF="http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti...">http://webservices.maplink2.com.br/webservices/v3/Authentication/Authenti...</A>
| <P>
| The following error was encountered:
| <UL>
| <LI>
| <STRONG>
| Unsupported Request Method and Protocol
| </STRONG>
| </UL>
|
| <P>
| Squid does not support all request methods for all access protocols.
| For example, you can not POST a Gopher request.
| <P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.
|
| <BR clear="all">
| <HR noshade size="1px">
| <ADDRESS>
| Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16)
| </ADDRESS>
| </BODY></HTML>
| e3
|
| <env:Envelope xmlns:env='http://www.w3.org/2003/05/soap-envelope'><env:Header></env:Header><env:Body><getToken xmlns="http://webservices.maplink2.com.br"><user>user</user><pwd>password</pwd></getToken></env:Body></env:Envelope>
|
| 0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144584#4144584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144584
18 years, 3 months
[JBoss jBPM] - Referencing JSF components from Javascript in JPDL forms
by luiseterc
Hi,
I have modified a xhtml task form generated by the Graphical designer plugin in order to add a combobox component:
| <h:selectOneMenu onchange="updateTopic(this);" id="topicCombo" value="#{ChooseTopicBean.value}" styleClass="combobox">
| value="#{ChooseTopicBean.items}"/>
| </h:selectOneMenu>
| </jbpm:datacell>
|
and defined apart a JS function called "updateTopic(ref)" which try to change the value of another jsf component when select any of the combobox's options, that is:
| <h:inputText id="inputTopic" value="#{var['topic']}" />
|
I don't know how to reference the inputText from my JavaScript function since I've seen from the generated HTML page parsed by the browser that the components/forms IDs are generated dynamically:
| <input id="j_id197:inputTopic" type="text" name="j_id197:inputTopic" />
|
So, I'll get an error if I try to reference as "document.getComponentById('inputTopic')".
Where is the "j_id197" id name coming from? Is there any other way to reference jsf components from Javascript?
Thanks in advance.
Cheers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144579#4144579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144579
18 years, 3 months