[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Throwing javax.ejb.CreateException from ejbCreate() of a
I had the same problem, the error was displayed even without the trows clause in the create method. I erased the throws clause from the ejbRemove method and everything worked just fine. I don't understand this error, correct me if Ii'm wrong but the specification doesn't forbid to declare the ejbCreate method with the throws CreateException clause it forbids to actually throw the exception. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920543#3920543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920543 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Throwing javax.ejb.CreateException from ejbCreate() of a
This case is clearly defined by the ejb 2.1 spec: anonymous wrote : | 15.7.3 ejbCreate Method | The message-driven bean class must define one ejbCreate method whose signature must follow these rules: | The method name must be ejbCreate. | The method must be declared as public. | The method must not be declared as final or static. | The return type must be void. | The method must have no arguments. | The throws clause must not define any application exceptions. | anonymous wrote : | 18.1.1 Application Exceptions | An application exception is an exception defined in the throws clause of a method of an enterprise beanÂs home, component, message listener, or web service endpoint interface, other than the java.rmi.RemoteException. | | ... | | The javax.ejb.CreateException, javax.ejb.RemoveException, javax.ejb.FinderException, and subclasses thereof are considered to be application exceptions. These exceptions are used as standard application exceptions to report errors to the client from the create, remove, | and finder methods (see Subsections 10.5.9 and 12.1.10). These exceptions are covered by the rules on application exceptions that are defined in this chapter. | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844932#3844932 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844932 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Throwing javax.ejb.CreateException from ejbCreate() of a
Just because other app servers allow something doesn't make it right! When you say "left up to the interpretation of the implementation", I assume you haven't read section 18.1.1 of the EJB (2.0) spec? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844900#3844900 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844900 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Throwing javax.ejb.CreateException from ejbCreate() of a
You can throw EJBException, which is unchecked. CreateException is checked, which is not allowed. It's also for home interfaces, not JMS. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844738#3844738 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844738 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user