[JBoss Messaging] - JMS client not able to receive messages after 3 days run
by raj_kumar
raj_kumar [http://community.jboss.org/people/raj_kumar] created the discussion
"JMS client not able to receive messages after 3 days run"
To view the discussion, visit: http://community.jboss.org/message/636694#636694
--------------------------------------------------------------
Hi All,
I have a remote client which is connected to jboss JMS topic to receive messages. I have an JMS ExceptionListener listening to any excetion, and when exception occurs then it re-connects to JMS topic again.
After running server for 3-4 days, i started getting disconection from the topic, there were 13 diconnection and the code is able to re-cover connection for re-connecting but after 13th re-connection i am not able receive any messages from topic. And there is no error thrown on client side. Alothoth i can see the Lease expire message on Jboss. Below is the Jboss log :-
2011-11-03 22:17:39,034 WARN [org.jboss.remoting.ServerInvoker] Asked to terminate invoker lease for client session id a691o2l-y7p2qt-guf9u2fe-1-guf9ubbf-12, but lease for this id could not be found.: {}
2011-11-03 22:17:49,081 WARN [org.jboss.jms.server.connectionmanager.SimpleConnectionManager] A problem has been detected with the connection to remote client a691o2l-y7p2qt-guf9u2fe-1-gujzcd65-5lngj, jmsClientID=null. It is possible the client has exited without closing its connection(s) or the network has failed. All associated connection resources will be cleaned up.
2011-11-03 22:18:19,071 WARN [org.jboss.jms.server.connectionmanager.SimpleConnectionManager] A problem has been detected with the connection to remote client a691o2l-y7p2qt-guf9u2fe-1-gujznzyp-5m0g8, jmsClientID=71-s8eu9fug-1-ef2u9fug-tq2p7y-l2o196a. It is possible the client has exited without closing its connection(s) or the network has failed. All associated connection resources will be cleaned up.
Below are the parameters of remote-bisocket-service.xml
<!-- Periodicity of client pings. Server window by default is twice this figure -->
<attribute name="clientLeasePeriod" isParam="true">10000</attribute>
<attribute name="registerCallbackListener">false</attribute>
<attribute name="timeout" isParam="true">0</attribute>
<!-- Number of seconds to wait for a connection in the client pool to become free -->
<attribute name="connectionWait" isParam="true">10</attribute>
<!-- Max Number of connections in client pool. This should be significantly higher than
the max number of sessions/consumers you expect -->
<attribute name="JBM_clientMaxPoolSize" isParam="true">200</attribute>
<!-- The maximum time to wait before timing out on trying to write a message to socket for delivery -->
<attribute name="callbackTimeout">10000</attribute>
<!-- Increasing the ping values, since the defaults are extremely low and causing connection failures -->
<attribute name="validatorPingPeriod" isParam="true">60000</attribute>
<attribute name="validatorPingTimeout" isParam="true">30000</attribute>
Can anybody help me to rectify where the problem lies.
I am using JBoss 5.1.
Any suggestion will be apprecieted.
Thanks
Raj...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636694#636694]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - Alternatives to the jBPM web console
by Wendy Schmitz
Wendy Schmitz [http://community.jboss.org/people/wendyschmitz] created the discussion
"Alternatives to the jBPM web console"
To view the discussion, visit: http://community.jboss.org/message/640162#640162
--------------------------------------------------------------
I have recently downloaded and ran examples that came with jBPM 5, as well as reviewed the User Guide. I am researching on how to embed the jBPM engine into a custom web app, which will provide the UI (currently plan on using RichFaces) to invoke user/human task actions, kick off process instances etc.
I am still unclear on how all the components of jBPM fits together and how I can achieve my goal. A few questions below.
+Please see the diagram here (http://community.jboss.org/docs/DOC-13839#Main_components)for a breakdown of the jBPM components/terminologies.+
1. Is it correct to say that my custom Richfaces webapp will replace the entire +GWT console+ that came shipped in the installation, and that it will communicate directly with the +Process Engine?+
2. What is the need for GWT Server component running on client machines?
3. If I defined my own web console to communicate with the Process Engine, it means that it needs to work off a different implementation of the Integration Layer. How does the Integration Layer Impl interact with the Process Engine - what API is involved and where are the Javadocs located? I should also mention that I have trouble locating Javadocs for jbpm (org.jbpm.* packages). The only Javadoc that came with the install was Knowledge API (org.drools.* packages).
4. Is Knowledge API the only interface that my custom web app will interact with in order to execute the Process Engine?
Thanks,
Wendy
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640162#640162]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - calling Java method from Service Task with multiple input parameters
by Jeff Kouba
Jeff Kouba [http://community.jboss.org/people/jkouba] created the discussion
"calling Java method from Service Task with multiple input parameters"
To view the discussion, visit: http://community.jboss.org/message/639918#639918
--------------------------------------------------------------
How do you call a Java method from a service task that has more than one input parameters? For instance, two strings?
What would the interface xml look like? For instance, this works when MyMethod just takes one string as an input parameter:
public String MyMethod(String inputString)
<itemDefinition id="_4_InMessageType" structureRef="java.lang.String" />
<message id="_4_InMessage" itemRef="_4_InMessageType" />
<interface id="_4_ServiceInterface" name="com.test.MyService">
<operation id="_4_ServiceOperation" name="MyMethod">
<inMessageRef>_4_InMessage</inMessageRef>
</operation>
</interface>
But how would you define the interface if it takes two strings as input?
public String MyMethod(String inputString1, String inputString2)
I tried something like this without success...
<itemDefinition id="_4_InMessageType" structureRef="java.lang.String" />
<message id="_4_InMessage" itemRef="_4_InMessageType" />
<message id="_4_InMessage2" itemRef="_4_InMessageType" />
<interface id="_4_ServiceInterface" name="com.test.MyService">
<operation id="_4_ServiceOperation" name="MyMethod">
<inMessageRef>_4_InMessage</inMessageRef>
<inMessageRef>_4_InMessage2</inMessageRef>
</operation>
</interface>
with the service task being
<serviceTask id="_4" name="MyService" operationRef="_4_ServiceOperation" implementation="Other" >
<ioSpecification>
<dataInput id="_4_param1Ref" name="Parameter" />
<dataInput id="_4_param2Ref" name="Parameter" />
<dataOutput id="_4_result" name="Result" />
<inputSet>
<dataInputRefs>_4_param1Ref</dataInputRefs>
<dataInputRefs>_4_param2Ref</dataInputRefs>
</inputSet>
<outputSet>
<dataOutputRefs>_4_result</dataOutputRefs>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<sourceRef>ipAddress</sourceRef>
<targetRef>_4_param1Ref</targetRef>
</dataInputAssociation>
<dataInputAssociation>
<sourceRef>serialInterface</sourceRef>
<targetRef>_4_param2Ref</targetRef>
</dataInputAssociation>
<dataOutputAssociation>
<sourceRef>_4_result</sourceRef>
<targetRef>thisResult</targetRef>
</dataOutputAssociation>
</serviceTask>
thanks...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639918#639918]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years