Hi Harald,
Thank you so much, that was my bug.
Best regards,
Oleg
Harald Gliebe wrote:
HG> Hi,
HG> getCallerPrincipal returns always the same Principal after one has logged
HG> in.
HG> The reason is, that the mapped Principal (beanPrincipal) is cached in
HG> EnterpriseContext, but not cleared in the clear() - method.
HG> The following patch worked for me.
HG> --- EnterpriseContext.java~ Thu Nov 16 20:00:40 2000
HG> +++ EnterpriseContext.java Thu Nov 16 20:00:41 2000
HG> @@ -144,10 +144,11 @@
HG> public void clear() {
HG> this.id = null;
HG> this.locked = 0;
HG> this.principal = null;
HG> + this.beanPrincipal=null;
HG> this.synch = null;
HG> this.transaction = null;
HG> }
HG> Can someone update it in CVS ?
HG> Regards,
HG> Harald Gliebe