ejtools-cvs Mailing List for EJTools (Page 107)
Brought to you by:
letiemble
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(471) |
May
(303) |
Jun
(176) |
Jul
(67) |
Aug
(64) |
Sep
(84) |
Oct
(148) |
Nov
(57) |
Dec
(272) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(356) |
Feb
(304) |
Mar
(214) |
Apr
(22) |
May
(7) |
Jun
(25) |
Jul
|
Aug
(5) |
Sep
(106) |
Oct
|
Nov
(95) |
Dec
(193) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Laurent E. <let...@us...> - 2002-04-22 18:00:20
|
Update of /cvsroot/ejtools/applications/management/src/main/net/sourceforge/ejtools/management/model In directory usw-pr-cvs1:/tmp/cvs-serv30166/management/src/main/net/sourceforge/ejtools/management/model Added Files: Resource.java Log Message: Initial Import --- NEW FILE: Resource.java --- package net.sourceforge.ejtools.management.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.lang.reflect.*; import java.util.*; import javax.management.*; import javax.naming.*; import javax.swing.*; import org.w3c.dom.*; import net.sourceforge.ejtools.awt.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public class Resource extends Node implements MBeanAccessor { /** Description of the Field */ protected String canonicalName; /** Description of the Field */ protected transient MBeanInfo info; /** Description of the Field */ protected String j2eeType; /** Description of the Field */ protected transient ObjectName objectName; /** Constructor for the Resource object */ public Resource() { } /** * Gets the attribute attribute of the Resource object * * @param name Description of the Parameter * @param attribute Description of the Parameter * @return The attribute value */ public Object getAttribute(ObjectName name, String attribute) { BeanContextServices context = (BeanContextServices) getBeanContext(); Object result = null; if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); result = service.getAttribute(name, attribute); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } return result; } /** * Gets the canonicalName attribute of the Resource object * * @return The canonicalName value */ public String getCanonicalName() { return this.canonicalName; } /** * Gets the component attribute of the Resource object * * @return The component value */ public Component getComponent() { if (c == null) { BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); this.info = service.getMBeanInfo(this.objectName); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { System.out.println("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); e.printStackTrace(); } } try { c = new GenericMBeanCustomizer(true, this); } catch (Exception e) { e.printStackTrace(); } } return (Component) c; } /** * Gets the j2eeType attribute of the Resource object * * @return The j2eeType value */ public String getJ2EEType() { return j2eeType; } /** * Gets the mBeanInfo attribute of the Resource object * * @return The mBeanInfo value */ public MBeanInfo getMBeanInfo() { return this.info; } /** * Gets the objectName attribute of the Resource object * * @return The objectName value */ public ObjectName getObjectName() { return this.objectName; } /** * Description of the Method * * @param name Description of the Parameter * @param action Description of the Parameter * @param params Description of the Parameter * @param signatures Description of the Parameter * @return Description of the Return Value */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) { BeanContextServices context = (BeanContextServices) getBeanContext(); Object result = null; if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); result = service.invoke(name, action, params, signatures); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } return result; } /** * Sets the attribute attribute of the Resource object * * @param name The new attribute value * @param attribute The new attribute value */ public void setAttribute(ObjectName name, Attribute attribute) { BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); service.setAttribute(name, attribute); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } } /** * Sets the reference attribute of the Resource object * * @param objectName The new reference value * @exception Exception Description of Exception */ public void setReference(ObjectName objectName) throws Exception { this.objectName = objectName; this.canonicalName = objectName.getCanonicalName(); this.name = objectName.getKeyProperty("name"); this.j2eeType = objectName.getKeyProperty("j2eeType"); } /** * Description of the Method * * @return Description of the Return Value */ public String toString() { return (this.canonicalName == null ? "undefined" : this.canonicalName); } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:18
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb In directory usw-pr-cvs1:/tmp/cvs-serv30166/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb Added Files: PropertyChanger.java Log Message: Initial Import --- NEW FILE: PropertyChanger.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.ejb; // Standard Imports import java.beans.PropertyChangeListener; /** *Description of the Interface * * @author letiembl * @created 2 janvier 2002 */ public interface PropertyChanger { /** *Adds a feature to the PropertyChangeListener attribute of the PropertyChanger object * * @param pcl The feature to be added to the PropertyChangeListener attribute */ public void addPropertyChangeListener(PropertyChangeListener pcl); /** *Description of the Method * * @param pcl Description of Parameter */ public void removePropertyChangeListener(PropertyChangeListener pcl); } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:17
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms In directory usw-pr-cvs1:/tmp/cvs-serv30166/jndi.browser/src/etc/beaninfo/jms Added Files: QueueProxy.xml Log Message: Initial Import --- NEW FILE: QueueProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.QueueProxy" displayname="JMS Queue" iconcolor16="/images/jms/Queue16.gif" iconcolor32="/images/jms/Queue16.gif"> <property name="name" class="java.lang.String" displayname="Name"/> <property name="className" class="java.lang.String" displayname="Class"/> <property name="count" class="int" displayname="Message(s)"/> <method name="browse" displayname="Browse"> </method> <method name="createMessage" displayname="Create Message"> </method> <method name="createTextMessage" displayname="Send Text Message"> <parameter displayname="Text"/> </method> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:15
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv30166/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Added Files: Resource.java Log Message: Initial Import --- NEW FILE: Resource.java --- package net.sourceforge.ejtools.jmxbrowser.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.lang.reflect.*; import java.util.*; import javax.management.*; import javax.naming.*; import javax.swing.*; import org.w3c.dom.*; import com.dreambean.awt.*; import net.sourceforge.ejtools.awt.*; import net.sourceforge.ejtools.jmx.MBeanAccessor; import org.jboss.jmx.adaptor.interfaces.Adaptor; import org.jboss.jmx.adaptor.interfaces.AdaptorHome; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public class Resource extends Node implements MBeanAccessor { /** Description of the Field */ protected String description; /** Description of the Field */ protected String domain; /** Description of the Field */ protected transient MBeanInfo info; /** Description of the Field */ protected transient ObjectInstance objectInstance; /** Description of the Field */ protected transient ObjectName objectName; /** Description of the Field */ protected transient ResourceUpdater updater; /** Constructor for the Resource object */ public Resource() { } public String getSmallIcon(){ return "EJBModule16.gif"; } /** * Getter for the attribute attribute * * @param name Description of Parameter * @param attribute Description of Parameter * @return The value */ public Object getAttribute(ObjectName name, String attribute) { BeanContextServices context = (BeanContextServices) getBeanContext(); Object result = null; if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); result = service.getAttribute(name, attribute); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } return result; } /** * Gets the canonicalName attribute of the Resource object * * @return The canonicalName value */ public String getCanonicalName() { return this.name; } /** * Gets the component attribute of the Resource object * * @return The component value * @author laurent * @created 23 mars 2002 */ public Component getComponent() { /* * updater = new ResourceUpdater(); * MBeanAttributeInfo[] attributes = this.info.getAttributes(); * if (attributes != null) * { * for (int i = 0; i < attributes.length; i++) * { * MBeanAttributeInfo ainfo = attributes[i]; * updater.enableAttribute(ainfo.getName()); * } * } */ if (c == null) { BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); // Adaptor connector = service.createEJB(); this.info = service.getMBeanInfo(this.objectName); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { System.out.println("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); e.printStackTrace(); } } try { // this.connector.addNotificationListener(this.objectName, updater, updater, null); c = new GenericMBeanCustomizer(true, this); } catch (Exception e) { e.printStackTrace(); } } return (Component) c; } /** * Gets the description attribute of the Resource object * * @return The description value */ public String getDescription() { return this.description; } /** * Gets the domain attribute of the Resource object * * @return The domain value */ public String getDomain() { return this.domain; } /** * Gets the mBeanInfo attribute of the Resource object * * @return The mBeanInfo value */ public MBeanInfo getMBeanInfo() { return this.info; } /** * Gets the instance attribute of the Resource object * * @return The instance value */ public ObjectInstance getObjectInstance() { return this.objectInstance; } /** * Gets the objectName attribute of the Resource object * * @return The objectName value */ public ObjectName getObjectName() { return this.objectName; } /** * Description of the Method * * @param name Description of Parameter * @param action Description of Parameter * @param params Description of Parameter * @param signatures Description of Parameter * @return Description of the Returned Value */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) { BeanContextServices context = (BeanContextServices) getBeanContext(); Object result = null; if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); result = service.invoke(name, action, params, signatures); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } return result; } /** * Getter for the attribute attribute * * @param name Description of Parameter * @param attribute Description of Parameter */ public void setAttribute(ObjectName name, Attribute attribute) { BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); service.setAttribute(name, attribute); context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { e.printStackTrace(); } } } /** * Sets the reference attribute of the Resource object * * @param instance The new reference value * @exception Exception Description of Exception */ public void setReference(ObjectInstance instance) throws Exception { this.objectInstance = instance; this.objectName = this.objectInstance.getObjectName(); this.name = this.objectName.getCanonicalName(); this.className = this.objectInstance.getClassName(); this.domain = this.objectName.getDomain(); } /** * Description of the Class * * @author letiembl * @created 11 janvier 2002 */ class ResourceUpdater extends AttributeChangeNotificationFilter implements NotificationListener { /** * Description of the Method * * @param notification Description of Parameter * @param handback Description of Parameter */ public void handleNotification(Notification notification, Object handback) { AttributeChangeNotification acn = (AttributeChangeNotification) notification; System.out.println("### Attribute has been changed " + acn.getAttributeName()); firePropertyChange(acn.getAttributeName(), acn.getOldValue(), acn.getNewValue()); } } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:12
|
Update of /cvsroot/ejtools/applications/management/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv30316/management/src/etc/beaninfo Added Files: Resource.xml Log Message: Initial Import --- NEW FILE: Resource.xml --- <bean class="net.sourceforge.ejtools.management.model.Resource" displayname="J2EE Managed Object" iconcolor16="/toolbarButtonGraphics/development/Bean16.gif"> <property name="name" class="java.lang.String" displayname="Name"/> <property name="j2EEType" class="java.lang.String" displayname="J2EE Type"/> <property name="objectName" class="java.lang.String" displayname="ObjectName"/> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:11
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv30316/jmx.browser/src/etc/beaninfo Added Files: Resource.xml Log Message: Initial Import --- NEW FILE: Resource.xml --- <bean class="net.sourceforge.ejtools.jmxbrowser.model.Resource" displayname="JMX Resource" iconcolor16="/toolbarButtonGraphics/development/Bean16.gif"> <property name="name" class="java.lang.String" displayname="Name"/> <property name="className" class="java.lang.String" displayname="Class Name"/> <property name="domain" class="java.lang.String" displayname="Domain"/> <property name="description" class="java.lang.String" displayname="Description"/> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:10
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30316/jmx.browser/src/bin Added Files: run.bat Log Message: Initial Import --- NEW FILE: run.bat --- @echo off @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:08
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30316/jndi.browser/src/bin Added Files: run.bat Log Message: Initial Import --- NEW FILE: run.bat --- @echo off @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:06
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv30316/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Added Files: RMIConnectionService.java Log Message: Initial Import --- NEW FILE: RMIConnectionService.java --- package net.sourceforge.ejtools.jmxbrowser.model; import java.util.Set; import javax.management.Attribute; import javax.management.MBeanInfo; import javax.management.ObjectName; import javax.management.QueryExp; import javax.naming.InitialContext; import javax.rmi.PortableRemoteObject; import org.jboss.jmx.adaptor.rmi.RMIAdaptor; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public class RMIConnectionService implements ConnectionService { /** Description of the Field */ protected transient RMIAdaptor connector = null; /** Description of the Field */ protected String ejbName = null; /** Description of the Field */ protected String factory = null; /** Description of the Field */ protected String pkgs = null; /** Description of the Field */ protected String url = null; /** Constructor */ protected RMIConnectionService() { } /** * Getter for the attribute attribute * * @param name Description of Parameter * @param attribute Description of Parameter * @return The value * @exception Exception Description of Exception */ public Object getAttribute(ObjectName name, String attribute) throws Exception { return getConnector().getAttribute(name, attribute); } /** * Getter for the defaultDomain attribute * * @return The value * @exception Exception Description of Exception */ public String getDefaultDomain() throws Exception { return getConnector().getDefaultDomain(); } /** * Getter for the mBeanCount attribute * * @return The value * @exception Exception Description of Exception */ public Integer getMBeanCount() throws Exception { return getConnector().getMBeanCount(); } /** * Getter for the mBeanInfo attribute * * @param name Description of Parameter * @return The value * @exception Exception Description of Exception */ public MBeanInfo getMBeanInfo(ObjectName name) throws Exception { return getConnector().getMBeanInfo(name); } /** * Description of the Method * * @param name Description of Parameter * @param action Description of Parameter * @param params Description of Parameter * @param signatures Description of Parameter * @return Description of the Returned Value * @exception Exception Description of Exception */ public Object invoke(ObjectName name, String action, Object[] params, String[] signatures) throws Exception { return getConnector().invoke(name, action, params, signatures); } /** * Description of the Method * * @param name Description of Parameter * @param exp Description of Parameter * @return Description of the Returned Value * @exception Exception Description of Exception */ public Set queryMBeans(ObjectName name, QueryExp exp) throws Exception { return getConnector().queryMBeans(name, exp); } /** * Setter for the attribute attribute * * @param name The new value * @param attribute The new value * @exception Exception Description of Exception */ public void setAttribute(ObjectName name, Attribute attribute) throws Exception { getConnector().setAttribute(name, attribute); } /** * Setter for the eJBName attribute * * @param ejbName The new value */ public void setEJBName(String ejbName) { this.ejbName = ejbName; connector = null; } /** * Setter for the factory attribute * * @param factory The new value */ public void setFactory(String factory) { this.factory = factory; connector = null; } /** * Setter for the packages attribute * * @param pkgs The new value */ public void setPackages(String pkgs) { this.pkgs = pkgs; connector = null; } /** * Setter for the url attribute * * @param url The new value */ public void setURL(String url) { this.url = url; connector = null; } /** * Description of the Method * * @return Description of the Returned Value * @exception Exception Description of Exception */ protected RMIAdaptor getConnector() throws Exception { if (connector == null) { InitialContext context = new InitialContext(); Object ref = context.lookup(this.ejbName); connector = (RMIAdaptor) PortableRemoteObject.narrow(ref, RMIAdaptor.class); } return connector; } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:04
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv30316/jmx.browser/src/etc Added Files: run.mf Log Message: Initial Import --- NEW FILE: run.mf --- Main-Class: net.sourceforge.ejtools.jmxbrowser.Main Class-Path: ../conf/ Name: net/sourceforge/ejtools/jmxbrowser/ Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Vendor: EJTools Project Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Vendor: EJTools Project |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:03
|
Update of /cvsroot/ejtools/applications/management/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30316/management/src/bin Added Files: run.bat Log Message: Initial Import --- NEW FILE: run.bat --- @echo off @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:00
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv30470/jndi.browser/src/etc Added Files: run.mf Log Message: Initial Import --- NEW FILE: run.mf --- Main-Class: net.sourceforge.ejtools.jndibrowser.Main Class-Path: ../conf/ Name: net/sourceforge/ejtools/jndiview/ Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Vendor: EJTools Project Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Vendor: EJTools Project |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:58
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30470/jmx.browser/src/bin Added Files: run.sh Log Message: Initial Import --- NEW FILE: run.sh --- #!/bin/sh java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:57
|
Update of /cvsroot/ejtools/applications/management/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv30470/management/src/etc Added Files: run.mf Log Message: Initial Import --- NEW FILE: run.mf --- Main-Class: net.sourceforge.ejtools.management.Main Class-Path: ../conf/ Name: net/sourceforge/ejtools/management/ Specification-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Specification-Vendor: EJTools Project Implementation-Title: @module.name@ @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Version: @version.major@.@version.minor@.@version.revision@-@version.tag@ Implementation-Vendor: EJTools Project |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:54
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30470/jndi.browser/src/bin Added Files: run.sh Log Message: Initial Import --- NEW FILE: run.sh --- #!/bin/sh java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:54
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv30470/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model Added Files: SearchTypeEditor.java Log Message: Initial Import --- NEW FILE: SearchTypeEditor.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model; // Other Imports import com.dreambean.awt.editors.TagsEditor; /** * Description of the Class * * @author letiembl * @created 2 janvier 2002 * @todo Javadoc to complete */ public class SearchTypeEditor extends TagsEditor { /** Constructor */ public SearchTypeEditor() { super(new String[]{"Shallow", "Deep"}, new Object[]{new Integer(Server.SHALLOW_SEARCH), new Integer(Server.DEEP_SEARCH)}); } } |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:51
|
Update of /cvsroot/ejtools/applications/management/src/bin In directory usw-pr-cvs1:/tmp/cvs-serv30470/management/src/bin Added Files: run.sh Log Message: Initial Import --- NEW FILE: run.sh --- #!/bin/sh java -jar run.jar |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:51
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv30470/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Added Files: Server.java Log Message: Initial Import --- NEW FILE: Server.java --- package net.sourceforge.ejtools.jmxbrowser.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.io.*; import java.util.*; import javax.management.*; import javax.naming.*; import javax.swing.*; import org.w3c.dom.*; import com.dreambean.awt.*; import com.dreambean.awt.editors.*; import net.sourceforge.ejtools.util.JNDI; import net.sourceforge.ejtools.xml.*; import net.sourceforge.ejtools.xml.beans.*; import org.jboss.jmx.adaptor.interfaces.Adaptor; import org.jboss.jmx.adaptor.interfaces.AdaptorHome; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public class Server extends Node implements BeanContextXmlProxy { /** Description of the Field */ protected int count = 0; /** Description of the Field */ protected String defaultDomain = ""; /** Description of the Field */ protected Hashtable domains = new Hashtable(); /** Description of the Field */ protected String ejbName = "ejb/jmx/ejb/Adaptor"; /** Description of the Field */ protected String factory = "org.jnp.interfaces.NamingContextFactory"; /** Description of the Field */ protected String pkgs = "org.jboss.naming:org.jnp.interfaces"; /** Description of the Field */ protected String url = "localhost:1099"; /** Description of the Field */ protected transient XmlComponent xc = null; /** Constructor for the Server object */ public Server() { this.setName("JMX Server"); JNDI.setJNDIProperties(); if (System.getProperty(Context.INITIAL_CONTEXT_FACTORY) != null) { this.factory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY); } if (System.getProperty(Context.URL_PKG_PREFIXES) != null) { this.pkgs = System.getProperty(Context.URL_PKG_PREFIXES); } if (System.getProperty(Context.PROVIDER_URL) != null) { this.url = System.getProperty(Context.PROVIDER_URL); } } public String getSmallIcon(){ return "Server16.gif"; } public XmlComponent getXmlProxy() { if (xc == null) { xc = new GenericXmlCustomizer(this); } return xc; } /** Description of the Method */ public void connect() { BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); service.setFactory(this.factory); service.setPackages(this.pkgs); service.setURL(this.url); service.setEJBName(this.ejbName); this.setDefaultDomain(service.getDefaultDomain()); this.setCount(service.getMBeanCount().intValue()); Collection mbeans = service.queryMBeans(null, null); Vector resources = new Vector(); Iterator it = mbeans.iterator(); while (it.hasNext()) { ObjectInstance oi = (ObjectInstance) it.next(); String name = oi.getObjectName().getDomain(); Domain d = (Domain) this.domains.get(name); if (d == null) { d = new Domain(); d.setName(oi.getObjectName().getDomain()); resources.add(d); this.domains.put(name, d); } Resource resource = new Resource(); d.add(resource); resource.setReference(oi); } it = resources.iterator(); while (it.hasNext()) { add(it.next()); } context.releaseService(this, this, ConnectionService.class); } catch (Exception e) { System.out.println("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); e.printStackTrace(); } } } /** Description of the Method */ public void disconnect() { } /** * Getter for the count attribute * * @return The value */ public int getCount() { return count; } /** * Getter for the defaultDomain attribute * * @return The value */ public String getDefaultDomain() { return defaultDomain; } /** * Getter for the ejbName attribute * * @return The value */ public String getEJBName() { return ejbName; } /** * Gets the factory attribute of the Server object * * @return The factory value */ public String getFactory() { return this.factory; } /** * Gets the packages attribute of the Server object * * @return The packages value */ public String getPackages() { return this.pkgs; } /** * Gets the url attribute of the Server object * * @return The url value */ public String getURL() { return this.url; } /** * Setter for the ejbName attribute * * @param ejbName The new value */ public void setEJBName(String ejbName) { this.ejbName = ejbName; } /** * Sets the factory attribute of the Server object * * @param factory The new factory value */ public void setFactory(String factory) { this.factory = factory; } /** * Sets the packages attribute of the Server object * * @param pkgs The new packages value */ public void setPackages(String pkgs) { this.pkgs = pkgs; } /** * Sets the url attribute of the Server object * * @param url The new url value */ public void setURL(String url) { this.url = url; } /** * Setter for the mBeanCount attribute * * @param count The new value */ protected void setCount(int count) { int oldCount = this.count; this.count = count; firePropertyChange("count", new Integer(oldCount), new Integer(count)); } /** * Setter for the defaultDomain attribute * * @param defaultDomain The new value */ protected void setDefaultDomain(String defaultDomain) { String oldDomain = this.defaultDomain; this.defaultDomain = defaultDomain; firePropertyChange("defaultDomain", oldDomain, defaultDomain); } } |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:49
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv30601/jmx.browser/src/etc/beaninfo Added Files: Server.xml Log Message: Initial Import --- NEW FILE: Server.xml --- <bean class="net.sourceforge.ejtools.jmxbrowser.model.Server" displayname="JMX Server" iconcolor16="/toolbarButtonGraphics/development/Server16.gif"> <property name="defaultDomain" class="java.lang.String" displayname="Default Domain"/> <property name="count" class="int" displayname="MBean number"/> <property name="factory" class="java.lang.String" displayname="Factory"/> <property name="packages" class="java.lang.String" displayname="Packages"/> <property name="uRL" class="java.lang.String" displayname="URL"/> <property name="eJBName" class="java.lang.String" displayname="EJB Adaptor"/> <method name="connect" displayname="Connect"> </method> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:48
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv30470/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Added Files: SelectFactoryAction.java Log Message: Initial Import --- NEW FILE: SelectFactoryAction.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser; // Standard Imports import java.util.ResourceBundle; // Other Imports import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; /** * Description of the Class * * @author laurent * @created 29 décembre 2001 * @todo Javadoc to complete */ public class SelectFactoryAction extends CommandAction { /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** * Constructor for the NewAction object * * @param command Description of Parameter * @param key Description of Parameter */ public SelectFactoryAction(String key, Command command) { super(command, res, key); this.setMenu("action.options"); } } |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:45
|
Update of /cvsroot/ejtools/applications/management/src/main/net/sourceforge/ejtools/management/model In directory usw-pr-cvs1:/tmp/cvs-serv30601/management/src/main/net/sourceforge/ejtools/management/model Added Files: Server.java Log Message: Initial Import --- NEW FILE: Server.java --- package net.sourceforge.ejtools.management.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.io.*; import java.util.*; import java.util.Iterator; import java.util.Set; import javax.management.*; import javax.naming.*; import javax.swing.*; import org.w3c.dom.*; import com.dreambean.awt.*; import com.dreambean.awt.editors.*; import net.sourceforge.ejtools.util.JNDI; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public class Server extends Node { /** Description of the Field */ protected int count = 0; /** Description of the Field */ protected String defaultDomain = ""; /** Description of the Field */ protected String ejbName = "ejb/mgmt/MEJB"; /** Description of the Field */ protected String factory = "org.jnp.interfaces.NamingContextFactory"; /** Description of the Field */ protected String pkgs = "org.jboss.naming:org.jnp.interfaces"; /** Description of the Field */ protected String url = "localhost:1099"; /** Constructor for the Server object */ public Server() { this.setName("JSR77 Server"); JNDI.setJNDIProperties(); if (System.getProperty(Context.INITIAL_CONTEXT_FACTORY) != null) { this.factory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY); } if (System.getProperty(Context.URL_PKG_PREFIXES) != null) { this.pkgs = System.getProperty(Context.URL_PKG_PREFIXES); } if (System.getProperty(Context.PROVIDER_URL) != null) { this.url = System.getProperty(Context.PROVIDER_URL); } } /** Description of the Method */ public void connect() { Iterator iterator = iterator(); while (iterator.hasNext()) { remove(iterator.next()); } BeanContextServices context = (BeanContextServices) getBeanContext(); if (context.hasService(ConnectionService.class)) { try { ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); service.setFactory(this.factory); service.setPackages(this.pkgs); service.setURL(this.url); service.setEJBName(this.ejbName); this.setDefaultDomain(service.getDefaultDomain()); this.setCount(service.getMBeanCount().intValue()); ObjectName query = new ObjectName(this.defaultDomain + ":*"); Set mbeans = service.queryNames(query, null); Vector resources = new Vector(); Iterator it = mbeans.iterator(); while (it.hasNext()) { ObjectName on = (ObjectName) it.next(); System.out.println("New Resource: " + on); Resource resource = new Resource(); resource.setReference(on); resources.add(resource); } context.releaseService(this, this, ConnectionService.class); createHierarchy(resources); it = resources.iterator(); while (it.hasNext()) { add(it.next()); } } catch (Exception e) { System.out.println("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); e.printStackTrace(); } } } /** Description of the Method */ public void disconnect() { } /** * Getter for the count attribute * * @return The value */ public int getCount() { return count; } /** * Getter for the defaultDomain attribute * * @return The value */ public String getDefaultDomain() { return defaultDomain; } /** * Getter for the ejbName attribute * * @return The value */ public String getEJBName() { return ejbName; } /** * Gets the factory attribute of the Server object * * @return The factory value */ public String getFactory() { return this.factory; } /** * Gets the packages attribute of the Server object * * @return The packages value */ public String getPackages() { return this.pkgs; } /** * Gets the url attribute of the Server object * * @return The url value */ public String getURL() { return this.url; } /** * Setter for the ejbName attribute * * @param ejbName The new value */ public void setEJBName(String ejbName) { this.ejbName = ejbName; } /** * Sets the factory attribute of the Server object * * @param factory The new factory value */ public void setFactory(String factory) { this.factory = factory; } /** * Sets the packages attribute of the Server object * * @param pkgs The new packages value */ public void setPackages(String pkgs) { this.pkgs = pkgs; } /** * Sets the url attribute of the Server object * * @param url The new url value */ public void setURL(String url) { this.url = url; } /** * Setter for the mBeanCount attribute * * @param count The new value */ protected void setCount(int count) { int oldCount = this.count; this.count = count; firePropertyChange("count", new Integer(oldCount), new Integer(count)); } /** * Setter for the defaultDomain attribute * * @param defaultDomain The new value */ protected void setDefaultDomain(String defaultDomain) { String oldDomain = this.defaultDomain; this.defaultDomain = defaultDomain; firePropertyChange("defaultDomain", oldDomain, defaultDomain); } } |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:41
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv30601/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model Added Files: Server.java Log Message: Initial Import --- NEW FILE: Server.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model; // Standard Imports import java.util.Collection; import java.util.Iterator; import java.util.Properties; import java.util.Vector; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NameClassPair; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.NotContextException; // Other Imports import net.sourceforge.ejtools.jndibrowser.model.ejb.EJBHomeProxy; import net.sourceforge.ejtools.jndibrowser.model.jms.ConnectionFactoryProxy; import net.sourceforge.ejtools.jndibrowser.model.jms.QueueProxy; import net.sourceforge.ejtools.jndibrowser.model.jms.TopicProxy; import org.apache.log4j.Category; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 * @todo Javadoc to complete * @todo Add log4j logs */ public class Server extends JNDIContext { /** Description of the Field */ protected String factory = "org.jnp.interfaces.NamingContextFactory"; /** Description of the Field */ protected String initialContext = "/"; /** Description of the Field */ protected String pkgs = "org.jboss.naming:org.jnp.interfaces"; /** Description of the Field */ protected int searchType = Server.SHALLOW_SEARCH; /** Description of the Field */ protected String url = "localhost:1099"; /** Description of the Field */ public final static int DEEP_SEARCH = 0; /** Description of the Field */ public final static int SHALLOW_SEARCH = 1; /** Constructor for the JndiServer object */ public Server() { super(); this.name = "JNDI Server"; } /** * Gets the context attribute of the JNDIServer object * * @return The context value */ public String getContext() { return this.initialContext; } /** * Gets the provider attribute of the JndiServer object * * @return The provider value */ public String getFactory() { return this.factory; } /** * Gets the packages attribute of the JndiServer object * * @return The packages value */ public String getPackages() { return this.pkgs; } /** * Getter for the searchType attribute * * @return The value */ public int getSearchType() { return searchType; } /** * Gets the types attribute of the Server object * * @return The types value */ public String[] getTypes() { return new String[]{"aze", "qsd", "wxc"}; } /** * Gets the url attribute of the JndiServer object * * @return The url value */ public String getUrl() { return this.url; } /** Description of the Method */ public void refresh() { Iterator iterator = iterator(); while (iterator.hasNext()) { remove(iterator.next()); } try { Properties props = new Properties(); // To change props.put("java.naming.factory.initial", this.getFactory()); // To change props.put("java.naming.factory.url.pkgs", this.getPackages()); props.put(Context.PROVIDER_URL, this.getUrl()); InitialContext context = new InitialContext(props); Vector content = new Vector(); this.iterateContext(context, this.getContext(), content); Iterator it = content.iterator(); while (it.hasNext()) { add(it.next()); } } catch (Exception e) { System.err.println("Exception " + e.getMessage()); } } /** * Sets the context attribute of the JNDIServer object * * @param context The new context value */ public void setContext(String context) { this.initialContext = context; } /** * Sets the provider attribute of the JndiServer object * * @param factory The new factory value */ public void setFactory(String factory) { this.factory = factory; } /** * Sets the packages attribute of the JndiServer object * * @param pkgs The new packages value */ public void setPackages(String pkgs) { this.pkgs = pkgs; } /** * Setter for the searchType attribute * * @param searchType The new value */ public void setSearchType(int searchType) { this.searchType = searchType; } /** * Sets the url attribute of the JndiServer object * * @param url The new url value */ public void setUrl(String url) { this.url = url; } /** * Gets the context attribute of the JndiServer object * * @param context Description of Parameter * @param s Description of Parameter * @return The context value * @exception NamingException Description of Exception */ private boolean isContext(Context context, String s) throws NamingException { try { context.list(s); } catch (NotContextException notcontextexception) { return false; } return true; } /** * Description of the Method * * @param context Description of Parameter * @param s Description of Parameter * @param node Description of Parameter * @return Description of the Returned Value */ private boolean iterateContext(Context context, String s, Collection node) { try { for (NamingEnumeration namingenumeration = context.list(s); namingenumeration.hasMore(); ) { NameClassPair nc = (NameClassPair) namingenumeration.next(); if (isContext(context, nc.getName())) { Context context1 = (Context) context.lookup(nc.getName()); String s1 = context1.composeName(nc.getName(), s); JNDIContext newNode = new JNDIContext(); newNode.name = nc.getName(); newNode.className = nc.getClassName(); node.add(newNode); iterateContext(context1, s1, newNode); } else { JNDIContext newNode; newNode = new JNDIEntry(); newNode.name = nc.getName(); newNode.className = nc.getClassName(); if (this.searchType == Server.DEEP_SEARCH) { try { System.out.println("Name :" + nc.getName()); System.out.println("ClassName :" + nc.getClassName()); Object o = null; try { o = context.lookup(nc.getName()); } catch (Exception e1) { } try { newNode = new EJBHomeProxy(o); newNode.name = nc.getName(); } catch (Exception e1) { } try { newNode = new QueueProxy(o); newNode.name = nc.getName(); newNode.className = nc.getClassName(); } catch (Exception e2) { } try { newNode = new TopicProxy(o); newNode.name = nc.getName(); newNode.className = nc.getClassName(); } catch (Exception e3) { } try { newNode = new ConnectionFactoryProxy(o); newNode.name = nc.getName(); newNode.className = nc.getClassName(); } catch (Exception e4) { } } catch (Exception e1) { } } node.add(newNode); } } } catch (Exception namingexception) { System.err.println("iterateContext Exception " + namingexception.getMessage()); return false; } return true; } } |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:40
|
Update of /cvsroot/ejtools/applications/management/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv30601/management/src/etc/beaninfo Added Files: Server.xml Log Message: Initial Import --- NEW FILE: Server.xml --- <bean class="net.sourceforge.ejtools.management.model.Server" displayname="JSR77 Server" iconcolor16="/toolbarButtonGraphics/development/Server16.gif" iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> <property name="defaultDomain" class="java.lang.String" displayname="Default Domain"/> <property name="count" class="int" displayname="MBean number"/> <property name="factory" class="java.lang.String" displayname="Factory"/> <property name="packages" class="java.lang.String" displayname="Packages"/> <property name="uRL" class="java.lang.String" displayname="URL"/> <property name="eJBName" class="java.lang.String" displayname="EJB Adaptor"/> <method name="connect" displayname="Connect"> </method> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:38
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo In directory usw-pr-cvs1:/tmp/cvs-serv30601/jndi.browser/src/etc/beaninfo Added Files: Server.xml Log Message: Initial Import --- NEW FILE: Server.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.Server" displayname="JNDI Server" iconcolor16="/toolbarButtonGraphics/development/Server16.gif" iconcolor32="/toolbarButtonGraphics/development/Server24.gif"> <property name="factory" class="java.lang.String" displayname="Factory"/> <property name="packages" class="java.lang.String" displayname="Packages"/> <property name="url" class="java.lang.String" displayname="URL"/> <property name="context" class="java.lang.String" displayname="Initial Context"/> <property name="types" class="java.lang.String" displayname="Types"/> <property name="searchType" class="int" displayname="Browsing" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.SearchTypeEditor"/> <method name="refresh" displayname="Refresh"> </method> </bean> |
From: Laurent E. <let...@us...> - 2002-04-22 17:59:24
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv1308/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Added Files: SplashWindow.java Log Message: Initial Import --- NEW FILE: SplashWindow.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser; // Standard Imports import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JProgressBar; import javax.swing.JWindow; import javax.swing.SwingUtilities; /** * Description of the Class * * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class SplashWindow extends JWindow { /** Description of the Field */ protected JPanel panel = null; /** Description of the Field */ protected JLabel message = null; /** Description of the Field */ protected JProgressBar progressBar = null; /** Description of the Field */ protected int length = 0; /** *Constructor for the SplashWindow object * * @param message Description of Parameter * @param length Description of Parameter */ public SplashWindow(String message, int length) { this.length = length; this.message = new JLabel(message); this.createPanel(); this.setContentPane(panel); this.pack(); Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(screen.width / 2 - this.getSize().width / 2, screen.height / 2 - this.getSize().height / 2); } /** * Description of the Method * * @param message Description of Parameter */ public void progress(String message) { this.message.setText(message); int value = this.progressBar.getValue(); value++; this.progressBar.setValue(value); SwingUtilities.invokeLater( new Runnable() { public void run() { repaint(); } }); } /** Description of the Method */ protected void createPanel() { panel = new JPanel(new BorderLayout()); // North part panel.add("North", new JLabel(new ImageIcon(getClass().getResource("/images/logo.png")))); // Center part panel.add("Center", message); // South part progressBar = new JProgressBar(0, this.length); progressBar.setValue(0); progressBar.setStringPainted(false); progressBar.setBorderPainted(false); panel.add("South", progressBar); } } |