Keerthi (2) [Avatar] Offline
#1

if (!context.getEJBContext().isCallerInRole("CSR")) {
throw new SecurityException("No permissions to cancel bid");
}
return context.proceed();


InvocationContext does not define getEJBContext() method in JEE5. The listing won't even compile.

You must inject an EJBContext using @Resource to an interceptor.
reza_rahman (456) [Avatar] Offline
#2
Re: Errata: Page# 213, List 6.7
Thanks, I think we already have this in the errata from previous posts.

Cheers,
Reza
Keerthi (2) [Avatar] Offline
#3
Re: Errata: Page# 213, List 6.7
For the benefit of others, you may want to include this in the book's errata www.manning.com/panda
reza_rahman (456) [Avatar] Offline
#4
Re: Errata: Page# 213, List 6.7
Yes, we will do that when we can.

Thanks,
Reza