This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 316511 - JMX: Add JMX MBean support to JBoss 5.1.0 EAP as well as JBoss 5/6 CE
Summary: JMX: Add JMX MBean support to JBoss 5.1.0 EAP as well as JBoss 5/6 CE
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Michael OBrien CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on: 305331
Blocks: 316513
  Show dependency tree
 
Reported: 2010-06-10 14:23 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:02 EDT (History)
1 user (show)

See Also:
michael.f.obrien: documentation+


Attachments
Container Managed JTA HSQL EclipseLink JPA 1.0 example application EAR for MBean session invocation (45.23 KB, application/x-zip-compressed)
2010-06-22 13:30 EDT, Michael OBrien CLA
no flags Details
JBoss 5.0.1 EAP screencap of proof of concept reg/view of Services MBean in JBoss JMX console (149.73 KB, image/pjpeg)
2010-06-24 11:15 EDT, Michael OBrien CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2010-06-10 14:23:43 EDT
>EclipseLink currently supports JMX MBeans on WebLogic 10.3 via bug# 248748
>This enhancement starts the investigation extend JMX support to JBoss
We are splitting the enhancement request by application server, the actual analysis, design and implementation will have aspects that are common to all 3 or 4 of these sub-requests.
Comment 1 Michael OBrien CLA 2010-06-22 10:02:39 EDT
>JBoss 5.1.0 EAP will be targetted (not 6 at this point)
- MBean registration POC in queue ahead of architecture work
Comment 2 Michael OBrien CLA 2010-06-22 13:30:30 EDT
Created attachment 172440 [details]
Container Managed JTA HSQL EclipseLink JPA 1.0 example application EAR for MBean session invocation
Comment 3 Michael OBrien CLA 2010-06-22 17:05:43 EDT
>First POC results positive using a non-JNDI JMX spec findMBeanServer() first server returned lookup (fine only for non-JRockit JVMs)

>Using the server
mBeanServerRuntime = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
>we register via 
runtimeInstance = mBeanServerRuntime.registerMBean(runtimeServices, anObjectName);
>to
server	MBeanServerImpl  (id=400)	
	classLoaderRepository	UnifiedLoaderRepository3  (id=409)	
	listeners	MBeanServerListenerRegistry  (id=417)	
	outer	MBeanServerImpl  (id=400)	
		classLoaderRepository	UnifiedLoaderRepository3  (id=409)	
		listeners	MBeanServerListenerRegistry  (id=417)	
		outer	MBeanServerImpl  (id=400)	
		registry	BasicMBeanRegistry  (id=419)	
			defaultDomain	"jboss" (id=426)	
			delegate	MBeanServerDelegate  (id=427)	
			domainMap	ConcurrentReaderHashMap  (id=432)	
			fMbInfosToStore	null	
			loaderRepository	UnifiedLoaderRepository3  (id=409)	
			mbeanInfoService	ObjectName  (id=436)	
			registrationNotificationSequence	SynchronizedLong  (id=439)	
			server	MBeanServerImpl  (id=400)	
			unregistrationNotificationSequence	SynchronizedLong  (id=444)	
	registry	BasicMBeanRegistry  (id=419)	
>giving us
16:56:54,376 INFO  [STDOUT] [EL Finest]: 2010-06-22 16:56:54.376--Thread(Thread[http-127.0.0.1-8080-2,5,jboss])--Registered MBean: org.eclipse.persistence.services.jboss.MBeanJBossRuntimeServices[TopLink:Name=Session(vfszip_/C_/opt/jboss-eap-5.0b/jboss-as/server/default/deploy/org.eclipse.persistence.example.jpa.server.jboss.EnterpriseEAR.ear/org.eclipse.persistence.example.jpa.server.jboss.EnterpriseEJB.jar/_example)]

runtimeInstance	ServerObjectInstance  (id=519)	
	agentID	"xps435_1277239942304" (id=436)	
	className	"org.eclipse.persistence.services.jboss.MBeanJBossRuntimeServices" (id=521)	
	name	ObjectName  (id=501)	
		_ca_array	ObjectName$Property[1]  (id=523)	
		_canonicalName	"TopLink:Name=Session(vfszip_/C_/opt/jboss-eap-5.0b/jboss-as/server/default/deploy/org.eclipse.persistence.example.jpa.server.jboss.EnterpriseEAR.ear/org.eclipse.persistence.example.jpa.server.jboss.EnterpriseEJB.jar/_example)" (id=524)
Comment 4 Michael OBrien CLA 2010-06-24 11:15:16 EDT
Created attachment 172623 [details]
JBoss 5.0.1 EAP screencap of proof of concept reg/view of Services MBean in JBoss JMX console

>POC screen cap using
http://wiki.eclipse.org/EclipseLink/DesignDocs/316513#JBoss_Proof_of_Concept_Registration_1
>view after EM creation via EAR application run
http://127.0.0.1:8080/enterprise/FrontController?action=demo
>via the JBoss JMX console view
http://127.0.0.1:8080/jmx-console/
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:02:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink