RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Adam Heath
On Fri, 4 Oct 2002, Sacha Labourey wrote: > It is just about freedom: we sbsolutly need to let the door open for fools > to do foolish things ;) I want infinite ways to do it right, and infinite ways to hang myself. :) --- This sf.net email

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread marc fleury
eed to let the door > open for fools to do foolish things ;) > > > -Message d'origine- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de > > marc fleury Envoye : vendredi, 4 octobre 2002 16:45 > > A : [EMAIL PROTECTED] > > Objet :

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Sacha Labourey
c > fleury > Envoye : vendredi, 4 octobre 2002 16:45 > A : [EMAIL PROTECTED] > Objet : RE: [JBoss-dev] creating persistent MBeans dynamically > > > > Why wouldn't it work? Can you give me a simple scenario that > > fails? Maybe that's evident but I don't see i

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread marc fleury
> Why wouldn't it work? Can you give me a simple scenario that > fails? Maybe that's evident but I don't see it right now... A depends on B. We shut down B. There is no way just by the order of deployment to know that A depends on B. The numbering schemes has the same limitation (the user pro

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Sacha Labourey
> brilliant. are you ironic? :) > It still doesn't take care of dependencies (shut a cluster of services > down) Why wouldn't it work? Can you give me a simple scenario that fails? Maybe that's evident but I don't see it right now... Ai-je la tete dans le popotin? --

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread marc fleury
> I suggested to use an internal counter in JBoss that > increments each time a new service is deployed. As part of brilliant. It still doesn't take care of dependencies (shut a cluster of services down) but it clearly one of those transparent ease of use things that I like to push. marc f

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Juha-P Lindfors
On Fri, 4 Oct 2002, Sacha Labourey wrote: > Hello, > > And what about deployment order? wouldn't the order be explicit if the registry stores a "script"-like file of its changes and then reads it at startup? similar to how a db constructs itself from a tx log -- Juha --

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Matt Munz
Sent: Friday, October 04, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] creating persistent MBeans dynamically Hello, And what about deployment order? When I was thinking about it (and we exchanged a few e-mails with David), the deployment order issue has poped up. When you have

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Sacha Labourey
[EMAIL PROTECTED] > Objet : RE: [JBoss-dev] creating persistent MBeans dynamically > > > On Thu, 3 Oct 2002, Matt Munz wrote: > > > all of mbeaninfo should not be always stored. for instance, if I > > > instantiate my MMB by using a definition from an URL or

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Juha-P Lindfors
On Thu, 3 Oct 2002, David Jencks wrote: > The location does not have to be accessible after deployment, so the mbean > persistence mechanism has to store it itself. why wouldn't it be accessible? and if my persistence mechanism is something like Dain's CMP engine, I don't expect it to store the

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread David Jencks
On 2002.10.03 17:19:27 -0400 Juha-P Lindfors wrote: > On Thu, 3 Oct 2002, Matt Munz wrote: > > > all of mbeaninfo should not be always stored. for instance, if I > > > instantiate my MMB by using a definition from an URL or db then the > > > mbeaninfo is already persisted there and should not be d

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Juha-P Lindfors
On Thu, 3 Oct 2002, Matt Munz wrote: > > all of mbeaninfo should not be always stored. for instance, if I > > instantiate my MMB by using a definition from an URL or db then the > > mbeaninfo is already persisted there and should not be duplicated (only > > the ref to where to locate it is needed)

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread David Jencks
ribute values in the mbean infos and storing this separately. I'd favor storing the mbean infos in the xmbean xml format: we already know how to read it, we just have to learn how to write it. thanks david jencks > > -Original Message- > From: [EMAIL PROTECTED] > [m

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Matt Munz
, October 03, 2002 10:07 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] creating persistent MBeans dynamically On Thu, 3 Oct 2002, Matt Munz wrote: > Juha, > > > what you need to persist from the registry is the information to > > recreate the mbeans > > OK. Great. Sorry fo

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread marc fleury
> Well, I'm very interested. The work I do is spec-friendly. > An important selling point for us with JBoss is flexibility > via spec compliance. Since I see persistence as an > invaluable feature for JMX, having it be a full fledged > aspect of the spec is important for me. Perhaps if JBo

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Juha-P Lindfors
On Thu, 3 Oct 2002, Matt Munz wrote: > Juha, > > > what you need to persist from the registry is the information to > > recreate the mbeans > > OK. Great. Sorry for the confusion. I think this information is > essentially the MBeanInfo, the object name, and possibly, a dependency > indicator (M

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Matt Munz
c eventually :) - Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juha-P Lindfors Sent: Wednesday, October 02, 2002 5:39 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] creating persistent MBeans dynamically On Wed, 2 Oct 2002, Matt Munz wrote:

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread Juha-P Lindfors
On Wed, 2 Oct 2002, Matt Munz wrote: > Perhaps we're using 'persist' differently. The mbean registry contains > object references to all of the mbeans in the server.To me, persisting > the registry (or a part of it), means serializing those objects completely > (MB info + data). no, the i

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread Juha-P Lindfors
On Wed, 2 Oct 2002, David Jencks wrote: > For making it work in the short term perhaps only persisting mbeans with a > particular descriptor will be the best plan, you can set this descriptor > for your dynamically created mbeans now, and we can set it for all the > others later. yes, agreed, add

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread Matt Munz
le & persistence. Does anyone Juha know if this is likely? - Matt Munz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Wednesday, October 02, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] creating persistent MBeans dynam

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread David Jencks
AIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Matt > Munz > Sent: Wednesday, October 02, 2002 10:06 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-dev] creating persistent MBeans dynamically > > > Hi all, > > Now for the interesting stuff... At this poin

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread Matt Munz
] Subject: RE: [JBoss-dev] creating persistent MBeans dynamically Hi all, Now for the interesting stuff... At this point, I have dynamic creation of MBeans figured out -- I can even get them to persist and reload their state through a manually-assisted process. The next step is to complete the cycle

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread Matt Munz
Hi all, Now for the interesting stuff... At this point, I have dynamic creation of MBeans figured out -- I can even get them to persist and reload their state through a manually-assisted process. The next step is to complete the cycle by loading the metadata of the MBeans at runtime. There

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-01 Thread Matt Munz
L PROTECTED]]On Behalf Of Juha-P Lindfors Sent: Tuesday, October 01, 2002 12:20 PM To: JBoss Developers Group Subject: RE: [JBoss-dev] creating persistent MBeans dynamically do you have operation info for the operation names you are mapping to (setId & getId)? On Tue, 1 Oct 2002, Matt

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-01 Thread Juha-P Lindfors
do you have operation info for the operation names you are mapping to (setId & getId)? On Tue, 1 Oct 2002, Matt Munz wrote: > Juha & Group, > > > make sure you add the getMethod and setMethod mapping to your MMB > > attributes. > > Thanks. I did this and started re-reading your JMX book. I n

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-01 Thread Matt Munz
Juha & Group, > make sure you add the getMethod and setMethod mapping to your MMB > attributes. Thanks. I did this and started re-reading your JMX book. I now have a new error :) Below, I include my MBean Info generation code, and some error output. When I try to view the jmx-console page fo

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-30 Thread Adrian Brock
Hi Matt, Answers in line. >From: "Matt Munz" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: RE: [JBoss-dev] creating persistent MBeans dynamically >Date: Mon, 30 Sep 2002 11:08:40 -0400 > >Juha & group,

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-09-30 Thread Scott M Stark
You need to write your own registry implementation. The JBossMBeanRegistry does not automatically add classloaders that happen to be mbeans to the loader repository which the BasicMBeanRegistry does. I believe our implementation of the ModelMBean is the XMBean stuff. S

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-30 Thread Matt Munz
elObject, MBeanInfo info) on MBeanServer? - Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juha-P Lindfors Sent: Friday, September 27, 2002 11:05 PM To: JBoss Developers Group Subject: Re: [JBoss-dev] creating persistent MBeans dynamically make

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Matt Munz
s-dev] creating persistent MBeans dynamically make the mbean registry persistent (it's already an mbean) triggering store() on registerMBean() calls, and have your widget factory register mbeans using the registry mbean operation registerMBean(Object, ObjectName, Map) where you pass in the va

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Matt Munz
erstand arguments to the contrary as well... Really interesting stuff... - Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Friday, September 27, 2002 9:08 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] creating persistent MB

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Juha-P Lindfors
make the mbean registry persistent (it's already an mbean) triggering store() on registerMBean() calls, and have your widget factory register mbeans using the registry mbean operation registerMBean(Object, ObjectName, Map) where you pass in the valueMap the additional info to store for recreating

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread David Jencks
There have been some discussions about this, and my opinion is not universally accepted by any means... At the moment there isn't any provision for persisting any mbean configuration and using it in any way. I hope that we can use the persistence stuff you wrote to make the following scheme wor

[JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Matt Munz
Hi all, I have two questions here, a specific one relating to the subject, and a more general question pertaining to the larger problem that I'm trying to solve. First off, what is the best way to create new MBeans while the server is running, in a persistent fashion? Say, for example, I ha