Hi,
I wrote a custom JDBCLoginModule and a custom PrincipalImpl for test reason and put some debug lines them.
When I tested these programs I saw into server.log that all StatelessSession method call called a server side login, but I am logged only once!
Is it normal behaviour of the GFv3.1-b01-04_18_2010 ?
Attila.
CLIENT:
-------
InitialContext ic = new InitialContext();
// VIL !!! (Very Important Line) ??? or NOT I do not known why !!!
Object obj1 = ic.lookup("");
LoginContext lc = new LoginContext("helloRealm",ch);
System.out.println("Before Login !!!");
lc.login();
try {
sless = (StatelessSession)ic.lookup("enterprise.hello_stateless_ejb.StatelessSession");
for (int c=0; c<4; c++) {
System.out.println("StatelessSession bean says : " + sless.hello());
}
} finally {
lc.logout();
}
[Message sent by forum member 'aszomor']
http://forums.java.net/jive/thread.jspa?messageID=471352