Re: [JBoss-user] mbean mutual dependencies config for MQ
Yeah There relevant parts are in the jbossmq-service.xml. What im doing it setting up a jdbc2 pm in oracle. The attached file is working to a point... There is an issue where if you shutdown with messages on the queue. On restart it tries to load the messages from the PM to the Cache and you end up trying to write the same row back to the pm table causing an error. Ideally what I would like to see (might even do myself) is the capability to have a PM defined without a MessageCache to be used by the Cache. Im also looking at doing a HA Queue/Topic instances... but well see. -=Brian On Wed, 2002-10-23 at 17:59, David Jencks wrote: > On 2002.10.23 18:15:32 -0400 Brian Towles wrote: > > OK i found it looks like the MessageCache only needs a reference to > > the CacheStore name and when its running its startService (in this case > > at least) it doesnt have to have the PersistenceManager started cause > > its the PersistenceManager itself which starts a recovery of messages > > from/for the Cache. > > > > So the config of the MessageCache Mbean only has to have an attribute > > pointing to the PMs name and not a depend in this case. > > > > > > kinda funky > > Really... Could you post an annotated service.xml file indicating the > problem very specifically, I think this should be looked into and perhaps > changed. > > thanks > david jencks > > > > thx all > > > > -=Brian > > > > > > On Wed, 2002-10-23 at 16:32, Brian Towles wrote: > > > The basic issue is the JDBC2 PersistenceManager then. > > > > > > They way it is designed it implements PersistenceManager and > > > CacheStore. For the MessageCache MBean you define a CacheStore. And > > > for the PersistenceManager MBean you define a MessageCache. The > > example > > > for an oracle jdbc2 pm shows the MessageCache pointing to the > > > PersistenceManager as a CacheStore. Since the jdbc2 PersistenceManager > > > implements CacheStore this shouldnt be a problem except for the mutual > > > mbean dependency that crops up. > > > > > > You cant create a second instance of the PersistenceManager with a > > > different object name cause it would need a MessageCache as well. > > > > > > So the question changes to how do you use the CacheStore in the jdbc2 > > > PersistenceManager and the jdbc2 PersistenceManager? > > > > > > Thanks > > > -=Brian > > > > > > > > > On Wed, 2002-10-23 at 15:30, David Jencks wrote: > > > > On 2002.10.23 16:22:12 -0400 Brian Towles wrote: > > > > > Howdy all > > > > > > > > > > Using JBoss 3.0.2 > > > > > > > > > > Im trying to setup a jdbc2 persistence for MQ where both the > > > > > MessageCache uses the PersistenceManager for storage of the cache. > > > > > There is an example config file in the source code under > > > > > messaging/src/etc/server/examples/deploy but on implementation > > there > > > > > message cache and the persistence manager never initialize cause > > they > > > > > are waiting on each other. > > > > > > > > > > I know i can nest one Mbean definition inside of another but that > > > > > doesn't seem to get around the dependencies. > > > > > > > > > > Is there any way to do 2 mbeans dependent on each other in the > > configs > > > > > > > > No. One of them has to start first. If they were mutually dependent > > > > they'd both have to start first. AFAIK this is a basic property of > > time. > > > > > > > > Maybe you can make something else depend on the message cache so you > > can't > > > > send messages until it has started? Otherwise, please describe the > > problem > > > > you are trying to solve in more detail. > > > > > > > > thanks > > > > david jencks > > > > > > > > > > Thanks > > > > > -=Brian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- > > > > > This sf.net email is sponsored by: Influence the future > > > > > of Java(TM) technology. Join the Java Community > > > > > Process(SM) (JCP(SM)) program now. > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > > > > > > > ___ > > > > > JBoss-user mailing list > > > > > [EMAIL PROTECTED] > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > > > > > > > > --- > > > > This sf.net email is sponsored by: Influence the future > > > > of Java(TM) technology. Join the Java Community > > > > Process(SM) (JCP(SM)) program now. > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > > > > > ___ > > > > JBoss-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > --- > > > This sf.net email is sponsored by: Influence the future > > > of Java(TM) technology. Join the Java Community >
Re: [JBoss-user] mbean mutual dependencies config for MQ
On 2002.10.23 18:15:32 -0400 Brian Towles wrote: > OK i found it looks like the MessageCache only needs a reference to > the CacheStore name and when its running its startService (in this case > at least) it doesnt have to have the PersistenceManager started cause > its the PersistenceManager itself which starts a recovery of messages > from/for the Cache. > > So the config of the MessageCache Mbean only has to have an attribute > pointing to the PMs name and not a depend in this case. > > > kinda funky Really... Could you post an annotated service.xml file indicating the problem very specifically, I think this should be looked into and perhaps changed. thanks david jencks > > thx all > > -=Brian > > > On Wed, 2002-10-23 at 16:32, Brian Towles wrote: > > The basic issue is the JDBC2 PersistenceManager then. > > > > They way it is designed it implements PersistenceManager and > > CacheStore. For the MessageCache MBean you define a CacheStore. And > > for the PersistenceManager MBean you define a MessageCache. The > example > > for an oracle jdbc2 pm shows the MessageCache pointing to the > > PersistenceManager as a CacheStore. Since the jdbc2 PersistenceManager > > implements CacheStore this shouldnt be a problem except for the mutual > > mbean dependency that crops up. > > > > You cant create a second instance of the PersistenceManager with a > > different object name cause it would need a MessageCache as well. > > > > So the question changes to how do you use the CacheStore in the jdbc2 > > PersistenceManager and the jdbc2 PersistenceManager? > > > > Thanks > > -=Brian > > > > > > On Wed, 2002-10-23 at 15:30, David Jencks wrote: > > > On 2002.10.23 16:22:12 -0400 Brian Towles wrote: > > > > Howdy all > > > > > > > > Using JBoss 3.0.2 > > > > > > > > Im trying to setup a jdbc2 persistence for MQ where both the > > > > MessageCache uses the PersistenceManager for storage of the cache. > > > > There is an example config file in the source code under > > > > messaging/src/etc/server/examples/deploy but on implementation > there > > > > message cache and the persistence manager never initialize cause > they > > > > are waiting on each other. > > > > > > > > I know i can nest one Mbean definition inside of another but that > > > > doesn't seem to get around the dependencies. > > > > > > > > Is there any way to do 2 mbeans dependent on each other in the > configs > > > > > > No. One of them has to start first. If they were mutually dependent > > > they'd both have to start first. AFAIK this is a basic property of > time. > > > > > > Maybe you can make something else depend on the message cache so you > can't > > > send messages until it has started? Otherwise, please describe the > problem > > > you are trying to solve in more detail. > > > > > > thanks > > > david jencks > > > > > > > > Thanks > > > > -=Brian > > > > > > > > > > > > > > > > > > > > > > > > --- > > > > This sf.net email is sponsored by: Influence the future > > > > of Java(TM) technology. Join the Java Community > > > > Process(SM) (JCP(SM)) program now. > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > > > > > ___ > > > > JBoss-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > > > --- > > > This sf.net email is sponsored by: Influence the future > > > of Java(TM) technology. Join the Java Community > > > Process(SM) (JCP(SM)) program now. > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > --- > > This sf.net email is sponsored by: Influence the future > > of Java(TM) technology. Join the Java Community > > Process(SM) (JCP(SM)) program now. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > --- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JC
Re: [JBoss-user] mbean mutual dependencies config for MQ
OK i found it looks like the MessageCache only needs a reference to the CacheStore name and when its running its startService (in this case at least) it doesnt have to have the PersistenceManager started cause its the PersistenceManager itself which starts a recovery of messages from/for the Cache. So the config of the MessageCache Mbean only has to have an attribute pointing to the PMs name and not a depend in this case. kinda funky thx all -=Brian On Wed, 2002-10-23 at 16:32, Brian Towles wrote: > The basic issue is the JDBC2 PersistenceManager then. > > They way it is designed it implements PersistenceManager and > CacheStore. For the MessageCache MBean you define a CacheStore. And > for the PersistenceManager MBean you define a MessageCache. The example > for an oracle jdbc2 pm shows the MessageCache pointing to the > PersistenceManager as a CacheStore. Since the jdbc2 PersistenceManager > implements CacheStore this shouldnt be a problem except for the mutual > mbean dependency that crops up. > > You cant create a second instance of the PersistenceManager with a > different object name cause it would need a MessageCache as well. > > So the question changes to how do you use the CacheStore in the jdbc2 > PersistenceManager and the jdbc2 PersistenceManager? > > Thanks > -=Brian > > > On Wed, 2002-10-23 at 15:30, David Jencks wrote: > > On 2002.10.23 16:22:12 -0400 Brian Towles wrote: > > > Howdy all > > > > > > Using JBoss 3.0.2 > > > > > > Im trying to setup a jdbc2 persistence for MQ where both the > > > MessageCache uses the PersistenceManager for storage of the cache. > > > There is an example config file in the source code under > > > messaging/src/etc/server/examples/deploy but on implementation there > > > message cache and the persistence manager never initialize cause they > > > are waiting on each other. > > > > > > I know i can nest one Mbean definition inside of another but that > > > doesn't seem to get around the dependencies. > > > > > > Is there any way to do 2 mbeans dependent on each other in the configs > > > > No. One of them has to start first. If they were mutually dependent > > they'd both have to start first. AFAIK this is a basic property of time. > > > > Maybe you can make something else depend on the message cache so you can't > > send messages until it has started? Otherwise, please describe the problem > > you are trying to solve in more detail. > > > > thanks > > david jencks > > > > > > Thanks > > > -=Brian > > > > > > > > > > > > > > > > > > --- > > > This sf.net email is sponsored by: Influence the future > > > of Java(TM) technology. Join the Java Community > > > Process(SM) (JCP(SM)) program now. > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > --- > > This sf.net email is sponsored by: Influence the future > > of Java(TM) technology. Join the Java Community > > Process(SM) (JCP(SM)) program now. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > --- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mbean mutual dependencies config for MQ
The basic issue is the JDBC2 PersistenceManager then. They way it is designed it implements PersistenceManager and CacheStore. For the MessageCache MBean you define a CacheStore. And for the PersistenceManager MBean you define a MessageCache. The example for an oracle jdbc2 pm shows the MessageCache pointing to the PersistenceManager as a CacheStore. Since the jdbc2 PersistenceManager implements CacheStore this shouldnt be a problem except for the mutual mbean dependency that crops up. You cant create a second instance of the PersistenceManager with a different object name cause it would need a MessageCache as well. So the question changes to how do you use the CacheStore in the jdbc2 PersistenceManager and the jdbc2 PersistenceManager? Thanks -=Brian On Wed, 2002-10-23 at 15:30, David Jencks wrote: > On 2002.10.23 16:22:12 -0400 Brian Towles wrote: > > Howdy all > > > > Using JBoss 3.0.2 > > > > Im trying to setup a jdbc2 persistence for MQ where both the > > MessageCache uses the PersistenceManager for storage of the cache. > > There is an example config file in the source code under > > messaging/src/etc/server/examples/deploy but on implementation there > > message cache and the persistence manager never initialize cause they > > are waiting on each other. > > > > I know i can nest one Mbean definition inside of another but that > > doesn't seem to get around the dependencies. > > > > Is there any way to do 2 mbeans dependent on each other in the configs > > No. One of them has to start first. If they were mutually dependent > they'd both have to start first. AFAIK this is a basic property of time. > > Maybe you can make something else depend on the message cache so you can't > send messages until it has started? Otherwise, please describe the problem > you are trying to solve in more detail. > > thanks > david jencks > > > > Thanks > > -=Brian > > > > > > > > > > > > --- > > This sf.net email is sponsored by: Influence the future > > of Java(TM) technology. Join the Java Community > > Process(SM) (JCP(SM)) program now. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > --- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mbean mutual dependencies config for MQ
On 2002.10.23 16:22:12 -0400 Brian Towles wrote: > Howdy all > > Using JBoss 3.0.2 > > Im trying to setup a jdbc2 persistence for MQ where both the > MessageCache uses the PersistenceManager for storage of the cache. > There is an example config file in the source code under > messaging/src/etc/server/examples/deploy but on implementation there > message cache and the persistence manager never initialize cause they > are waiting on each other. > > I know i can nest one Mbean definition inside of another but that > doesn't seem to get around the dependencies. > > Is there any way to do 2 mbeans dependent on each other in the configs No. One of them has to start first. If they were mutually dependent they'd both have to start first. AFAIK this is a basic property of time. Maybe you can make something else depend on the message cache so you can't send messages until it has started? Otherwise, please describe the problem you are trying to solve in more detail. thanks david jencks > > Thanks > -=Brian > > > > > > --- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] mbean mutual dependencies config for MQ
Howdy all Using JBoss 3.0.2 Im trying to setup a jdbc2 persistence for MQ where both the MessageCache uses the PersistenceManager for storage of the cache. There is an example config file in the source code under messaging/src/etc/server/examples/deploy but on implementation there message cache and the persistence manager never initialize cause they are waiting on each other. I know i can nest one Mbean definition inside of another but that doesn't seem to get around the dependencies. Is there any way to do 2 mbeans dependent on each other in the configs Thanks -=Brian --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user