[jboss-cvs] jboss-seam/src/remoting/org/jboss/seam/remoting ...

Shane Bryzak sbryzak at redhat.com
Tue Sep 18 22:03:02 EDT 2007


  User: sbryzak2
  Date: 07/09/18 22:03:02

  Modified:    src/remoting/org/jboss/seam/remoting 
                        RequestHandlerFactory.java
  Log:
  JBSEAM-1933
  
  Revision  Changes    Path
  1.2       +10 -1     jboss-seam/src/remoting/org/jboss/seam/remoting/RequestHandlerFactory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RequestHandlerFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/remoting/org/jboss/seam/remoting/RequestHandlerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- RequestHandlerFactory.java	27 Feb 2007 22:15:23 -0000	1.1
  +++ RequestHandlerFactory.java	19 Sep 2007 02:03:01 -0000	1.2
  @@ -23,8 +23,17 @@
     {
       registerHandler(REQUEST_PATH_EXECUTE, new ExecutionHandler());
       registerHandler(REQUEST_PATH_SUBSCRIPTION, new SubscriptionHandler());
  -    registerHandler(REQUEST_PATH_POLL, new PollHandler());
       registerHandler(REQUEST_PATH_INTERFACE, new InterfaceGenerator());
  +    
  +    try
  +    {
  +       Class.forName("javax.jms.Message");
  +       registerHandler(REQUEST_PATH_POLL, new PollHandler());
  +    }
  +    catch (ClassNotFoundException ex) 
  +    { 
  +        // Don't register PollHandler, swallow the exception
  +    }
     }
   
     public void registerHandler(String path, RequestHandler handler)
  
  
  



More information about the jboss-cvs-commits mailing list