[JBoss JIRA] Created: (EJBTHREE-653) No pooling for stateless session beans
by Guido Bening (JIRA)
No pooling for stateless session beans
--------------------------------------
Key: EJBTHREE-653
URL: http://jira.jboss.com/jira/browse/EJBTHREE-653
Project: EJB 3.0
Issue Type: Bug
Components: EJB3 Extensions
Affects Versions: EJB 3.0 RC8 - FD
Environment: OS: Windows XP SP2
JDK 1.5.0_06_b05
JBoss AS 4.0.4 GA
Reporter: Guido Bening
Scenario:
Client VM calls a method on a EJB 2 Stateful Session Bean (SFSB) via the remote interface in a loop for 1000 times.Transaction starts on the application server. The SFSB method calls a method on a EJB3 Stateless Session Bean (SLSB) - via the remote interface (local interface makes no difference).
The print out in the PostConstruct callback method of the EJB3 SLSB shows us, that a new bean instance was created for each of the 1000 method calls. Because of ThreadLocal pooling approach, we print out the Thread id too to show, that we always have the same Thread for each method call.
CallBack method:
/**
* EJBCreate method.
*/
@PostConstruct
public void ejb3Create() {
System.out.println("New SessionBean " + this);
System.out.println("Thread " + Thread.currentThread().getId());
setupBean();
}
And the log for a few of the 1000 calls:
...
09:17:51,119 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@231ae2
09:17:51,129 INFO [STDOUT] Thread 97
09:17:51,139 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@1662174
09:17:51,139 INFO [STDOUT] Thread 97
09:17:51,219 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@189f155
09:17:51,219 INFO [STDOUT] Thread 97
09:17:51,239 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@1a82dfb
09:17:51,239 INFO [STDOUT] Thread 97
09:17:51,289 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@198813a
09:17:51,289 INFO [STDOUT] Thread 97
09:17:51,309 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@59eefd
09:17:51,309 INFO [STDOUT] Thread 97
09:17:51,359 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@2e3520
09:17:51,369 INFO [STDOUT] Thread 97
09:17:51,379 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@1ed457
09:17:51,379 INFO [STDOUT] Thread 97
09:17:51,439 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@1e1c7f3
09:17:51,439 INFO [STDOUT] Thread 97
09:17:51,449 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@15cb8ed
09:17:51,449 INFO [STDOUT] Thread 97
09:17:51,519 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@1a4a949
09:17:51,519 INFO [STDOUT] Thread 97
09:17:51,529 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@19ae0a
09:17:51,529 INFO [STDOUT] Thread 97
09:17:51,589 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@567fa0
09:17:51,599 INFO [STDOUT] Thread 97
09:17:51,609 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@19956fe
09:17:51,609 INFO [STDOUT] Thread 97
09:17:51,659 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@150e574
09:17:51,669 INFO [STDOUT] Thread 97
09:17:51,679 INFO [STDOUT] New SessionBean com.jcoffee.components.um3.UserManagementComponent3@aa46ad
09:17:51,679 INFO [STDOUT] Thread 97
...
--
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
19 years, 3 months
[JBoss JIRA] Created: (JBAS-3537) Add a startup switch to configure a multicast port
by Brian Stansberry (JIRA)
Add a startup switch to configure a multicast port
--------------------------------------------------
Key: JBAS-3537
URL: http://jira.jboss.com/jira/browse/JBAS-3537
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Clustering
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: JBossAS-5.0.0.CR1
Proper cluster isolation with UDP requires use of a different cluster name, different multicast address and different multicast port. (See http://wiki.jboss.org/wiki/Wiki.jsp?page=PromiscuousTraffic for why the latter is important.)
The -g and -u switches allow easy configuration of the cluster name and multicast address. But, configuring the port that way wasn't practical, as an AS instance may have many different JChannels.
With the JGroups multiplexer, a switch is a possibility, as by default there will only be one JChannel per server instance. (If a user wanted to use more than one JChannel, they would need to manually configure the second one to use a different port.)
--
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
19 years, 3 months
[JBoss JIRA] Created: (JGRP-363) GossipRouter classpath error message is misleading
by Jerry Gauthier (JIRA)
GossipRouter classpath error message is misleading
--------------------------------------------------
Key: JGRP-363
URL: http://jira.jboss.com/jira/browse/JGRP-363
Project: JGroups
Issue Type: Bug
Affects Versions: 2.4
Reporter: Jerry Gauthier
Assigned To: Bela Ban
Priority: Minor
If you start the GossipRouter without concurrent.jar on the classpath, a NoClassDefFoundError exception will occur. However this information is hidden by GossipRouter error handing and the user is presented with the cryptic message: "failed reading the magic number mapping file."
I think there are severl ways to improve this situation.
1) Update the GossipRouter example in the JGroups documentation to show what jars need to be on the classpath.
2) Modify the GossipRouter or ClassConfigurator to reveal the underlying problem.
Note that this error occurs when you start the GossipRouter per the doc without adding concurrent.jar to the classpath.
--
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
19 years, 3 months