There appears to be some problems when MetricsEnabled is set to true:
First :
The J2eeDeployer needs to be dependent on the SpyderMQ service, so I changed
the J2eeDeployer's depenency to :
<service name="J2eeDeployer">
<dependency service="EmbeddedTomcat" required="false"/>
<dependency service="ContainerFactory" required="true"/>
<dependency service="SpyderMQ" required="true"/>
</service>
Second :
When I try and run with metrics turn on, I keep getting an exception in the
container, stack dump below :
Line 152 is where the Transaction.HashCode is tried to be added to the
message, however this happends even when the EJB is in a transaction.
David Maddison
[Module] CONTAINER EXCEPTION:null
[Module] java.lang.NullPointerException
[Module] at
org.jboss.ejb.plugins.MetricsInterceptor.createMessage(MetricsInterceptor.ja
va:152)
[Module] at
org.jboss.ejb.plugins.MetricsInterceptor.invokeHome(MetricsInterceptor.java:
79)
[Module] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[Module] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:226)
[Module] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[Module] at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[Module] at
org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionContainer.j
ava:311)
[Module] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:143)
[Module] at java.lang.reflect.Method.invoke(Native Method)
[Module] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
[Module] at sun.rmi.transport.Transport$1.run(Unknown Source)
[Module] at java.security.AccessController.doPrivileged(Native
Method)
[Module] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
[Module] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
[Module] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[Module] at java.lang.Thread.run(Unknown Source)
-----Original Message-----
From: Juha-P Lindfors [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2000 12:04
To: jBoss
Subject: RE: [jBoss-User] Remote jboss monitoring
You got it.
And the same mechanism can be used in txmanager, caches, jaws, etc.
-- Juha
On Mon, 4 Dec 2000, Maddison, David wrote:
> Oh sorry I see, the MetricsInterceptor fires off a JMS message on the
topic
> 'topic/metrics' if the MetricsEnabled parameter is set in the JBoss.jcml
> file. Probably a better way than using JMX MontorMBeans anyway, since the
> SpyderMQ version will be asynch, and not using the processor for
unnecessary
> work.
>
> Dave
>
> -----Original Message-----
> From: Juha-P Lindfors [mailto:[EMAIL PROTECTED]]
> Sent: 04 December 2000 11:31
> To: jBoss
> Subject: RE: [jBoss-User] Remote jboss monitoring
>
>
>
> I'm not doing the monitoring via JMX MonitorBeans but through JMS. Spyder
> has some logic for setting up users/passwords for subscribers but I
> haven't looked at it more closely yet.
>
> As far as JMX goes my understanding is that at the moment it doesn't have
> security implemented in the RI, though I could be wrong... I haven't
> looked at the released version. The draft spec of JMX left security for
> later versions though.
>
> Basically there's several places in the server that need security
> services, and if we can centralize this in one place, that would be a Good
> Thing (TM), IMHO.
>
> -- Juha
>
>
> On Mon, 4 Dec 2000, Maddison, David wrote:
>
> > The attributes of the services though could be exposed, and security
left
> up
> > to the MonitorMBeans or the Adaptor?
> >
> > David Maddison
> >
> > -----Original Message-----
> > From: Juha-P Lindfors [mailto:[EMAIL PROTECTED]]
> > Sent: 04 December 2000 10:55
> > To: jBoss
> > Subject: Re: [jBoss-User] Remote jboss monitoring
> >
> >
> >
> >
> > On Mon, 4 Dec 2000, Tim Yates wrote:
> > > Hiya... is there a way of monitoring jBoss statistics whilst it is
> > running
> > > such as an EAR, or a stand alone java app?
> >
> > No, not yet though working on it.
> >
> > However, the first version won't allow remote monitoring, just
localhost,
> > cause I have yet to find the place to drop anything security related in
> > the server architecture. This would include the remote JMX management
> > authentication, admin tool authentication, etc. It will most likely tie
to
> > JNP somehow, I don't know. Hopefully it would allow the web based JMX
> > management to be enabled in real world deployments as well.
> >
> > Anything particular you'd like to monitor?
> >
> > -- Juha
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]