Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » toplink console, JMX
toplink console, JMX [message #389409] Mon, 08 June 2009 08:36 Go to next message
Ana Oleski is currently offline Ana OleskiFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

first question:
in Toplink 9.0 there used to be a toplink console for debug purposes, in
10 it was integrated in a toplink webclient.
I can't find anything about it in the eclipselink docs. Is it still there?
Can I use it with jboss? Do I absolutely need an application server or
would tomcat alone be enough?

second question:
- we use toplink (now migrating to eclipselink) in a non-J2EE project but
we do use JMX intensely. I think there is already JMX instrumentation for
toplink but the docs tell me only how to enable it in application servers
(Bea and co). How can I trigger the registration to our own MBeanServer?


Thanx,

Ana
Re: toplink console, JMX [message #389410 is a reply to message #389409] Mon, 08 June 2009 13:41 Go to previous messageGo to next message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Ana,

The logic to deploy EclipseLink's MBeans is located in the
org.eclipse.persistence.platform.server.ServerPlatform implementations.
You should be able to define your own implementation. This is probably
best done subclassing
org.eclipse.persistence.platform.server.ServerPlatformBase and using the
other container implementations to guide you.

Doug
Re: toplink console, JMX [message #389468 is a reply to message #389409] Tue, 16 June 2009 18:19 Go to previous messageGo to next message
Michael OBrien is currently offline Michael OBrienFriend
Messages: 34
Registered: July 2009
Member
Anna,
Hi, for Q2) using JMX MBeans in a non-EE (SE environment) in bug#
265540.
This is a good request because the beans can provide a lot of info for
SE persistence units.
There is an outstanding enhancement request where a quick proof of
concept was tested surrounding a version of NoServerPlatform (the SE
platform).

JMX: Add runtime services MBean monitoring to Java SE clients
http://bugs.eclipse.org/265540

This bug contains a copy of the source and the main issues involved.

We did a quick prototype by copying over the registration code from
WebLogic_10_Platform to NoServerPlatform to simulate a Java_SE_Platform
and mbeans register and are viewable in JConsole.
The only major change involved using the static bootstrap class
instead of the WebLogic JNDI lookup.
see:
http://java.sun.com/javase/6/docs/technotes/guides/jmx/tutor ial/essential.html#wp1054889

This...
MBeanServer mBeanServerRuntime =
ManagementFactory.getPlatformMBeanServer();
Replaces...
private static final String JMX_JNDI_RUNTIME_REGISTER =
"java:comp/env/jmx/runtime";
MBeanServer mBeanServerRuntime = (MBeanServer)
initialContext.lookup(JMX_JNDI_RUNTIME_REGISTER);

Runtime properties
-Dcom.sun.management.jmxremote
-Declipselink.register.run.mbean=true

thank you
/michael
Re: toplink console, JMX [message #389720 is a reply to message #389468] Tue, 23 June 2009 09:42 Go to previous messageGo to next message
Ana Oleski is currently offline Ana OleskiFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

this is exactly what I've been looking for!

I copied NoServerPlatform in my project and added

serverSession.setServerPlatform(new NoServerPlatform(serverSession));

because I'm still using eclipselink 1.1.1 and not a nightly build (or
wherever this new functionality can be found).

However I'm confused about the print* methods that return void
(printProfileSummary, etc). Shouldn't they return at least a String? Where
is the result printed exactly. In the logfile? Maybe it doesn't show in my
project because I use a Log4jSessionLog.

Ana
Re: toplink console, JMX [message #389721 is a reply to message #389720] Tue, 23 June 2009 09:51 Go to previous message
Ana Oleski is currently offline Ana OleskiFriend
Messages: 22
Registered: July 2009
Junior Member
Silly me. Yes, it's all in the logfile, I had just forgotten to enable it.

Maybe it could be both in the logfile and in the returned value?

Ana
Previous Topic:Transactions
Next Topic:MySQL Autoinc FK
Goto Forum:
  


Current Time: Tue Apr 23 10:53:59 GMT 2024

Powered by FUDForum. Page generated in 0.02686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top