Events fired from EJB not received in SBB
though I spent 2 days reading through this excellent forum, I was not able to find an appropriate solution/idea for my problem - so I decided to post a new thread hoping the topic did not come up already.
As I am quite new to the JAIN SLEE stuff it might be possible that I got some things wrong, so please don't be too serious with the way I explain my problem:
I wrote a RA receiving Diameter tickets and sending appropriate Events to a SBB.
This is working fine - the SBB catches the events, processes them and responds via the ResourceAdaptorSbbInterface.
Furthermore I wrote an EJB with a billing-interface whose methods are called by the SBB. For getting an answer from this method I understood that there are 2 ways:
- the "sychronous" way of calling a method with a return value - means the SBB is "blocked" until a response is sent
- the "asynchronous" way of calling a void method - means the EJB has to fire an event (containing the response) to the SBB whose instance meanwhile can be used elsewise
I implemented the "synchronous" way and it worked, but the "asynchronous" way I can't get running. The events are fired correctly, but the SBB does not catch them.
I used the example from JAIN SLEE 1.1 Specification Appendix F.
As SleeConnectionFactory I used MobicentsConnectionFactory - perhaps this is already the problem...?
Do I have to write my own SleeConnectionFactory/SleeConnection implementation?
- If NO: How does SLEE know to which ActivityContext the event from the EJB has to be fired to (because with ExternalActivityHandle the event is fired on a newly created null activity)
- If YES: Is there any Tutorial/Example-Implementation for that?
But maybe I'm completely wrong with my thinking and the EJB fire-event thing is not meant for such purposes...?
Tankx a lot for any help!