You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ma...@apache.org on 2008/10/29 09:02:00 UTC

svn commit: r708815 [2/2] - in /geronimo/server/trunk: plugingroups/javaee5-jetty/ plugingroups/javaee5-jetty/src/main/history/ plugingroups/javaee5-tomcat/ plugingroups/javaee5-tomcat/src/main/history/ plugins/console/console-portal-driver/src/main/we...

Added: geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/resources/openejb-portlet.properties
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/resources/openejb-portlet.properties?rev=708815&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/resources/openejb-portlet.properties (added)
+++ geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/resources/openejb-portlet.properties Wed Oct 29 01:01:59 2008
@@ -0,0 +1,118 @@
+#=====================================================================
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#=====================================================================
+##
+## $Rev: 520132 $ $Date: 2007-03-20 04:05:23 +0530 (Tue, 20 Mar 2007) $
+##
+
+portlet.openejb.view.containerclass=Container Class
+portlet.openejb.view.containerid=Container Id
+portlet.openejb.view.containerdescription=Container Description
+portlet.openejb.view.displayname=Display Name
+
+portlet.openejb.view.beanclassname=Bean Class Name
+portlet.openejb.view.businesslocalinterfaces=Business Local Interfaces
+portlet.openejb.view.businessremoteinterfaces=Business Remote Interfaces
+portlet.openejb.view.deploymentid=Deployment Id
+portlet.openejb.view.ejbname=EJB Name
+portlet.openejb.view.ejbhomeinterface=EJB Home Interface
+portlet.openejb.view.jndinames=JNDI Names
+portlet.openejb.view.localhomeinterface=Local Home Interface
+portlet.openejb.view.localinterface=Local Interface
+portlet.openejb.view.remoteinterface=Remote Interface
+portlet.openejb.view.primarykeyclass=Primary Key Class
+portlet.openejb.view.primarykeyfield=Primary Key Field
+portlet.openejb.view.sepinterface=Service EndPoint Interface
+
+portlet.openejb.view.message1=The value of {0} should be Numeric;
+portlet.openejb.view.message2=The value of {0} should be either true or false
+portlet.openejb.view.message3=The value of {0} is not valid
+portlet.openejb.view.message4=Please restart the openejb configuration for the changes to take effect
+portlet.openejb.view.message5=The openejb configuration should be restarted for the changes that were made to the fields to take effect. The changed fields are now shown in red color.
+
+portlet.openejb.view.errorMessage1=An unexpected error has occurred and the value cannot be set
+portlet.openejb.view.errorMessage2=Exception when trying to get JNDI name 
+portlet.openejb.view.errorMessage3=GBeanNotFoundException for GBean Name: {0}
+portlet.openejb.view.errorMessage4=InternalKernelException for GBean Name: {0}
+portlet.openejb.view.errorMessage5=IllegalStateException for GBean Name: {0}
+
+portlet.openejb.help.title=The EJB Server portlet allows you to see the different OpenEJB containers deployed on the server. It allows you to set the configurable attributes of those containers as well as view information on the EJBs that are deployed on that container.
+portlet.openejb.help.ejbInfo=EJB Information.
+portlet.openejb.help.ejbInfoDetail=This portlet shows the following information regarding the Enterprise Java Beans deployed in the embedded OpenEJB instance. This information cannot be edited.
+portlet.openejb.help.beanclassname=Bean Class Name
+portlet.openejb.help.beanclassnamedesc=This is the name of the Bean Class.
+
+portlet.openejb.help.businesslocal=Business Local Interfaces
+portlet.openejb.help.businesslocaldesc=Comma separated list of business local interfaces that the bean has.
+portlet.openejb.help.businessremote=Business Remote Interfaces
+portlet.openejb.help.businessremotedesc=Comma separated list of business remote interfaces that the bean has.
+portlet.openejb.help.deploymentId=Deployment Id
+portlet.openejb.help.deploymentIddesc=Deployment Id of the EJB.
+portlet.openejb.help.ejbname=Ejb Name
+portlet.openejb.help.ejbnamedesc=Name of the EJB.
+portlet.openejb.help.ejbhome=EJB Home Interface
+portlet.openejb.help.ejbhomedesc=Home interface of the EJB.
+portlet.openejb.help.jndiname=JNDI Names
+portlet.openejb.help.jndinamedesc=Comma separated list of JNDI names for the EJB.
+portlet.openejb.help.localhome=Local Home Interface
+portlet.openejb.help.localhomedesc=Local Home interface of the EJB.
+portlet.openejb.help.local=Local Interface
+portlet.openejb.help.localdesc=Local interface of the EJB.
+portlet.openejb.help.remote=Remote Interface
+portlet.openejb.help.remotedesc=Remote interface of the EJB.
+portlet.openejb.help.primarykeyclass=Primary Key Class
+portlet.openejb.help.primarykeyclassdesc=Primary Key class of the EJB(if any).
+portlet.openejb.help.primarykeyfield=Primary Key Field
+portlet.openejb.help.primarykeyfielddesc=Primary Key field of the EJB(if any).
+portlet.openejb.help.sei=Service EndPoint Interface
+portlet.openejb.help.seidesc=Service Endpoint Interface if the stateless EJB is exposed as a web service.
+portlet.openejb.help.containerinfo=Container Information
+portlet.openejb.help.containerinfodesc=This portlet also gives us information regarding the different types of OpenEJB containers that are running in Geronimo. We can get this information by clicking on the different containers shown in the tree. The editable fields for each container are shown below
+portlet.openejb.help.statelesscontainer=Stateless Container
+portlet.openejb.help.sltimeout=TimeOut
+portlet.openejb.help.sltimeoutdesc=Specifies the time to wait between invocations. This value is measured in milliseconds. A value of 5 would result in a time-out of 5 milliseconds between invocations.A value of zero would mean no timeout.Default value is 0.
+portlet.openejb.help.slpoolsize=PoolSize
+portlet.openejb.help.slpoolsizedesc=Specifies the size of the bean pools for this stateless SessionBean container. Default value is 10.
+portlet.openejb.help.strictpooling=StrictPooling
+portlet.openejb.help.strictpoolingdesc=StrictPooling tells the container what to do when the pool reaches it's maximum size and there are incoming requests that need instances.With strict pooling, requests will have to wait for instances to become available. The pool size will never grow beyond the the set PoolSize value.Without strict pooling, the container will create temporary instances to meet demand. The instances will last for just one method invocation and then are removed. Default value is true.
+portlet.openejb.help.statefulcontainer=Stateful Container
+portlet.openejb.help.sftimeout=TimeOut
+portlet.openejb.help.sftimeoutdesc=Specifies the time to wait between invocations. This value is measured in minutes. A value of 5 would result in a time-out of 5 minutes between invocations.A value of zero would mean no timeout.Default value is 20.
+portlet.openejb.help.sfpoolsize=PoolSize
+portlet.openejb.help.sfpoolsizedesc=Specifies the size of the bean pools for this stateful SessionBean container.Default value is 1000.
+portlet.openejb.help.passivator=Passivator
+portlet.openejb.help.passivatordesc=The passivator is responsible for writing beans to disk at passivation time. Different passivators can be used by setting this property to the fully qualified class name of the PassivationStrategy implementation. The passivator is not responsible for invoking any callbacks or other processing, its only responsibly is to write the bean state to disk.
+portlet.openejb.help.ki=Known implementations
+portlet.openejb.help.ki1=org.apache.openejb.core.stateful.RAFPassivater
+portlet.openejb.help.ki2=org.apache.openejb.core.stateful.SimplePassivater
+portlet.openejb.help.kid=Default value is org.apache.openejb.core.stateful.SimplePassivater.
+portlet.openejb.help.bulkpassivate=BulkPassivate
+portlet.openejb.help.bulkpassivatedesc=Property name that specifies the number of instances to passivate at one time when doing bulk passivation.Default value is 100.
+portlet.openejb.help.mdbcontainer=MDB Container
+portlet.openejb.help.instancelimit=InstanceLimit
+portlet.openejb.help.instancelimitdesc=Specifies the maximum number of bean instances that are allowed to exist for each MDB deployment.Default value is 10.
+portlet.openejb.help.activation=ActivationSpecClass
+portlet.openejb.help.activationdesc=Specifies the activation spec class Default value is org.apache.activemq.ra.ActiveMQActivationSpec
+portlet.openejb.help.mli=MessageListenerInterface
+portlet.openejb.help.mlidesc=Specifies the message listener interface handled by this container. Default value is javax.jms.MessageListener.
+portlet.openejb.help.ra=ResourceAdapter
+portlet.openejb.help.radesc=The resource adapter delivers messages to the container. Default value is Default JMS Resource Adapter.
+portlet.openejb.help.cmpcontainer=CMP Container
+portlet.openejb.help.cef=CmpEngineFactory
+portlet.openejb.help.cefdesc=Default value is org.apache.openejb.core.cmp.jpa.JpaCmpEngineFactory.
+portlet.openejb.help.bmpcontainer=BMP Container
+portlet.openejb.help.bmppoolsize=PoolSize
+portlet.openejb.help.bmppoolsizedesc=Specifies the size of the bean pools for this bmp entity container.Default value is 10.

Added: geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/portlet.xml?rev=708815&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/portlet.xml (added)
+++ geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/portlet.xml Wed Oct 29 01:01:59 2008
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed  under the  License is distributed on an "AS IS" BASIS,
+WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
+implied.
+
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<!-- $Rev: 566146 $ $Date: 2007-08-15 19:13:23 +0530 (Wed, 15 Aug 2007) $ -->
+
+<portlet-app version="1.0">
+
+     <portlet>
+        <description>Portlet for Viewing EJB Server Information</description>
+        <portlet-name>EJBServerPortlet</portlet-name>
+        <display-name>EJB Server Portlet</display-name>
+
+        <portlet-class>org.apache.geronimo.console.ejbserver.EJBServerPortlet</portlet-class>
+
+        <expiration-cache>-1</expiration-cache>
+
+        <supports>
+            <mime-type>text/html</mime-type>
+            <portlet-mode>VIEW</portlet-mode>            
+            <portlet-mode>HELP</portlet-mode>
+        </supports>
+
+        <supported-locale>en</supported-locale>
+
+        <portlet-info>
+            <title>EJB Server</title>
+            <short-title>EJB Server</short-title>
+            <keywords>EJB Server</keywords>
+        </portlet-info>
+    </portlet>
+
+</portlet-app>

Added: geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/help.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/help.jsp?rev=708815&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/help.jsp (added)
+++ geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/help.jsp Wed Oct 29 01:01:59 2008
@@ -0,0 +1,76 @@
+<%--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+--%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<fmt:setBundle basename="openejb-portlet"/>
+<p><fmt:message key="portlet.openejb.help.title" /></p>
+<h3><fmt:message key="portlet.openejb.help.ejbInfo" /></h3>
+<p><fmt:message key="portlet.openejb.help.ejbInfoDetail" />
+<ul>
+<li><b><fmt:message key="portlet.openejb.help.beanclassname" />:</b> <fmt:message key="portlet.openejb.help.beanclassnamedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.businesslocal" />:</b> <fmt:message key="portlet.openejb.help.businesslocaldesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.businessremote" />:</b> <fmt:message key="portlet.openejb.help.businessremotedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.deploymentId" />:</b> <fmt:message key="portlet.openejb.help.deploymentIddesc"/> </li>
+<li><b><fmt:message key="portlet.openejb.help.ejbname" />:</b> <fmt:message key="portlet.openejb.help.ejbnamedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.ejbhome"/>:</b> <fmt:message key="portlet.openejb.help.ejbhomedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.jndiname"/>:</b> <fmt:message key="portlet.openejb.help.jndinamedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.localhome"/>:</b> <fmt:message key="portlet.openejb.help.localhomedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.local"/>:</b> 
+<fmt:message key="portlet.openejb.help.localdesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.remote"/>:</b> <fmt:message key="portlet.openejb.help.remotedesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.primarykeyclass"/>:</b> <fmt:message key="portlet.openejb.help.primarykeyclassdesc"/></li>	
+<li><b><fmt:message key="portlet.openejb.help.primarykeyfield"/>:</b> <fmt:message key="portlet.openejb.help.primarykeyfielddesc"/></li>
+<li><b><fmt:message key="portlet.openejb.help.sei"/>:</b> <fmt:message key="portlet.openejb.help.seidesc"/></li>
+</ul>
+</p>
+<h3><fmt:message key="portlet.openejb.help.containerinfo"/></h3>
+<p><fmt:message key="portlet.openejb.help.containerinfodesc"/>:
+<ul>
+  <li><b><fmt:message key="portlet.openejb.help.statelesscontainer"/></b>
+    <ul>
+      <li><b><fmt:message key="portlet.openejb.help.sltimeout"/>:</b> <fmt:message key="portlet.openejb.help.sltimeoutdesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.slpoolsize"/>:</b> <fmt:message key="portlet.openejb.help.slpoolsizedesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.strictpooling"/>:</b> <fmt:message key="portlet.openejb.help.strictpoolingdesc"/></li>
+    </ul>
+  </li>	
+  <li><b><fmt:message key="portlet.openejb.help.statefulcontainer"/></b>    <ul>
+      <li><b><fmt:message key="portlet.openejb.help.sftimeout"/>:</b> <fmt:message key="portlet.openejb.help.sftimeoutdesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.sfpoolsize"/>:</b> <fmt:message key="portlet.openejb.help.sfpoolsizedesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.passivator"/>:</b> <fmt:message key="portlet.openejb.help.passivatordesc"/>
+<fmt:message key="portlet.openejb.help.ki"/>:
+<fmt:message key="portlet.openejb.help.ki1"/>
+<fmt:message key="portlet.openejb.help.ki2"/>
+<fmt:message key="portlet.openejb.help.kid"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.bulkpassivate"/>:</b> <fmt:message key="portlet.openejb.help.bulkpassivatedesc"/></li>   
+    </ul>
+  </li>	
+  <li><b><fmt:message key="portlet.openejb.help.mdbcontainer"/></b>
+    <ul>
+      <li><b><fmt:message key="portlet.openejb.help.instancelimit"/>:</b><fmt:message key="portlet.openejb.help.instancelimitdesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.activation"/>:</b><fmt:message key="portlet.openejb.help.activationdesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.mli"/>:</b><fmt:message key="portlet.openejb.help.mlidesc"/></li>
+      <li><b><fmt:message key="portlet.openejb.help.ra"/>:</b><fmt:message key="portlet.openejb.help.radesc"/></li>
+    </ul>
+  </li>	
+  <li><b><fmt:message key="portlet.openejb.help.cmpcontainer"/></b><ul>
+      <li><b><fmt:message key="portlet.openejb.help.cef"/>:</b> <fmt:message key="portlet.openejb.help.cefdesc"/></li>      
+    </ul>
+  </li>	
+  <li><b><fmt:message key="portlet.openejb.help.bmpcontainer"/></b>
+   <ul>
+      <li><b><fmt:message key="portlet.openejb.help.bmppoolsize"/>:</b><fmt:message key="portlet.openejb.help.bmppoolsizedesc"/></li>
+    </ul>
+  </li>

Added: geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/view.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/view.jsp?rev=708815&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/view.jsp (added)
+++ geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/view/ejbserver/view.jsp Wed Oct 29 01:01:59 2008
@@ -0,0 +1,210 @@
+<%--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+--%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@ page import="org.apache.geronimo.console.util.PortletManager,
+                 javax.portlet.RenderRequest"%>
+<portlet:defineObjects/>
+
+<fmt:setBundle basename="openejb-portlet"/>
+<% String dwrForwarderServlet = "/console/dwr6"; %>
+<script type='text/javascript' src='<%= dwrForwarderServlet %>/interface/EjbHelper.js'></script>
+<script type='text/javascript' src='<%= dwrForwarderServlet %>/engine.js'></script>
+<script type='text/javascript' src='<%= dwrForwarderServlet %>/util.js'></script>
+<style type="text/css">
+
+@import "/dojo/dojo/dojo/resources/dojo.css";
+@import "/dojo/dojo/dijit/themes/soria/soria.css";
+
+table thead td, table thead th { 
+    background: #2581C7; /* #94BEFF */
+    color: #FFFFFF;    /* added */
+}
+
+</style>
+<script type="text/javascript" src="/dojo/dojo/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
+    
+<script>    
+
+    dojo.require("dijit.Tree");
+    dojo.require("dijit.layout.LayoutContainer");
+    dojo.require("dijit.layout.ContentPane");
+    dojo.require("dijit.layout.SplitContainer");
+    dojo.require("dijit.form.Button");
+    dojo.require("dijit.form.TextBox");
+    dojo.require("dojo.data.ItemFileReadStore"); 
+    
+    var lastFound = '';
+    var doCheck = false;
+    var serverStore=null;
+    var data = '';
+
+    EjbHelper.getEjbInformation({callback:createStore,async:false});
+        
+    function errh(errorObj) {
+       alert(errorObj.message);
+    }
+
+        
+    function check(curr,last) {
+    
+    var cr = curr.split(".");
+        var ls = last.split(".");
+
+        for (var i =0; i < cr.length; i++)
+            if(parseInt(cr[i]) < parseInt(ls[i]))
+                return false;
+
+        return true;
+    }
+    
+   
+    function createStore(treeDat){    
+        var json = dojo.toJson(treeDat);
+        data = {data:""};
+        data.data = treeDat;                    
+        serverStore=new dojo.data.ItemFileReadStore(data);       
+    }
+      
+    
+  /**
+   * DWR table render option
+   */
+   var tableOption = {
+       rowCreator: function(options) {
+           var row = document.createElement('tr');
+           return row;
+       },
+       cellCreator: function(options) {
+           var td = document.createElement('td');
+           if ((options.rowIndex % 2) == 0) {
+               td.style.backgroundColor = '#FFFFFF';
+           } else {
+               td.style.backgroundColor = '#F2F2F2';
+           }	   
+           return td;
+       },
+       escapeHtml:false
+  }
+
+function updateEjbInfoTable(ejbInfos){
+    var containerId = "";
+    var showDialogFlag = false;
+    DWRUtil.removeAllRows('ejbInfoTableBody');
+    DWRUtil.addRows(
+        'ejbInfoTableBody', 
+        ejbInfos,
+        [ 
+            function(info) {            
+                if(info.editable == "true" && info.dirty == "true"){                    
+                    showDialogFlag = true;                   
+                    return "<div style='width:100%;display:inline;'><p id='" + info.id + "para' style='color: red'>" + info.name + "</p></div>";
+                } else { 
+                    return "<div style='width:100%;display:inline;'><p id='" + info.id + "para'>" + info.name + "</p></div>";
+                }		
+            },
+            function(info) {
+	        var value = info.value;
+		    var name = info.name;
+                if(info.id == "ContainerId"){
+		            containerId = info.value;  
+                } 		
+                if(info.editable == "true"){                                        
+                    return "<div style='width:100%;display:inline;'><input type='text' id="+info.id + " name="+info.name + " value="+info.value+" widgetId="+info.id+" dojoType='Textbox' /><button dojoType='Button'  onclick=updateValues('"+escape(containerId)+"','"+info.id+"','"+info.value+"')>Update!</button></div> "
+                } else {
+                    return "<div style='width:100%'>" + info.value + "</div>";		
+                } 
+	   }	   
+              ],
+        tableOption
+    );
+    if(showDialogFlag)
+        alert("<fmt:message key="portlet.openejb.view.message5"/>");   
+
+      
+  }
+  
+   function updateValues(containerId,  propertyKey, originalValue){       
+       var propertyValue = document.getElementById(propertyKey).value;       
+       var para = propertyKey+"para";
+       if(originalValue != propertyValue){
+           EjbHelper.setContainerProperty(containerId,  propertyKey,  propertyValue, updateResult);
+           document.getElementById(para).style.color="red";
+       }
+   }
+   
+   function updateResult(status){
+	     alert(status.message);
+   }
+   
+   function getIcon(item) {    
+	   
+   }
+   
+   document.body.className="soria";
+   
+  </script>
+
+  <div dojoType="dijit.tree.ForestStoreModel" jsId="storeModel" 
+		store="serverStore" 
+		rootId="Ejb Containers" rootLabel="Ejb Containers" childrenAttrs="children"></div>
+
+	
+<div dojoType="dijit.layout.LayoutContainer"  id="mainLayout" style="width: 100%; height: 700px;">
+   <!-- Horizontal split container -->
+    <div dojoType="dijit.layout.SplitContainer" orientation="horizontal" sizerWidth="1" activeSizing="true" layoutAlign="client" style="width: 100%; height: 100%;" >
+       <div dojoType="dijit.layout.ContentPane" layoutAlign="left" style="background-color:white; overflow: auto;" preload="true" widgetId="ejbcontainerTree" sizeShare="40" onLoad = displayTree >       
+         <div class="soria" dojoType="dijit.Tree"  model="storeModel" openOnClick="false" >
+	   <script type="dojo/method" event="onClick" args="item">
+			if(item.id!="Ejb Containers") {             	        
+		        var ids = serverStore.getValue(item, "value").split('#^~');
+			    if(ids[1] != null) {
+		            EjbHelper.getDeploymentInfo(ids[0],ids[1],updateEjbInfoTable);		       
+			    } else {
+			        EjbHelper.getContainerInfo(ids[0],updateEjbInfoTable);
+			    }
+			} else {
+			    DWRUtil.removeAllRows('ejbInfoTableBody');
+			}
+             
+		</script> 
+	</div>
+      </div> 
+	
+      <div id="infoTab" dojoType="dijit.layout.ContentPane" title="Ejb Info" label="Info" sizeShare="60" style="background-color:white; overflow: auto;" layoutAlign="right" class="soria" >
+         <table widgetId="ejbsTable" 
+		    headClass: 'fixedHeader',
+            tbodyClass="scrollContent" 
+            enableMultipleSelect="true" 
+            enableAlternateRows="true" 
+            rowAlternateClass="alternateRow" 
+            cellpadding="0" 
+            cellspacing="2" 
+            border="0"
+            width="100%">
+            <thead>                      
+              <th field="Name" dataType="html" width="40%"><B>&nbsp;Name&nbsp;</B></th>
+              <th dataType="html" width="60%"><B>&nbsp;Value&nbsp;</B></th>
+            </thead>
+            <tbody id="ejbInfoTableBody">
+            </tbody>
+         </table>
+      </div>
+   </div>
+</div>   
+</div>

Added: geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/web.xml?rev=708815&view=auto
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/server/trunk/plugins/openejb/openejb-portlets/src/main/webapp/WEB-INF/web.xml Wed Oct 29 01:01:59 2008
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed  under the  License is distributed on an "AS IS" BASIS,
+WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
+implied.
+
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" metadata-complete="true">
+    <display-name>EJB Server Portlet</display-name>
+
+    <servlet>
+        <servlet-name>EjbServer</servlet-name>
+        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
+        <init-param>
+            <param-name>portlet-name</param-name>
+            <param-value>EJBServerPortlet</param-value>
+        </init-param>
+        <load-on-startup>2</load-on-startup>
+    </servlet>
+    
+    <servlet>
+      <servlet-name>dwr-invoker</servlet-name>
+      <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
+      <init-param>
+          <param-name>debug</param-name>
+	  <param-value>true</param-value>
+      </init-param>
+      <init-param>
+          <param-name>classes</param-name>
+          <param-value>
+              org.apache.geronimo.console.ejbserver.EjbInformation,
+	      org.apache.geronimo.console.ejbserver.TreeEntry,
+	      org.apache.geronimo.console.ejbserver.EjbHelper,
+	      org.apache.geronimo.console.ejbserver.Status,
+              org.apache.geronimo.console.ejbserver.Tree
+          </param-value>
+      </init-param>
+      <load-on-startup>1</load-on-startup>
+    </servlet>
+    
+    <servlet-mapping>
+        <servlet-name>EjbServer</servlet-name>
+        <url-pattern>/PlutoInvoker/EJBServerPortlet</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>dwr-invoker</servlet-name>
+        <url-pattern>/dwr6/*</url-pattern>
+    </servlet-mapping>    
+
+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>ejb-server</web-resource-name>
+	    <url-pattern>/</url-pattern>
+            <url-pattern>/PlutoInvoker/*</url-pattern>
+	    <url-pattern>/dwr6/*</url-pattern>
+            <http-method>GET</http-method>
+            <http-method>POST</http-method>
+            <http-method>PUT</http-method>
+        </web-resource-collection>
+        <auth-constraint>
+            <role-name>admin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>geronimo-admin</realm-name>
+    </login-config>
+    <security-role>
+        <role-name>admin</role-name>
+    </security-role>
+
+     <!--
+    For security reasons requests to the dwr servlet go through
+    the "/console" web-app context. The purpose of dwr-filter is
+    to map the attributes such as pathInfo, requestURI, etc. of
+    the original request into the request that is delivered to
+    the dwr-invoker servlet.  The dwr-invoker servlet uses those
+    attributes to create URLs that it sends back to the client.
+     -->
+    <filter>
+        <filter-name>dwr-filter</filter-name>
+        <filter-class>org.apache.geronimo.console.servlet.ForwardDispatchFilter</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>dwr-filter</filter-name>
+        <servlet-name>dwr-invoker</servlet-name>
+        <dispatcher>FORWARD</dispatcher>
+    </filter-mapping>
+
+</web-app>

Modified: geronimo/server/trunk/plugins/openejb/openejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/openejb/pom.xml?rev=708815&r1=708814&r2=708815&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/openejb/pom.xml (original)
+++ geronimo/server/trunk/plugins/openejb/openejb/pom.xml Wed Oct 29 01:01:59 2008
@@ -173,8 +173,32 @@
                                     <attribute name="multicastPort">${MulticastDiscoveryPort}</attribute>
                                     <attribute name="clusterName">${ClusterName}</attribute>
                                 </gbean>
+                                <gbean name="DefaultStatefulContainer">
+                                    <attribute name="timeout">${StatefulTimeout}</attribute>
+                                    <attribute name="capacity">${Capacity}</attribute>
+                                    <attribute name="bulkPassivate">${BulkPassivate}</attribute>
+                                </gbean>
+                                <gbean name="DefaultSingletonContainer">
+                                    <attribute name="accessTimeout">${AccessTimeout}</attribute>
+                                </gbean>
+                                <gbean name="DefaultBMPContainer">
+                                    <attribute name="poolSize">${BMPPoolSize}</attribute>
+                                </gbean>
+                                <gbean name="DefaultStatelessContainer">
+                                    <attribute name="timeout">${StatelessTimeout}</attribute>
+                                    <attribute name="poolSize">${StatelessPoolSize}</attribute>
+                                    <attribute name="strictPooling">${StrictPooling}</attribute>
+				</gbean>
                             </config-xml-content>
                             <config-substitution key="OpenEJBPort">4201</config-substitution>
+                            <config-substitution key="StatefulTimeout">20</config-substitution>
+                            <config-substitution key="Capacity">1000</config-substitution>
+                            <config-substitution key="BulkPassivate">100</config-substitution>
+                            <config-substitution key="AccessTimeout">30</config-substitution>
+                            <config-substitution key="BMPPoolSize">10</config-substitution>
+                            <config-substitution key="StatelessTimeout">0</config-substitution>
+                            <config-substitution key="StatelessPoolSize">10</config-substitution> 
+                            <config-substitution key="StrictPooling">true</config-substitution>
                             <config-substitution key="MulticastDiscoveryAddress">239.255.3.2</config-substitution>
                             <config-substitution key="MulticastDiscoveryPort">6142</config-substitution>
                             <config-substitution key="ClusterName">cluster1</config-substitution>
@@ -185,5 +209,4 @@
             </plugin>
         </plugins>
     </build>
-
 </project>

Modified: geronimo/server/trunk/plugins/openejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/pom.xml?rev=708815&r1=708814&r2=708815&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/pom.xml (original)
+++ geronimo/server/trunk/plugins/openejb/pom.xml Wed Oct 29 01:01:59 2008
@@ -43,6 +43,9 @@
         <module>geronimo-openejb-clustering-builder-wadi</module>
         <module>openejb</module>
         <module>openejb-deployer</module>
+        <module>openejb-portlets</module>  
+        <module>openejb-console-jetty</module>
+        <module>openejb-console-tomcat</module>
         <module>openejb-clustering-wadi</module>
         <module>openejb-clustering-builder-wadi</module>
     </modules>