I need to preface this post that I have no knowledge of java or JMS Server. I have been asked to write a small prototype which will read data from a specific Oracle table and write it out to a JMS server. I am hoping this is something I can do in a PL/SQL package. Can someone please give me some direction or samples that I can try from my DB. I am on windows DB version 11.2.2.
I haven't used JMS successfully, but I think there are several moving pieces needed, including a web server. If your site already has JMS working via Oracle advanced queues then http://docs.oracle.com/cd/E11882_01/server.112/e11013/jm_exmpl.htm tells you how to generate a JMS message from PL/SQL.
If you don't already have JMS happening via Oracle, you need to talk to someone who does know JMS. Perhaps try asking in the JMS forum Java Message Service (JMS) (Java / Java Enterprise & Remote Computing / Java Message Service (JMS) on the menu)
When I tried to use this on Oracle 10.2 I did not succeed in getting PL/SQL messages through to the Java client via JMS, but my knowledge of JMS was almost nil.