The Artima Developer Community
Sponsored Link

Design Forum
There is need an Object across JVM's Which Design Pattern is useful?

1 reply on 1 page. Most recent reply: Oct 24, 2008 7:44 AM by adi ian

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
rajasekhar yenduva

Posts: 1
Nickname: raja1214
Registered: Oct, 2008

There is need an Object across JVM's Which Design Pattern is useful? Posted: Oct 22, 2008 11:53 AM
Reply to this message Reply
Advertisement
Hi All,

I have doubt like there is need an Object across the JVM'S so Which Design pattern aplied and
how to implement it.

Thanks In Advance

Rajasekhar Yenduva

Sun Certified Java Programmer V5.0


adi ian

Posts: 5
Nickname: adiian
Registered: Jul, 2006

Re: There is need an Object across JVM's Which Design Pattern is useful? Posted: Oct 24, 2008 7:44 AM
Reply to this message Reply
I think you are looking for Singleton Design pattern. It makes sure there is only one object available for the entire jvm. You also should take care is the singleton is used in a multithreaded environment. For more details you can check:

http://www.oodesign.com/singleton-pattern.html
http://www.ibm.com/developerworks/java/library/j-dcl.html

Flat View: This topic has 1 reply on 1 page
Topic: Programming to an interface Previous Topic   Next Topic Topic: Agile Method

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use