Posting messages from a standalone client
The necessary code to write messages to a WebLogic Server queue doesn't have to use any WebLogic specific classes, just plain regular javax.jms.*
and javax.naming.*
components.
There are some classes and interfaces provided by WebLogic that help us access WebLogic-specific features, but as they address very specialized scenarios, chances are you're not going to use them very often. They are inside the weblogic.jms.extensions
package, and you can find their Javadoc at http://docs.oracle.com/middleware/1212/wls/WLAPI/weblogic/jms/extensions/package-summary.html.
As said earlier in this chapter, the business functionality we're going to implement will act as a bridge between the partner's system and the Theater module deployed at their installations, and will receive information about new exhibition dates that must be uploaded to our module.
To accomplish this, we will create a standalone Java project named RemoteClient
and add a Java class that will read...