Sunday, May 11, 2014

Send JMS Message

Followed the youtube Message Driven Bean EJB Glassfish Netbeans
I noticed that at the part where you Alt-Ins, "Send JMS Message..." and select "Message Driven Bean" the MBean I created did not show up.
I am using Glassfish 4/Netbeans 8, and evidently the "mappedName" was not added when creating the Message Driven Bean using the wizard. Had to add it to make it show in the dropdown. I submitted a bug report on this https://netbeans.org/bugzilla/show_bug.cgi?id=244428.
Also noticed that NetBeans 8 didn't generate the same code from the above wizard either. I manually rewrote the code per the youtube and it worked, because the generated code (the @JMSConnectionFactory injection, the abbreviated sendJMSMessageToDest method using only context.createProducer().send(..), while a noble effort by someone to be in-with-the-times simply did not work as promised, and at this time it's not my priority to find out why...)

No comments:

Post a Comment