Re: [JBoss-user] Accessing MBeans through EJBs

2001-07-12 Thread Scott M Stark
> 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

Re: [JBoss-user] Accessing MBeans through EJBs

2001-07-12 Thread Fred Loney
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

RE: [JBoss-user] Accessing MBeans through EJBs

2001-07-12 Thread Dominik Baranowski
: [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

Re: [JBoss-user] Accessing MBeans through EJBs

2001-07-09 Thread Burkhard Vogel
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

[JBoss-user] Accessing MBeans through EJBs

2001-07-09 Thread Alex . Devine
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

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread François Charoy
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

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread François Charoy
--- Original Message - > > From: "Timo Kauppinen" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, June 13, 2001 2:23 PM > > Subject: [JBoss-user] accessing MBeans > > > > > > > Hello! > > > > > >

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread Alexander Kogan
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

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread Nicholas
> > > > 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 >

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread Timo Kauppinen
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

Re: [JBoss-user] accessing MBeans

2001-06-13 Thread François Charoy
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

[JBoss-user] accessing MBeans

2001-06-13 Thread Timo Kauppinen
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

[JBoss-user] accessing mbeans

2001-06-13 Thread Timo Kauppinen
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

[JBoss-user] accessing mbeans

2001-06-12 Thread Timo Kauppinen
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

[JBoss-user] Accessing MBeans

2001-06-04 Thread Timo Kauppinen
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