[JBoss JIRA] Created: (EJBTHREE-1358) StrictMaxPool for SFSB does not decrease Pool-Usage on bean-removal
by Stephan Pelikan (JIRA)
StrictMaxPool for SFSB does not decrease Pool-Usage on bean-removal
-------------------------------------------------------------------
Key: EJBTHREE-1358
URL: http://jira.jboss.com/jira/browse/EJBTHREE-1358
Project: EJB 3.0
Issue Type: Bug
Components: pool
Affects Versions: AS 4.2.1.GA
Environment: Java 1.5.0_11
@Stateful(name="Lektorat")
@PoolClass(value=org.jboss.ejb3.StrictMaxPool.class, maxSize=1000, timeout=10000)
@Cache(org.jboss.ejb3.cache.NoPassivationCache.class)
public class LektoratImpl implements Lektorat {
....
Reporter: Stephan Pelikan
Priority: Minor
When using SFSB in the old fasioned way for long life operations - not as substitution for SLSB for accessing an extended EntityManager within a short-life-period (http-request) - we mentioned several side-effects (not covered in this JIRA-entry) which we could be trace back to the default-poolclass "ThreadLocalPool". So we decided to use instead the "StrictMaxPool"-class.
Now - and this is the bug we found - we could see that the StrictMaxPool's semaphore is not decreased on SFSB-removal which leads to errors upon 1000 (our limit) SFSB has been created. We have mentioned that SFSB's removal does not call the pool's method "release" (The bean should not be reused) but the method "remove" isn't overwritten by StrictMaxPool so the semaphore is never decreased.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBMESSAGING-1186) maxBatchTime stops working after the connection between source and target servers is lost
by Maurice Zeijen (JIRA)
maxBatchTime stops working after the connection between source and target servers is lost
-----------------------------------------------------------------------------------------
Key: JBMESSAGING-1186
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1186
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 1.4.0.SP1
Environment: Windows XP 64
Java 6
JBoss 4.2.2
Reporter: Maurice Zeijen
Assigned To: Tim Fox
We have the following Situation:
A bridge MBean is setup to bridge between a local source and a remote target. The MaxBatchSize attribute is set to 5 and the MaxBatchTime is set to 10000. So the configuration looks like this:
<mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=wai_sync_customer_bridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
<depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
<depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
<attribute name="SourceDestinationLookup">/queue/local</attribute>
<attribute name="TargetDestinationLookup">/queue/remote</attribute>
<attribute name="QualityOfServiceMode">0</attribute>
<attribute name="MaxBatchSize">5</attribute>
<attribute name="MaxBatchTime">10000</attribute>
<attribute name="FailureRetryInterval">5000</attribute>
<attribute name="MaxRetries">-1</attribute>
<attribute name="AddMessageIDInHeader">false</attribute>
<depends>jboss.messaging.destination:name=local,service=Queue</depends>
</mbean>
If the connection between the two servers is available then the MaxBatchTime works fine. After 10 seconds all messages are moved from local queue to remote queue if there are less then 5 messages in the queue. But when for some reason the connection is lost and after a while restored again then the MaxBatchTime doesn't work any more. Luckily the MaxBatchSize still works. Also the MaxBatchSize doesn't work when the remote server isn't available when the bridge on the local server is started.
Restarting the bridge makes the MaxBatchTime work again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBMESSAGING-1415) remoting-bisocket-service.xml refers to obsolete numberOfCallRetries jboss-remoting param
by Dimitris Andreadis (JIRA)
remoting-bisocket-service.xml refers to obsolete numberOfCallRetries jboss-remoting param
-----------------------------------------------------------------------------------------
Key: JBMESSAGING-1415
URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1415
Project: JBoss Messaging
Issue Type: Task
Components: AS Integration
Affects Versions: 1.4.1.CR1
Reporter: Dimitris Andreadis
Assignee: Tim Fox
Fix For: 1.4.1.CR2
With the upgrade of jboss remoting to 2.4.0.SP1 we see a warning in the AS console:
21:13:15,625 WARN [MicroSocketClientInvoker] numberOfRetries is no longer used
This is coming from setting numberOfRetries in remoting-bisocket-service.xml:
...
<invoker transport="bisocket">
<!-- There should be no reason to change these parameters - warning!
Changing them may stop JBoss Messaging working correctly -->
<attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
<attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
<attribute name="dataType" isParam="true">jms</attribute>
<attribute name="socket.check_connection" isParam="true">false</attribute>
<attribute name="serverBindAddress">${jboss.bind.address}</attribute>
<attribute name="serverBindPort">4457</attribute>
<attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
<attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
<attribute name="numberOfCallRetries" isParam="true">1</attribute>
<attribute name="pingFrequency" isParam="true">214748364</attribute>
<attribute name="pingWindowFactor" isParam="true">10</attribute>
<attribute name="onewayThreadPool">org.jboss.jms.server.remoting.DirectThreadPool</attribute>
...
It should be removed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months