Package org.apache.cactus.spi.server

Examples of org.apache.cactus.spi.server.MessageDrivenBeanImplicitObjects


     * @param theObjects
     * @throws JMSException
     */
    public void handleRequest(ImplicitObjects theObjects) throws JMSException
    {
        MessageDrivenBeanImplicitObjects mdbImplicitObjects = (MessageDrivenBeanImplicitObjects) theObjects;
   
        // If the Cactus user has forgotten to put a needed jar on the server
        // classpath (i.e. in WEB-INF/lib), then the servlet engine Webapp
        // class loader will throw a NoClassDefFoundError exception. As this
        // method is the entry point of the webapp, we'll catch all
        // NoClassDefFoundError exceptions and report a nice error message
        // for the user so that he knows he has forgotten to put a jar in the
        // classpath. If we don't do this, the error will be trapped by the
        // container and may not result in an ... err ... understandable error
        // message (like in Tomcat) ...
        try
        {
            String serviceName =
                getServiceName(mdbImplicitObjects.getMessage());
   
            MessageDrivenBeanTestCaller caller = getTestCaller(mdbImplicitObjects);
   
            // TODO: will need a factory here real soon...
           
View Full Code Here

TOP

Related Classes of org.apache.cactus.spi.server.MessageDrivenBeanImplicitObjects

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.