How can I create a callback in the EJB such that
my fucntion is called by the EJB and the implementation of that function is done by the client. Please do NOT tell me that make my client an RMI Server
If you don't want RMI way other possible soultions I can think of:
1) If your server is a corba based implementation. this should be possible by passing a corba object as arguement.
2) May be better of doing it is using JMS.
Well, you do have to have some sort of communication between the client and the server. If it is not RMI, then it should be JMS. JMS is, in my opinion, the best option, because it lets you handle the callback asynchronously, as well as handle it in more than one place (publish-subscribe).