The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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