Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

Vinay Kejriwal

Greenhorn
+ Follow
since Mar 15, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vinay Kejriwal

Excellent explanation.

Basically it means that withouth @DeclaredRoles or <security-role-ref>, it is not possible to invoke ctx.isCallerInRole("role") in the bean code.

Explanation given here by enthuware seems to be confusing.
http://enthuware.com/forum/viewtopic.php?f=4&t=417


Thanks,
Thanks Luan,

But shouldn't this code fail at compile time? I have seen this kind of code getting compiled without any error. So what exactly would be the behavior. Will jvm simply ignore this at runtime?
Hi,
Though not related to actual question here, I am puzzled with the usage (CMT annotation) in the TestAddCommand ejb, even though the class has got annotation (BMT).

Sorry for asking this if this is too trivial, I have started learning ejb recently and got confused seeing such a code.

Thanks
Hi,

I came across a piece of code where the bean implementation class has @TransactionManagement(TransactionManagementType.BEAN) annotation wherein methods are annotated with CMT @TransactionAttribute. Is is valid? I am puzzled?
Can an EJB with BMT persistence use CMT transaction annotation? What will be the behavior at runtime?



Thanks in advance.