Hi Bill postRegister() is NOT an option because it is called after the MBean is created (Constructor is called) but BEFORE any attributes are set by the ServiceController. And I see that you use PartitionProperties and PartitionName which would not be available except you only use defaults.
Andy ----- Original Message ----- From: "Bill Burke" <[EMAIL PROTECTED]> To: "Andreas Schaefer" <[EMAIL PROTECTED]> Cc: "Sacha Labourey" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 12, 2001 2:37 PM Subject: RE: [JBoss-dev] RE: Deployment exception on Clustering > > > > -----Original Message----- > > From: Andreas Schaefer [mailto:[EMAIL PROTECTED]] > > Sent: Monday, November 12, 2001 5:17 PM > > To: Bill Burke > > Cc: Sacha Labourey; [EMAIL PROTECTED] > > Subject: Re: [JBoss-dev] RE: Deployment exception on Clustering > > > > > > Hi > > > > postRegister() is a callback method issued by the MBeanServer before the > > MBean gets finally registered. You then can save the MBeanServer you are > > connected to and change the MBean ObjectName before it is set. > > > > I am still puzzled why you need a 2 stage startup process. > > The only reason I can assume is that you subclass the ClusterPartition and > > then overwrite initService(). Wouldn't it be better to add a > > method call in > > the startService() method like postInit() which is placed in the middle of > > startService() ? > > > > I need a 2 stage startup because ClusterPartition creates an > HAPartition(This is the actual cluster object) in the init() phase. > MBean-managed HA services like HA-JNDI register themselves with the > HAPartition in the init() phase. In the start() phase, the ClusterPartition > makes the Connection to the JavaGroups message Channel. When the connection > is connected, the state-transfer protocol initiates. In other words, HA > services(HA-JNDI) need to register with the ClusterPartition before the > cluster connections are set up. Without the 2 phase approach, > initial-state-synchronization will not work. > > Bill > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development