Thanks a lot for suggesting to use the NotSupported attribute for the finder method. The code is working now
1) Strangely though, what i noticed was that, when the exception was thrown from the finder method and i made a call to the CMP bean, the call was failing at the CMP's findByPrimaryKey method ( dont know why !!)
but a call to the findByPrimaryKey method of the BMP of the same enity was working fine!!
Any pointers to why this could happen is greatly appreciated.
2) Also, I remember not associating any transaction with the finder methods before I tried using Required for the finder methods , but it seemed to give the same exception , ( I might have overlooked something at that point of time - not sure ).
Is it possible that an exception of this sort could happen even if no transaction is associated with the finder methods ??
Awaiting your response as to why this could happen.
Thanks,
Harsha