I'd posted this message in the Programming and Trouble- shooting forum also... probably it belongs here...
I am unable to decide between using 'Supports' and 'NotSupported' for a Stateless Session Bean method that does not do any DML operations (directly or indirectly).
If 'NotSupported' is specified, I am told that there is a small overhead for suspending and resuming the client's transaction context.
And if 'Supports' is specified - we avoid this overhead, but I am told that there is a cost for 'monitoring' the non-transactional DB statements (SELECTs, to be precise).
So which is better? Or are there other issues to consider before deciding?
And while I am here, I want a good example for a situation that suggests the use of 'Supports' attribute. (esp. considering the fact that 'Supports' methods behave in a chameleon kind of way wrt transactions)
Grateful for any inputs.