User: reverbel
  Date: 02/03/10 17:40:32

  Modified:    iiop/src/main/org/jboss/ejb/plugins/iiop/server
                        IIOPContainerInvoker.java
  Log:
  IIOPContainerInvoker now uses the container's getCodebase() method.
  
  Revision  Changes    Path
  1.14      +3 -13     
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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- IIOPContainerInvoker.java 18 Feb 2002 22:10:34 -0000      1.13
  +++ IIOPContainerInvoker.java 11 Mar 2002 01:40:32 -0000      1.14
  @@ -120,7 +120,7 @@
    * CORBA reference for the corresponding <code>EJBObject</code>.
    *
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Francisco Reverbel</a>
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   public class IIOPContainerInvoker
         extends Servant
  @@ -345,19 +345,9 @@
         logger.debug("container classloader: " + container.getClassLoader()
                      + "\ncontainer parent classloader: "
                      + container.getClassLoader().getParent());
  -      URL[] codebaseURLs = // TODO: get rid of this ugly hack!!!
  -         (container.getClassLoader().getParent() instanceof WebClassLoader)
  -           ? ((WebClassLoader)container.getClassLoader().getParent()).getURLs()
  -           : new URL[0];
  -      StringBuffer sb = new StringBuffer();
  -      for (int i = 0; i < codebaseURLs.length; i++) {
  -         sb.append(codebaseURLs[i].toString());
  -         if (i < codebaseURLs.length - 1) {
  -            sb.append(" ");
  -         }
  -      }
  +      String codebaseString = container.getCodebase();
         Any codebase = orb.create_any();
  -      codebase.insert_string(sb.toString());
  +      codebase.insert_string(codebaseString);
         codebasePolicy = orb.create_policy(CodebasePolicy.TYPE, codebase);
         logger.debug("codebasePolicy: " + codebasePolicy);
   
  
  
  

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

Reply via email to