Click here to Skip to main content
15,914,820 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: Learning to Simplify PinPopular
Pete O'Hanlon5-May-08 9:05
mvePete O'Hanlon5-May-08 9:05 
AnswerRe: Learning to Simplify Pin
Matthew Faithfull5-May-08 22:51
Matthew Faithfull5-May-08 22:51 
AnswerRe: Learning to Simplify Pin
Reelix8-May-08 0:57
Reelix8-May-08 0:57 
GeneralRe: Learning to Simplify Pin
Nelek17-May-08 0:18
protectorNelek17-May-08 0:18 
GeneralRe: Learning to Simplify Pin
Daniel Grunwald12-Jun-08 1:47
Daniel Grunwald12-Jun-08 1:47 
AnswerRe: Learning to Simplify Pin
Ed.Poore12-May-08 21:41
Ed.Poore12-May-08 21:41 
AnswerRe: Learning to Simplify Pin
Steven A. Lowe18-Jun-08 17:50
Steven A. Lowe18-Jun-08 17:50 
QuestionHow to create two or more JVM in one machine ? Pin
ZServer29-Apr-08 19:03
ZServer29-Apr-08 19:03 
Hi to some background ,I want to invoke RMI call to a server ,and I have written the following client code ,that access a getCounter()to show the incremented static variables value ,each time calling the getCounter() will increment the static variable by 1.That code is deployed in the server.

PDOS_Remote_Interface service1 =(PDOS_Remote_Interface)Naming.lookup("rmi://x.xxx.xxx.xxx/REMOTE_SERVICE");
String s1= service1.sayHello();
int cont1 = service1.getCounter();
System.out.println("&;&ggtt;>>>> "+s1);
System.out.println(">>>>>> cont1 "+cont1);

PDOS_Remote_Interface service2 =(PDOS_Remote_Interface)Naming.lookup("rmi://y.yyy.yyy.yyy/REMOTE_SERVICE");
String s2= service2.sayHello();
int cont2 = service2.getCounter();
System.out.println(">>>>>> "+s2);
System.out.println(">>>>>> cont2 "+cont2);

This is working fine with even two different server (I mean in two physically different machine(x ip and y ip) ,there ip are different )

with following output :

>>>>>> Server Says Hai!
>>>>>> cont1 0
>>>>>> Server Says Hai!
>>>>>> cont2 0

that is static variable is not shareing as they are in two different server


Now My problem:

I want to hit the one and only server ,In this case Service1 and Service2 are getting the remote instance from only one machine .And when I am doing that I am getting the static variable incremented ,That is following output
>>>>>> Server Says Hai!
>>>>>> cont1 0
>>>>>> Server Says Hai!
>>>>>> cont2 1

Is this possible to create two JVM instance in a particular machine ..??
I mean I want the first output (both static variable shows 0)in second implementetion (using only one machine )???
GeneralArticle content Pin
Mycroft Holmes21-Apr-08 21:30
professionalMycroft Holmes21-Apr-08 21:30 
GeneralRe: Article content Pin
Adeel Chaudhry2-May-08 2:38
Adeel Chaudhry2-May-08 2:38 
GeneralArticle idea - adding scripting support to your applications Pin
martin_hughes20-Apr-08 9:21
martin_hughes20-Apr-08 9:21 
GeneralRe: Article idea - adding scripting support to your applications Pin
Matthew Faithfull5-May-08 23:01
Matthew Faithfull5-May-08 23:01 
GeneralRe: Article idea - adding scripting support to your applications Pin
Ed.Poore12-May-08 21:44
Ed.Poore12-May-08 21:44 
GeneralRe: Article idea - adding scripting support to your applications Pin
martin_hughes13-May-08 3:27
martin_hughes13-May-08 3:27 
GeneralRe: Article idea - adding scripting support to your applications Pin
Ed.Poore13-May-08 5:16
Ed.Poore13-May-08 5:16 
QuestionAn AddIn for VS2008 to add mouse gesture support? Pin
Philip Laureano18-Apr-08 13:11
Philip Laureano18-Apr-08 13:11 
AnswerRe: An AddIn for VS2008 to add mouse gesture support? Pin
Pete O'Hanlon20-Apr-08 9:42
mvePete O'Hanlon20-Apr-08 9:42 
GeneralEditing New Article Pin
Philip Lippard18-Apr-08 4:12
Philip Lippard18-Apr-08 4:12 
GeneralRe: Editing New Article Pin
Thomas Stockwell18-Apr-08 14:50
professionalThomas Stockwell18-Apr-08 14:50 
GeneralGeneral tips on accounting software Pin
Lju212-Apr-08 12:33
Lju212-Apr-08 12:33 
GeneralWrong forum Pin
pmarfleet12-Apr-08 12:59
pmarfleet12-Apr-08 12:59 
GeneralRe: General tips on accounting software Pin
Thomas Stockwell14-Apr-08 8:14
professionalThomas Stockwell14-Apr-08 8:14 
GeneralRe: General tips on accounting software Pin
Lju215-Apr-08 0:44
Lju215-Apr-08 0:44 
GeneralRe: General tips on accounting software Pin
Thomas Stockwell15-Apr-08 1:07
professionalThomas Stockwell15-Apr-08 1:07 
GeneralNumerical Methods [modified] Pin
Dr.Walt Fair, PE10-Apr-08 15:59
professionalDr.Walt Fair, PE10-Apr-08 15:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.