I draw JMS and MDB in component diagrams.
Is JMS depends on MDB or MDB depends on JMS?
In high logic view, it should be MDB depends on JMS.
but,in implement, shoud be JMS depends on MDB. JMS call MDB method.
Another Question:
I send a message to a MDB. the MDB will process the message.
Should I:
Create a seperate component for JMS<<infrastructure>> and the MDB depends on it.
OR just add a Interface to MDB called JMS interface?
which one is correct or better?