About question enthuware.oce-ejbd.v6.2.365
Posted: Fri Oct 12, 2012 7:31 am
The question is:
You need to create a stateless session bean that provides implementations for both the methods and allows the remoteMethod() to be accessed only from remote clients and allows the localMethod() to be accessed only from other local beans. Which of the following options will achieve this goal?
The anwser is according to you:
"1. Define a local interface for localMethod and a remote interface for remoteMethod and have the bean implement both the interfaces."
My Question is: Since you can invoke the Remote interface from a local client wouldnt that make this option incorrect and instead the option:
" 4.A single stateless session bean cannot provide such functionality."
This would be the correct one?
Thank you for a great product!
Best Regards
Marthin
You need to create a stateless session bean that provides implementations for both the methods and allows the remoteMethod() to be accessed only from remote clients and allows the localMethod() to be accessed only from other local beans. Which of the following options will achieve this goal?
The anwser is according to you:
"1. Define a local interface for localMethod and a remote interface for remoteMethod and have the bean implement both the interfaces."
My Question is: Since you can invoke the Remote interface from a local client wouldnt that make this option incorrect and instead the option:
" 4.A single stateless session bean cannot provide such functionality."
This would be the correct one?
Thank you for a great product!
Best Regards
Marthin