[
https://issues.apache.org/jira/browse/GERONIMO-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Viet Hung Nguyen updated GERONIMO-3573:
---
Attachment: geronimo-3573.patch
This patch gets rid of any threads created and managed by the Master EJB and
replaces it with a TimerService which is injected via annotations. Jarek
recently put a patch in for OpenEJB that was committed to fix TimerService
injection, but they have not published it to their repo yet.
So in order to run this, I had to build OpenEJB locally, then build Geronimo
trunk.
mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/snapshots/SnapshotXMLBuilder.java
and
mrc-server/mrc-ejb/src/main/java/org/apache/geronimo/monitor/snapshots/SnapshotThread.java
are not longer needed. So, if this patch merits a commit, I hope the committer
will also remove these files from the repo too.
monitoring plugin: collecting agent's EJB should not be spawning and
monitoring a thread
Key: GERONIMO-3573
URL: https://issues.apache.org/jira/browse/GERONIMO-3573
Project: Geronimo
Issue Type: Improvement
Security Level: public(Regular issues)
Environment: windows
Reporter: Viet Hung Nguyen
Attachments: geronimo-3573.patch
The collecting agent is spawning and monitoring a thread. It does this in
order to periodically capture snapshots of the server's status. However,
Anita pointed out that it is a violation of the EJB spec. And I have
confirmed this. An alternative is to use EJB's TimerService.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.