S
sk
I have the following function in a stateful ejb. When I call this function
will display
"hello" at the server console. What I want to know is when I exist from the
client
by cutting my network cable is there any way to know if the client has
exited from
the server? Currently it keeps displaying the hello line without stopping.
public String SayHello() {
//TODO implement SayHello\
try{
java.util.GregorianCalendar t = new
java.util.GregorianCalendar();
System.out.println( "111 Statefull Timer started "+
t.getTime().toString());
for( int i = 0; i < 10; i--){
System.out.println("hello");
}
}catch(Exception e){
e.printStackTrace();
}
return "Say Hello ..........!!!!";
}
will display
"hello" at the server console. What I want to know is when I exist from the
client
by cutting my network cable is there any way to know if the client has
exited from
the server? Currently it keeps displaying the hello line without stopping.
public String SayHello() {
//TODO implement SayHello\
try{
java.util.GregorianCalendar t = new
java.util.GregorianCalendar();
System.out.println( "111 Statefull Timer started "+
t.getTime().toString());
for( int i = 0; i < 10; i--){
System.out.println("hello");
}
}catch(Exception e){
e.printStackTrace();
}
return "Say Hello ..........!!!!";
}