[jbpm-commits] JBoss JBPM SVN: r4205 - in projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main: webapp/WEB-INF and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Mar 9 23:51:01 EDT 2009


Author: alex.guizar at jboss.com
Date: 2009-03-09 23:51:01 -0400 (Mon, 09 Mar 2009)
New Revision: 4205

Modified:
   projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/java/org/jbpm/web/BootstrapListener.java
   projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/webapp/WEB-INF/web.xml
Log:
JBPM-2095 enable GPD servlet, disable bootstrap listener

Modified: projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/java/org/jbpm/web/BootstrapListener.java
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/java/org/jbpm/web/BootstrapListener.java	2009-03-10 03:10:39 UTC (rev 4204)
+++ projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/java/org/jbpm/web/BootstrapListener.java	2009-03-10 03:51:01 UTC (rev 4205)
@@ -30,9 +30,10 @@
 import javax.servlet.ServletContextEvent;
 
 /**
- * Force initialization of the hibernate sessions in jbpm.
- * This will create the DB tables on new installations.
- * If that's not needed the listener can be removed.
+ * Force initialization of the hibernate session factory.
+ * This will create the DB tables on new installations,
+ * provided that the <code>hibernate.hbm2ddl.auto</code> property
+ * is set to "create".
  * @author Heiko.Braun <heiko.braun at jboss.com>
  */
 public class BootstrapListener implements ServletContextListener
@@ -50,8 +51,8 @@
       JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
       try
       {
-         log.info("Bootstrap Hibernate session");
-         jbpmContext.getGraphSession();
+         log.info("bootstrap hibernate session factory");
+         jbpmContext.getSessionFactory();
       }
       catch (RuntimeException e)
       {

Modified: projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/webapp/WEB-INF/web.xml
===================================================================
--- projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/webapp/WEB-INF/web.xml	2009-03-10 03:10:39 UTC (rev 4204)
+++ projects/jsf-console/branches/jsf-console-3.2.6.SP/console/src/main/webapp/WEB-INF/web.xml	2009-03-10 03:51:01 UTC (rev 4205)
@@ -1,17 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 
-  <!--
-    * Force initialization of the hibernate sessions in jbpm.
-    * This will create the DB tables on new installations.
-    * If that's not needed the listener can be removed.
-  -->
-  <listener>
-    <listener-class>org.jbpm.web.BootstrapListener</listener-class>
-  </listener>
-
   <servlet>
-    <description>Enable the JSF servlet. See faces-config.xml for Faces-specific configuration</description>
+    <description>
+      Enable the JSF servlet. See faces-config.xml for Faces-specific configuration.
+    </description>
     <servlet-name>Faces Servlet</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
@@ -47,20 +41,23 @@
   </welcome-file-list>
 
   <servlet>
-    <description> This is the GDP's deployer servlet </description>
-    <servlet-name>GDP Deployer Servlet</servlet-name>
+    <description>
+      Server counterpart for the Graphical Process Designer deployment feature.
+      SECURITY WARNING. GPD deployment is a development aid, not for use in production.
+      Make sure you either secure or remove this servlet prior to production deployment. 
+    </description>
+    <servlet-name>GPD Deployer Servlet</servlet-name>
     <servlet-class>org.jbpm.web.ProcessUploadServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
 
   <servlet-mapping>
-    <servlet-name>GDP Deployer Servlet</servlet-name>
-    <url-pattern>/app/upload/*</url-pattern>
+    <servlet-name>GPD Deployer Servlet</servlet-name>
+    <url-pattern>/upload/*</url-pattern>
   </servlet-mapping>
 
   <!--
-   This role list should be changed to include all the relevant roles for your
-   environment.
+    This role list should be changed to include all the relevant roles for your environment.
   -->
   <security-role>
     <role-name>admin</role-name>
@@ -70,8 +67,9 @@
   </security-role>
 
   <!--
-    Security constraints - optionally customize the role name to require a login before access is allowed to the application. Also, be sure to edit jboss-web.xml to
-    configure the security domain if you are deploying inside JBoss AS.
+    Security constraints - optionally customize the role name to require a login before access is
+    allowed to the application. Also, be sure to edit jboss-web.xml to configure the security domain
+    if you are deploying inside JBoss AS.
   -->
   <security-constraint>
     <web-resource-collection>
@@ -114,18 +112,30 @@
   <!-- Job executor launcher ==>
   <listener>
     <description>
-      Starts the job executor on servlet context initialization and stops it on servlet context destruction.
+      Starts the job executor on initialization and stops it on destruction.
     </description>
     <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
   </listener>
   <!== Job executor launcher -->
 
+  <!-- Bootstrap listener ==>
   <listener>
     <description>
-      Closes the jBPM configuration on servlet context destruction, releasing
-      application resources. This listener should appear after the job executor
-      launcher to avoid reopening the configuration.
+      Force initialization of the hibernate session factory.
+      This will create the DB tables on new installations,
+      provided that the hibernate.hbm2ddl.auto property
+      is set to "create".
     </description>
+    <listener-class>org.jbpm.web.BootstrapListener</listener-class>
+  </listener>
+  <!== Bootstrap listener -->
+
+  <listener>
+    <description>
+      Closes the jBPM configuration on destruction, releasing application resources.
+      This listener should appear after the job executor launcher,
+      to avoid reopening the configuration.
+    </description>
     <listener-class>org.jbpm.web.JbpmConfigurationCloser</listener-class>
   </listener>
 
@@ -151,14 +161,14 @@
   </resource-ref>
 
   <ejb-local-ref>
-  	<description>
-  	  Link to the local entity bean that implements the scheduler service.
-  	  Required for processes that contain timers.
+    <description>
+      Link to the local entity bean that implements the scheduler service.
+      Required for processes that contain timers.
   	</description>
-  	<ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
-  	<ejb-ref-type>Entity</ejb-ref-type>
-  	<local-home>org.jbpm.ejb.LocalTimerEntityHome</local-home>
-  	<local>org.jbpm.ejb.LocalTimerEntity</local>
+    <ejb-ref-name>ejb/TimerEntityBean</ejb-ref-name>
+    <ejb-ref-type>Entity</ejb-ref-type>
+    <local-home>org.jbpm.ejb.LocalTimerEntityHome</local-home>
+    <local>org.jbpm.ejb.LocalTimerEntity</local>
   </ejb-local-ref>
 
   <message-destination-ref>




More information about the jbpm-commits mailing list