User: reverbel
  Date: 02/04/02 13:28:01

  Modified:    iiop/src/main/org/jboss/ejb/plugins/iiop/server
                        IIOPContainerInvoker.java
  Log:
  Changed to compile with JDK 1.4 (create_reference_with_id does not
  throw WrongPolicy anymore).
  
  Revision  Changes    Path
  1.17      +10 -10    
contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java
  
  Index: IIOPContainerInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/iiop/src/main/org/jboss/ejb/plugins/iiop/server/IIOPContainerInvoker.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- IIOPContainerInvoker.java 30 Mar 2002 20:48:30 -0000      1.16
  +++ IIOPContainerInvoker.java 2 Apr 2002 21:27:58 -0000       1.17
  @@ -118,7 +118,7 @@
    * CORBA reference for the corresponding <code>EJBObject</code>.
    *
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Francisco Reverbel</a>
  - * @version $Revision: 1.16 $
  + * @version $Revision: 1.17 $
    */
   public class IIOPContainerInvoker
         extends Servant
  @@ -607,9 +607,9 @@
                  poa.create_reference_with_id(nullId, beanRepositoryIds[0]),
                  EJBObject.class);
         }
  -      catch (WrongPolicy wrongPolicy) {
  -         throw new RuntimeException("Wrong POA policy in IIOPContainerInvoker:"
  -                                    + "\n" + wrongPolicy);
  +      catch (Exception e) {
  +         throw new RuntimeException("Unable to create reference to EJBObject\n"
  +                                    + e);
         }
      }
   
  @@ -621,9 +621,9 @@
                                               beanRepositoryIds[0]),
                  EJBObject.class);
         }
  -      catch (WrongPolicy wrongPolicy) {
  -         throw new RuntimeException("Wrong POA policy in IIOPContainerInvoker" 
  -                                    + "\n" + wrongPolicy);
  +      catch (Exception e) {
  +         throw new RuntimeException("Unable to create reference to EJBObject\n"
  +                                    + e);
         }
      }
   
  @@ -639,9 +639,9 @@
                                               beanRepositoryIds[0]),
                  EJBObject.class);
         }
  -      catch (WrongPolicy wrongPolicy) {
  -         throw new RuntimeException("Wrong POA policy in IIOPContainerInvoker"
  -                                    + "\n" + wrongPolicy);
  +      catch (Exception e) {
  +         throw new RuntimeException("Unable to create reference to EJBObject\n"
  +                                    + e);
         }
      }
      
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to