The motivation is described in Resource Reference Binding document.
Briefly, we would like a user to provide a message destination which can be found in the active project or on the server. User can also select a destination bound to a MDB found in any open project. User may also create a new message destination.
Basic Flow
+-----------------------------------------------------------------------+ | Send JMS Message | +-----------------------------------------------------------------------+ | | | (o) Project Destinations: |_SampleProjectDestination___|_v_| |Add...| | | | | ( ) Server Destinations: |_SampleServerDestination____|_v_| | | | | ( ) Message Driven Bean: |_Sample MDB_________________|_v_| | | | | Destination: |_SampleMDBDestination___________| | <-- read-only text field | | | + Service Locator Strategy------------------------------------------+ | | | (o) Generate Inline Lookup Code | | | | ( ) Existing Class |_________________________________| |Browse| | | | +-------------------------------------------------------------------+ | | | | | OK | | CANCEL | | HELP | | +-----------------------------------------------------------------------+
Alternative Flow A2
+-----------------------------------------------------------+ | Add Message Destination | +-----------------------------------------------------------+ | | | Destination Name : |________________________________| | | | | Destination Type : (o) Queue | | ( ) Topic | | | | | OK | | CANCEL | | HELP | | +-----------------------------------------------------------+
Alternative Flow A3