About Question com.enthuware.ets.scbcd.v5.2.221 :
Moderator: admin
About Question com.enthuware.ets.scbcd.v5.2.221 :
java.io.IOException, javax.name.NamingException, javax.ejb.CreateException are checked exceptions. So, how it is possible to be thrown by the message listener method?
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.221 :
You are right. Since the onMessage() method of javax.jms.MessageListener interface does not have any throws clause, a JMS MDB's onMessage() method cannot throw checked exceptions. This has now been fixed.
Thanks a lot for your feedback.
Thanks a lot for your feedback.
If you like our products and services, please help us by posting your review here.
Re: About Question com.enthuware.ets.scbcd.v5.2.221 :
Now the answer is also wrong, because javax.ejb.EJBException is a RuntimeException and it can be thrown from the onMessage() method.
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.221 :
Fixed. Thanks again!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 148 guests