Jigar Naik
Jigar Naik wrote: but when i tried to access the bean directly using below code, i am able to access the method.
I guess i am doing something wrong.
Why is it so ? Where is the security ? I should not be able to access the business method directly right ???
I am able to access the bean directly because i have AdviceBean.jar(Bean) file in my client classpath. and if i do not include the jar file in class path of client AdviceHomeLocal & AdviceLocal won't get resolved.
Jigar Naik
Jigar Naik wrote:
There must be a way to generate client stubs which implements the component interface and the implementation has the same method method as bean class but different implementation who knows how to communicate with remote method, kind of handling RMI stuffs.
Jigar Naik
Jigar Naik wrote:
If i am able to access the business method directly as below. There is no point in writing EJB.
AdviceBean myBean = new AdviceBean();
Jigar Naik
Jigar Naik
Jigar Naik
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|