[jboss-cvs] jboss-seam/src/main/org/jboss/seam/bpm ...

Gavin King gavin.king at jboss.com
Mon Jul 16 05:44:20 EDT 2007


  User: gavin   
  Date: 07/07/16 05:44:20

  Modified:    src/main/org/jboss/seam/bpm  Jbpm.java
  Log:
  safer if startup=false
  
  Revision  Changes    Path
  1.10      +2 -1      jboss-seam/src/main/org/jboss/seam/bpm/Jbpm.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Jbpm.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/bpm/Jbpm.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- Jbpm.java	15 Jul 2007 22:43:13 -0000	1.9
  +++ Jbpm.java	16 Jul 2007 09:44:20 -0000	1.10
  @@ -15,6 +15,7 @@
   import org.hibernate.HibernateException;
   import org.hibernate.cfg.Environment;
   import org.hibernate.lob.ReaderInputStream;
  +import org.jboss.seam.Component;
   import org.jboss.seam.ScopeType;
   import org.jboss.seam.annotations.Create;
   import org.jboss.seam.annotations.Destroy;
  @@ -288,7 +289,7 @@
         {
            throw new IllegalStateException("jBPM support is not installed (use components.xml to install it)");
         }
  -      return (Jbpm) Contexts.getApplicationContext().get(Jbpm.class);
  +      return (Jbpm) Component.getInstance(Jbpm.class, ScopeType.APPLICATION);
      }
   
      protected String getJbpmConfigurationJndiName()
  
  
  



More information about the jboss-cvs-commits mailing list