Re: javaspace notify

SUBSCRIBE JAVASPACES-USERS Anonymous <[email protected]> Tue, 31 Mar 2009 07:32:32 -0600
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <LISTSERV%[email protected]>
Thank you for your reply...

I am successful in getting the log messages...

What I noticed from my observation of log output of programs is as follow=
s...

I started jini service from two systems 192.168.38.202 and 192.168.38.203=



--->192.168.38.203----- always used for invoking notify

--->192.168.38.202----- always used for writing data in every 15
seconds(Same  template TestEntry written into space)

All notify- SUCCESS case

When all notify is success I saw the following log output in a single sys=
tem
only in demo203.log of 192.168.38.203


NAME(number of times observed)
Outriggerserver.notify(2)
Outriggerserver.write(2)
RemoteEventListner.notify(1)
RemoteEventListner.notify returns (1)
Outriggerserver.write(2)
RemoteEventListner.notify(1)
RemoteEventlListner.notify(1)

all in the order from top -->Bottom(Control flow is from  top to bottom)

[This example is for two succesful notify event-all the above NAME observ=
ed
in demo203.log file of 192.168.38.203 and none of NAME observed in
demo202.log of 192.168.38.202)

I am not sure, but I observed, this is because notify will be successful
only when all the write process and notify process are running in a singl=
e
system(successful when all running in same system either 192.168.38.202 o=
r
192.168.38.203)

All notify FAILURE case

When all notify was failure and notify invoked system waiting... while wr=
ite
taking  place in 192.168.38.202 I saw the following names in demo202.log =
of
192.168.38.202 and demo203.log of 192.168.38.203


NAME(number of times- repeating observation)

demo203.log      ------------    demo202.log
                   [alignment-UNDER COLUMN demo202.log=3DUC]

Outriggerserver.notify(2)

                                           Outriggerserver.write(2)[UC]

Registrar.notify(2)


                                           Outriggerserver.write(2)[UC]


Registrar.notify(1)
RegistrarImpl notify(1)
Registrar.notify(1)


                                            Outriggerserver.write(2)[UC]

                                            Outriggerserver.write(2)[UC]

all in the order from top -->Bottom(Control flow is from  top to bottom)

[In some failure case I did'nt see Registrar.notify,RegistrarImpl
notify,Registrar.notify at all]

and so on notify never working at 38.203...
I also in case FAILURE notify, I never saw a log for
RemoteEventListner.notify in both demo202.log and demo203.log which shows=

the EventListening is a failure when write is running in one
system(outriggerserver.write) and notify in another
system(Outriggerserver.notify) ...

I observed these properties I defined above in 5 trails --> 2 SUCCESS + 3=

FAILURE..

To make you more clear I am specifying...

Outriggerserver.write(2) MEANS -->"FINE: inbound call
com.sun.jini.outrigger.OutriggerServer.write to
com.sun.jini.outrigger.TransientOutriggerImpl@98f192 from /192.168.38.20X=
"

AND

"FINE: inbound call com.sun.jini.outrigger.OutriggerServer.write to
com.sun.jini.outrigger.TransientOutriggerImpl@3e5a91 returns"

PRESENT IN  LOG FILE



Question:Why is notify working only when all notify process and write
process running in single system?

Is this has any relation security aspects... ?(it's only my assumption)
My jsk-all.policy file contains
"grant {
   permission java.security.AllPermission;
   };"               //if that helps u to solve my problem..


Thanking you once again...
Please help..
XXX

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html