Originally posted by Vince Hon:
I have got some confuse, for the tag:
If the client IS NOT in a transaction, then, can it change the principal association ? If yes, how can he change ?
Thanks
For stateful session beans, a client is tied to the particular bean for the entire bean's lifetime. Unless the bean "dies" (removed), the client will always be tied to that bean. Regardless of transactional state, it is not posible to change principal association at runtime.
For stateless session beans, there is no concept of clients, so the concept of principals doesn't make any sense. Besides, stateless session beans do not know its client in the first place.
paul.com<br />SCJP, SCWCD, SCBCD, SCEA