[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
18 years, 9 months
[JBoss JIRA] Created: (JBPM-714) packaging just the webapp takes way to long
by Ronald van Kuijk (JIRA)
packaging just the webapp takes way to long
-------------------------------------------
Key: JBPM-714
URL: http://jira.jboss.com/jira/browse/JBPM-714
Project: JBoss jBPM
Issue Type: Feature Request
Affects Versions: jBPM 3.2 alpha 1
Environment: Eclipse 3.2, gpd 3.0.11, jdk 1.5 windhoos
Reporter: Ronald van Kuijk
Assigned To: Tom Baeyens
Fix For: jBPM 3.2
Packaging just the webapp takes 13 seconds. In this time the 'global' compile is used. This results in packaging jbpm-jpdl.jar twice and copying it to the repository twice.
This should be optimised in combination with a 'deploy' target which deploys it to a configured location.
Even better would be if it is a real WTP web (sub?) project which can have things like 'auto deployment' small updates to .xhtml files available immediately, etc....
--
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
18 years, 9 months
[JBoss JIRA] Created: (JBMESSAGING-437) Non durable subscription optimization
by Tim Fox (JIRA)
Non durable subscription optimization
-------------------------------------
Key: JBMESSAGING-437
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-437
Project: JBoss Messaging
Issue Type: Task
Affects Versions: 1.0.1.CR3
Reporter: Tim Fox
Assigned To: Tim Fox
Fix For: 1.0.2
Since non durable subscriptions only live for the life-time of the consumer the it's struck me that we don't actually need to send any acks from the client to the server as messages are acknowledged for non durable subs.
Basically I think we can acknowledge them before they are sent from server to client.
This is because there's no case where messages will be redelivered from the server to the non durable sub, therefore no need for acks.
On session recovery and session rollback messages are redelivered locally (i.e. they are already on the client) so no need for the server to redeliver.
This also means we don't need to maintain a delivery list in the server consumer endpoint in this case, and the server consumer endpoint can return a done delivery every time.
--
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
18 years, 10 months