RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Sacha Labourey
] 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 db then the mbeaninfo is already persisted there and should not be duplicated (only the ref

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 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 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 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
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

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread Sacha Labourey
, 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 it right now... A depends on B. We shut down B. There is no way just

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-04 Thread marc fleury
:[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 Why wouldn't it work? Can you give me a simple scenario that fails? Maybe that's evident but I don't see

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-03 Thread Matt Munz
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: Perhaps we're using 'persist' differently. The mbean registry contains object references to all of the mbeans

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 (MB foo

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 JBoss

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread Matt Munz
] 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 for the confusion. I think this information is essentially the MBeanInfo, the object name, and possibly

Re: [JBoss-dev] creating persistent MBeans dynamically

2002-10-03 Thread David Jencks
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 for the confusion. I think this information is essentially

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). This

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 duplicated

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-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-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 David Jencks
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 point, I have dynamic creation of MBeans figured out -- I can even get them

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-02 Thread 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 dynamically I don't have time to think this through extensively, but I would like

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 a

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

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 for

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 now have a

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-10-01 Thread Matt Munz
]]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 Munz wrote: Juha Group

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-30 Thread Matt Munz
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 the mbean registry

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.

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, It appears that there are two registries available

[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

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

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

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Matt Munz
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 MBeans dynamically

RE: [JBoss-dev] creating persistent MBeans dynamically

2002-09-27 Thread Matt Munz
] 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 valueMap