[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
anonymous wrote : Hopefully I can work this out, but really it seems that an Entity Bean approach is a much better idea. I don't know if it's too late to reply to this or not... but you could always go the hybrid route... Which is... Use your singletons the way you are now but anytime a method is called which causes a change in the state of your service you store that state in an entity bean. whenever the service loads it would first check for the existence of a state entity and if it doesn't find one it could truely start fresh. If it does find one it could load the state thats been saved in the entity. For performance reasons you could always keep the state in the service as well. Basically you'd have an HA Singleton with cached reads (no sense getting it from the entity since the singleton service is the only thing modifying it) but you'd want all of your writes updating cache and the entity (so if the server goes down the new singleton can load the state). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858562#3858562 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858562 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
"monocongo" wrote : Once I finally have everything worked out I will post a forum message or Wiki entry outlining all of the steps I needed to take to get this working. Hopefully it will help other developers who want to use Singletons in a clustered JBoss application avoid the headaches I've gone through. | This is now available under the title "Clustered HASingleton How-To". --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852975#3852975 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852975 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
Try this link: http://www.theserverside.com/patterns/thread.tss?thread_id=20819 --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852810#3852810 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852810 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
"lac_raz" wrote : Have tou read the singleton discussion on TheServerSide.com ? "monocongo" wrote : Thanks for making me aware of this discussion. Could either of you provide a link to the aforementioned discussion? Many referenced discussions come up when searching for "singletons" on the ServiceSide site. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852788#3852788 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852788 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
"lac_raz" wrote : Have tou read the singleton discussion on TheServerSide.com ? Thanks for making me aware of this discussion. I *really* wish I had seen it before going down this path with Singletons. My original idea was to use an EntityBean instead of a Singleton, and from looking at this discussion that looks to be the concensus. Unfortunately as a new employee (and relative newbie to EJBs and JBoss) I didn't have the authority to make the design decision. And now that I've coded my application around Singletons I need to make them work, or somehow convince my manager to let me have the time to change course, which is not likely. I do (finally) have my application working well using Singletons, but it seems that a failure of the master node of my cluster will cause the Singletons to be created fresh on the new server, thereby losing the data needed by the application. Hopefully I can work this out, but really it seems that an Entity Bean approach is a much better idea. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852783#3852783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852783 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
I have solve this problem. I had thought that the singleton mbean is like the singleton instance . the truth is ,only the master node run the method (startSinglet()) of singletonmbean , when the the master node turned off, the method(stopSinglet())will be invoke ant then another master node will be choose from the other jboss server ,then the method (start Singleton ()) will be invoke by the master node had just been chosed. so ,just the master node run the startSinglton() service . the service you want it to be singleton can be invoke within startSingleton(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852541#3852541 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852541 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
Have tou read the singleton discussion on TheServerSide.com ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852458#3852458 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852458 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
I'm using version 3.2.5 on Solaris and Linux machines. Once I finally have everything worked out I will post a forum message or Wiki entry outlining all of the steps I needed to take to get this working. Hopefully it will help other developers who want to use Singletons in a clustered JBoss application avoid the headaches I've gone through. My advice: buy a support contract or perhaps a few hours of consulting if like me you go this route and don't know what you're doing. I imagine that it would be well worth the expense in terms of time saved, if it's within your budget. (Of course if we had that kind of cash available we might not be using a free application server in the first place.) --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852267#3852267 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852267 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
Hello, What JBoss version do you use? I consider using JBoss singleton as well over JBoss 3.2.5 . Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852247#3852247 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852247 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
My understanding is that the JBoss HASingleton MBeans do in fact behave as real singletons (just one instance per JVM) when you run them on a single node of a cluster. At least they are working well in that capacity for me. I fortunately do not have the problem of the original poster in that my singleton MBeans are only being registered on the master node, which is what I want. Unfortunately I cannot access these singleton MBeans from any other node, and hence my application can't cluster yet. I am trying to use the RMIAdaptor/InvokerAdaptorService, after fruitless attempts with other approaches, but still having no joy. If you are considering going with a singleton in your design/architecture, and you want to cluster it, then I would strongly urge you to avoid it if at all possible. I have had no end of frustration with this. I had no choice but to use this approach since I was committed to it by the architect of my project and hence developed a large body of code which depends on it. What little documentation there is on this topic is confusing and incomplete (something I can say about most if not all JBoss documentation from my experiences with it over the last 8 months). If you don't have a support contract then you will have a hard time getting anyone to give you any helpful information on this topic on this forum, as it seems that there are few if any other developers who have tried this with any success. Perhaps you really do get what you pay for, if you're lucky -- but then again I'm not sure that this would be any easier with WebLogic or WebSphere. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852140#3852140 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852140 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: how to use singleton
I'm experiencing the same confusion . Did you find an answer for this ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852008#3852008 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852008 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user