Hi Guys,
is about a day I am thinking that:
I have an
ejb that have to interacts with a request/reply queue. Solution is quite simple: dependency injection and go.... but.... but....
IMHO ejb implements business logic, gathering information from external system through a queue could be done but is really business logic? Maybe yes, today the only business is interact with an external system, tomorrow will be other...
A proxy could abstract queue interaction and leave ejb concerned on its purpose, business!
so collaboration will be:
ejb->proxy->queue
but with a proxy I loose benefits of dependency injection and I have to implement a service locator and so on.....
mumble mumble....
What do you think?
Thanks in advance!