> JNDI is probably not an option in this case, since presumably you want a
single global, synchronized dispatcher instance rather than a serialized
copy. Alternatively, you could bind to a RMI UnicastRemoteObject that acts a
stub to your dispatcher, if you like that sort of thing.
>
Look at org/jb
Here's a standard way to invoke your MBean method:
import javax.management.*;
// Get the target MBean server (assumed here to be first server)
java.util.ArrayList servers = MBeanServerFactory.findMBeanServer(null);
if (servers.size() != 1) {
// ...deal with it
}
MBeanServer server = servers
: [JBoss-user] Accessing MBeans through EJBs
I have a somewhat unusual configuration, and I wanted to see if anyone
could give some advice.
I have created an MBean to act as a queue of jobs that are to be dispatched
to separate machines to process those jobs (I couldn't create the queue as
a
Hi,
see chapter 11 of the documentation, you need to instantiate an mbeanserver,
do a query and voilá there's your mbean.
Burkhard
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 5:01 PM
Subject: [JBoss-user] Accessing MB
I have a somewhat unusual configuration, and I wanted to see if anyone
could give some advice.
I have created an MBean to act as a queue of jobs that are to be dispatched
to separate machines to process those jobs (I couldn't create the queue as
an EJB because I need to manage my own threads her
Oups !!! you're right
sorry... i'm lost with all these acronyms...
François
- Original Message -
From: "Nicholas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 4:37 PM
Subject: Re: [JBoss-user] accessing MBeans
> I thi
--- Original Message -
> > From: "Timo Kauppinen" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 13, 2001 2:23 PM
> > Subject: [JBoss-user] accessing MBeans
> >
> >
> > > Hello!
> > >
> > >
Yes, it IS possible (if you mean JMX Mbean)
And, actually, it IS what MBeans for.
You have to bind your Mbean first to
JBoss naming space and then look it up
in the client.
Timo Kauppinen wrote:
>
> Hello!
>
> Is is possible to access a MBean from an EJB? I tried to use a MBean that
> does so
> >
> > François
> >
> > - Original Message -
> > From: "Timo Kauppinen"
> <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 13, 2001 2:23 PM
> > Subject: [JBoss-user] accessing MBeans
>
essage -
> From: "Timo Kauppinen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 13, 2001 2:23 PM
> Subject: [JBoss-user] accessing MBeans
>
>
> > Hello!
> >
> > Is is possible to access a MBean from an EJB? I
François
- Original Message -
From: "Timo Kauppinen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 2:23 PM
Subject: [JBoss-user] accessing MBeans
> Hello!
>
> Is is possible to access a MBean from an EJB? I tried to use a MBean that
&g
Hello!
Is is possible to access a MBean from an EJB? I tried to use a MBean that
does some I/O via a SessionBean but out came a hefty stack of exceptions
(included). Is this possible or do I have to think up something else? Are
EJB's and MBeanServer even in the same JVM in JBoss?
Cheers.
Timo
Oops.. sorry about my clumsiness.
Here is the errorstack I mentioned when speaking about accessing mbeans
from EJB's.
[EmbeddedTomcatSX] at java.lang.Class.getMethod0(Native Method)
[EmbeddedTomcatSX] at java.lang.Class.getMethod(Unknown Source)
[EmbeddedTomcatSX] at
org.jboss.ejb
Hello!
I was wondering: is it possible to get access to mbeans (or
mbeanserver) from SessionBeans or Entitybeans? Or does it violate safety
restrictions that have been set to EJBs? I'm trying to use a mbean
that does some I/O from a sessionbean. Can it be done or am I wasting my
time?
Cheers!
T
I was just wondering: how are the different MBeans accessed for example
from an EJB? As I was reading through the jboss documentation, there was
this example "How to Integrate Custom Services via MBeans" where a MBean
was accessed via JNDI. Is this the standard way? For example if I wanted
to use
15 matches
Mail list logo