ejtools-cvs Mailing List for EJTools (Page 106)
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:03:04
|
Update of /cvsroot/ejtools/applications/management In directory usw-pr-cvs1:/tmp/cvs-serv29529/management Added Files: lib.properties Log Message: Initial Import --- NEW FILE: lib.properties --- ${apache.log4j.root}/*.jar ${dreambean.awt.root}/*.jar ${ejtools.adwt.root}/*.jar ${ejtools.common.root}/*.jar ${ejtools.icons.root}/*.jar ${sun.j2ee.root}/*.jar ${sun.jaxp.root}/*.jar #${sun.jmx.root}/*.jar ${sun.jndi.root}/*.jar ${sun.swing.root}/*.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:04
|
Update of /cvsroot/ejtools/applications/management/src/conf In directory usw-pr-cvs1:/tmp/cvs-serv29529/management/src/conf Added Files: log4j.properties Log Message: Initial Import --- NEW FILE: log4j.properties --- # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=debug, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=debug.log log4j.appender.R.MaxFileSize=100KB # Keep one backup file log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:03
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv29719/jmx.browser/src/etc Added Files: logo.svg Log Message: Initial Import --- NEW FILE: logo.svg --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:03
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/resources/images In directory usw-pr-cvs1:/tmp/cvs-serv29719/jndi.browser/src/resources/images Added Files: logo.png Log Message: Initial Import --- NEW FILE: logo.png --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:03
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv29719/jndi.browser/src/etc Added Files: logo.svg Log Message: Initial Import --- NEW FILE: logo.svg --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:02
|
Update of /cvsroot/ejtools/applications/management/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv29719/management/src/etc Added Files: logo.svg Log Message: Initial Import --- NEW FILE: logo.svg --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:02
|
Update of /cvsroot/ejtools/applications/management/src/resources/images In directory usw-pr-cvs1:/tmp/cvs-serv29719/management/src/resources/images Added Files: logo.png Log Message: Initial Import --- NEW FILE: logo.png --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:03:01
|
Update of /cvsroot/ejtools/applications/management/src/resources In directory usw-pr-cvs1:/tmp/cvs-serv29379/management/src/resources Added Files: jndi.properties Log Message: Initial Import --- NEW FILE: jndi.properties --- # JNDI Properties java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=localhost:1099 |
From: Laurent E. <let...@us...> - 2002-04-22 18:02:58
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv29379/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Added Files: JNDIBrowser.java Log Message: Initial Import --- NEW FILE: JNDIBrowser.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.beans.beancontext.BeanContextServicesSupport; import java.util.ResourceBundle; import java.util.Vector; import javax.swing.ImageIcon; // Other Imports import com.dreambean.awt.BeanContextPanel; import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; import net.sourceforge.ejtools.awt.action.file.ExitAction; import net.sourceforge.ejtools.awt.action.file.NewAction; import net.sourceforge.ejtools.awt.action.file.OpenAction; import net.sourceforge.ejtools.awt.action.file.SaveAction; import net.sourceforge.ejtools.awt.action.file.SaveAsAction; import net.sourceforge.ejtools.awt.services.AboutServiceProvider; import net.sourceforge.ejtools.awt.services.FrameServiceProvider; import net.sourceforge.ejtools.awt.services.MenuBarServiceProvider; import net.sourceforge.ejtools.awt.services.StatusBarService; import net.sourceforge.ejtools.awt.services.StatusBarServiceProvider; import net.sourceforge.ejtools.awt.services.ToolBarServiceProvider; import net.sourceforge.ejtools.jndibrowser.model.Server; import net.sourceforge.ejtools.jndibrowser.model.jms.ConnectionService; import net.sourceforge.ejtools.jndibrowser.model.jms.ConnectionServiceProvider; import org.apache.log4j.Category; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 * @todo Javadoc to complete * @todo Add log4j logs * @todo I18N to complete * @todo Clean services used */ public class JNDIBrowser extends BeanContextServicesSupport { /** Description of the Field */ private static Category cat = Category.getInstance(JNDIBrowser.class.getName()); /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** Description of the Field */ private static Vector factories; /** Description of the Field */ CommandAction action = null; /** Description of the Field */ AboutServiceProvider aboutService; /** Description of the Field */ ConnectionServiceProvider connectionService; /** Description of the Field */ FrameServiceProvider frameService; /** Description of the Field */ MenuBarServiceProvider menuBarService; /** Description of the Field */ StatusBarServiceProvider statusBarService; /** Description of the Field */ ToolBarServiceProvider toolBarService; /** Constructor for the EJX object */ public JNDIBrowser() { SplashWindow splash = new SplashWindow("JNDIBrowser starting...", 14); splash.show(); cat.debug("JNDIBrowser starting..."); frameService = new FrameServiceProvider("SDI"); splash.progress("Creating Frame Service..."); aboutService = new AboutServiceProvider(new AboutDialog()); splash.progress("Creating About Service..."); menuBarService = new MenuBarServiceProvider(); splash.progress("Creating MenuBar Service..."); toolBarService = new ToolBarServiceProvider(); splash.progress("Creating ToolBar Service..."); statusBarService = new StatusBarServiceProvider(); splash.progress("Creating StatusBar Service..."); connectionService = new ConnectionServiceProvider(); splash.progress("Creating Connection Service..."); try { add(menuBarService); splash.progress("Adding MenuBar Service..."); // add(toolBarService); // add(statusBarService); add(connectionService); splash.progress("Adding Connection Service..."); frameService.setTitle(res.getString("title.application")); final Server server = new Server(); add(server); frameService.setContent(new BeanContextPanel(server)); splash.progress("Adding Server Entry Point..."); add(new ExitAction( new Command() { public void execute() { System.exit(0); } } )); splash.progress("Adding Exit Action..."); add(new SelectFactoryAction("action.options.selectQueueFactory", new Command() { public void execute() { connectionService.selectFactory(ConnectionService.QUEUE_CONNECTION_FACTORY); } } )); splash.progress("Adding Action..."); add(new SelectFactoryAction("action.options.selectTopicFactory", new Command() { public void execute() { connectionService.selectFactory(ConnectionService.TOPIC_CONNECTION_FACTORY); } } )); splash.progress("Adding Action..."); add(frameService); splash.progress("Adding Frame Service..."); add(aboutService); splash.progress("Adding About Service..."); splash.dispose(); } catch (RuntimeException e) { cat.warn("Error occured " + e.getMessage()); throw e; } } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:02:57
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv29212/jndi.browser/src/etc Added Files: jndi.browser.mf Log Message: Initial Import --- NEW FILE: jndi.browser.mf --- Class-Path: . |
From: Laurent E. <let...@us...> - 2002-04-22 18:02:56
|
Update of /cvsroot/ejtools/applications/jndi.browser In directory usw-pr-cvs1:/tmp/cvs-serv29529/jndi.browser Added Files: lib.properties Log Message: Initial Import --- NEW FILE: lib.properties --- ${apache.log4j.root}/*.jar ${dreambean.awt.root}/*.jar ${ejtools.adwt.root}/*.jar ${ejtools.common.root}/*.jar ${ejtools.icons.root}/*.jar ${sun.j2ee.root}/*.jar ${sun.jmx.root}/*.jar ${sun.jndi.root}/*.jar ${sun.swing.root}/*.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:02:55
|
Update of /cvsroot/ejtools/applications/jmx.browser In directory usw-pr-cvs1:/tmp/cvs-serv29529/jmx.browser Added Files: lib.properties Log Message: Initial Import --- NEW FILE: lib.properties --- ${apache.log4j.root}/*.jar ${dreambean.awt.root}/*.jar ${ejtools.adwt.root}/*.jar ${ejtools.common.root}/*.jar ${ejtools.icons.root}/*.jar ${jboss.client.root}/*.jar ${jboss.jmx.root}/*.jar ${sun.j2ee.root}/*.jar ${sun.jaxp.root}/*.jar #${sun.jmx.root}/*.jar ${sun.jndi.root}/*.jar ${sun.swing.root}/*.jar |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:40
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser In directory usw-pr-cvs1:/tmp/cvs-serv29841/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser Added Files: Main.java Log Message: Initial Import --- NEW FILE: Main.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jmxbrowser; import java.io.File; import java.net.URL; import java.net.URLClassLoader; import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedExceptionAction; import java.util.LinkedList; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 */ public class Main { /** * The main program for the Main class * * @param args The command line arguments * @exception Exception Description of Exception */ public static void main(String[] args) throws Exception { File pluginDir = new File("../lib/ext"); LinkedList list = new LinkedList(); File[] plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } pluginDir = new File("../lib"); plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); Thread.currentThread().setContextClassLoader(new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader())); System.setSecurityManager( new SecurityManager() { public void checkPermission(Permission p) { } public void checkPermission(Permission perm, Object context) { } }); AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { java.beans.Beans.instantiate(Thread.currentThread().getContextClassLoader(), "net.sourceforge.ejtools.jmxbrowser.JMXBrowser"); return null; } }); } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:40
|
Update of /cvsroot/ejtools/applications/management/src/etc In directory usw-pr-cvs1:/tmp/cvs-serv29841/management/src/etc Added Files: management.mf Log Message: Initial Import --- NEW FILE: management.mf --- Class-Path: . |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:37
|
Update of /cvsroot/ejtools/applications/management/src/main/net/sourceforge/ejtools/management In directory usw-pr-cvs1:/tmp/cvs-serv29841/management/src/main/net/sourceforge/ejtools/management Added Files: Main.java ManagementBrowser.java Log Message: Initial Import --- NEW FILE: Main.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.management; import java.io.File; import java.net.URL; import java.net.URLClassLoader; import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedExceptionAction; import java.util.LinkedList; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 */ public class Main { /** * The main program for the Main class * * @param args The command line arguments * @exception Exception Description of Exception */ public static void main(String[] args) throws Exception { File pluginDir = new File("../lib/ext"); LinkedList list = new LinkedList(); File[] plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } pluginDir = new File("../lib"); plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); Thread.currentThread().setContextClassLoader(new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader())); System.setSecurityManager( new SecurityManager() { public void checkPermission(Permission p) { } public void checkPermission(Permission perm, Object context) { } }); AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { java.beans.Beans.instantiate(Thread.currentThread().getContextClassLoader(), "net.sourceforge.ejtools.management.ManagementBrowser"); return null; } }); } } --- NEW FILE: ManagementBrowser.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.management; import java.beans.beancontext.BeanContextServicesSupport; import java.util.Vector; import javax.swing.ImageIcon; import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.CommandAction; import net.sourceforge.ejtools.awt.action.file.ExitAction; import net.sourceforge.ejtools.awt.action.file.NewAction; import net.sourceforge.ejtools.awt.action.file.OpenAction; import net.sourceforge.ejtools.awt.action.file.SaveAction; import net.sourceforge.ejtools.awt.action.file.SaveAsAction; import net.sourceforge.ejtools.awt.services.AboutServiceProvider; import net.sourceforge.ejtools.awt.services.FrameServiceProvider; import net.sourceforge.ejtools.awt.services.MenuBarServiceProvider; import net.sourceforge.ejtools.awt.services.StatusBarService; import net.sourceforge.ejtools.awt.services.StatusBarServiceProvider; import net.sourceforge.ejtools.awt.services.ToolBarServiceProvider; import net.sourceforge.ejtools.awt.BeanContextPanel; import net.sourceforge.ejtools.management.model.ConnectionServiceProvider; import net.sourceforge.ejtools.management.model.Server; import org.apache.log4j.Category; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 */ public class ManagementBrowser extends BeanContextServicesSupport { /** Description of the Field */ protected ConnectionServiceProvider connectionProvider; AboutServiceProvider aboutService; CommandAction action = null; FrameServiceProvider frameService; MenuBarServiceProvider menuBarService; StatusBarServiceProvider statusBarService; ToolBarServiceProvider toolBarService; private static Category cat = Category.getInstance(ManagementBrowser.class.getName()); private static Vector factories; private BeanContextPanel bcPanel; /** Constructor for the EJX object */ public ManagementBrowser() { cat.debug("ManagementBrowser starting..."); connectionProvider = new ConnectionServiceProvider(); frameService = new FrameServiceProvider("SDI"); aboutService = new AboutServiceProvider(new AboutDialog()); menuBarService = new MenuBarServiceProvider(); toolBarService = new ToolBarServiceProvider(); statusBarService = new StatusBarServiceProvider(); try { add(menuBarService); // add(toolBarService); // add(statusBarService); /* * statusBarService.addZone("status"); * statusBarService.setContent("status", "Ready"); * statusBarService.addZone("hour", StatusBarService.RIGHT); * statusBarService.setContent("hour", "10:25:32", new ImageIcon(getClass().getResource("/images/container.gif"))); */ add(connectionProvider); Server server = new Server(); add(server); bcPanel = new BeanContextPanel(server); frameService.setContent(bcPanel); add(new ExitAction( new Command() { public void execute() { System.exit(0); } } )); add(frameService); add(aboutService); } catch (RuntimeException e) { cat.warn("Error occured " + e.getMessage()); e.printStackTrace(); throw e; } } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:37
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv29841/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Added Files: Main.java Log Message: Initial Import --- NEW FILE: Main.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.io.File; import java.net.URL; import java.net.URLClassLoader; import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedExceptionAction; import java.util.LinkedList; /** * Description of the Class * * @author letiembl * @created 21 mars 2002 * @todo Javadoc to complete * @todo Add log4j logs */ public class Main { /** * The main program for the Main class * * @param args The command line arguments * @exception Exception Description of Exception */ public static void main(String[] args) throws Exception { File pluginDir = new File("../lib/ext"); LinkedList list = new LinkedList(); File[] plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } pluginDir = new File("../lib"); plugins = pluginDir.listFiles(); for (int i = 0; i < plugins.length; i++) { System.out.println(plugins[i].toURL()); list.add(plugins[i].toURL()); } URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); Thread.currentThread().setContextClassLoader(new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader())); System.setSecurityManager( new SecurityManager() { public void checkPermission(Permission p) { } public void checkPermission(Permission perm, Object context) { } }); AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { java.beans.Beans.instantiate(Thread.currentThread().getContextClassLoader(), "net.sourceforge.ejtools.jndibrowser.JNDIBrowser"); return null; } }); } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:34
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/resources/images/jms In directory usw-pr-cvs1:/tmp/cvs-serv29841/jndi.browser/src/resources/images/jms Added Files: MapMessage16.gif Message16.gif Log Message: Initial Import --- NEW FILE: MapMessage16.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Message16.gif --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:34
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv29989/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Added Files: MessageProxy.java Log Message: Initial Import --- NEW FILE: MessageProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; // Standard Imports import java.awt.Component; import java.util.Date; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.TextMessage; // Other Imports import net.sourceforge.ejtools.jndibrowser.model.JNDIEntry; 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 MessageProxy extends JNDIEntry { /** Description of the Field */ protected Message message = null; /** * Constructor for the MessageProxy object * * @param name Description of Parameter * @param message Description of Parameter */ public MessageProxy(String name, Message message) { this.name = name; this.message = message; } /** * Description of the Method * * @param name Description of Parameter * @param message Description of Parameter * @return Description of the Returned Value */ public static MessageProxy createMessageProxy(String name, Message message) { if (TextMessage.class.isAssignableFrom(message.getClass())) { return new TextMessageProxy(name, message); } return new MessageProxy(name, message); } /** * Gets the expiration attribute of the MessageProxy object * * @return The expiration value * @exception JMSException Description of Exception */ public Date getExpiration() throws JMSException { return new Date(message.getJMSExpiration()); } /** * Gets the messageId attribute of the MessageProxy object * * @return The messageId value * @exception JMSException Description of Exception */ public String getMessageId() throws JMSException { return message.getJMSMessageID(); } /** * Gets the priority attribute of the MessageProxy object * * @return The priority value * @exception JMSException Description of Exception */ public int getPriority() throws JMSException { return message.getJMSPriority(); } /** * Gets the redelivered attribute of the MessageProxy object * * @return The redelivered value * @exception JMSException Description of Exception */ public boolean isRedelivered() throws JMSException { return message.getJMSRedelivered(); } /** * Gets the replyTo attribute of the MessageProxy object * * @return The replyTo value * @exception JMSException Description of Exception */ public Destination getReplyTo() throws JMSException { return message.getJMSReplyTo(); } /** * Gets the timestamp attribute of the MessageProxy object * * @return The timestamp value * @exception JMSException Description of Exception */ public Date getTimestamp() throws JMSException { return new Date(message.getJMSTimestamp()); } /** * Gets the type attribute of the MessageProxy object * * @return The type value * @exception JMSException Description of Exception */ public String getType() throws JMSException { return message.getJMSType(); } /** * Gets the destination attribute of the MessageProxy object * * @return The destination value * @exception JMSException Description of Exception */ public Destination getDestination() throws JMSException { return message.getJMSDestination(); } /** * Gets the deliveryMode attribute of the MessageProxy object * * @return The deliveryMode value * @exception JMSException Description of Exception */ public int getDeliveryMode() throws JMSException { return message.getJMSDeliveryMode(); } /** * Gets the correlationId attribute of the MessageProxy object * * @return The correlationId value * @exception JMSException Description of Exception */ public String getCorrelationId() throws JMSException { return message.getJMSCorrelationID(); } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:31
|
Update of /cvsroot/ejtools/applications/jmx.browser In directory usw-pr-cvs1:/tmp/cvs-serv29989/jmx.browser Added Files: module.properties Log Message: Initial Import --- NEW FILE: module.properties --- version.major=1 version.minor=0 version.revision=0 version.tag=alpha module.name=jmx.browser module.display.name=JMX Browser module.archive.name=ejtools.jmx.browser module.package=net.sourceforge.ejtools.jmxbrowser.* module.starter=net/sourceforge/ejtools/jmxbrowser/Main module.javadoc.title=EJTools - JMX Browser |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:31
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv29989/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/model Added Files: Node.java Log Message: Initial Import --- NEW FILE: Node.java --- package net.sourceforge.ejtools.jmxbrowser.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.util.*; import javax.naming.*; import javax.swing.*; import net.sourceforge.ejtools.awt.*; import net.sourceforge.ejtools.xml.*; import net.sourceforge.ejtools.util.*; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public abstract class Node extends BeanContextServicesSupport implements BeanContextChildComponentProxy,XmlIconable { /** Description of the Field */ protected transient Customizer c = null; /** Description of the Field */ protected String className = "<undefined>"; /** Description of the Field */ protected String name = "<undefined>"; /** Constructor for the Node object */ public Node() { super(); } public String getSmallIcon(){ return null; } public String getBigIcon(){ return null; } /** * Getter for the className attribute * * @return The value */ public String getClassName() { return this.className; } /** * Gets the component attribute of the Node object * * @return The component value */ public Component getComponent() { if (c == null) { c = new GenericCustomizer(true, this); } return (Component) c; } /** * Gets the name attribute of the Node object * * @return The name value */ public String getName() { return this.name; } /** * Getter for the service attribute * * @param child Description of Parameter * @param requestor Description of Parameter * @param serviceClass Description of Parameter * @param serviceSelector Description of Parameter * @param bcsrl Description of Parameter * @return The value * @exception TooManyListenersException Description of Exception */ public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException { Object service = super.getService(child, requestor, serviceClass, serviceSelector, bcsrl); // If the service requested is not provided by this BeanContext, try the parent if (service == null) { BeanContextServices bcs = null; try { bcs = (BeanContextServices) getBeanContext(); } catch (ClassCastException cce) { return null; } return bcs.getService(this, requestor, serviceClass, serviceSelector, bcsrl); } return service; } /** * Description of the Method * * @return Description of the Returned Value */ public Iterator iterator() { return Sort.sortByClassAndName(super.iterator()); } /** * Description of the Method * * @return Description of the Returned Value */ public String toString() { return (name == null || "".equals(name)) ? "Default" : name; } /** * Setter for the name attribute * * @param name The new value */ protected void setName(String name) { this.name = name; } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:28
|
Update of /cvsroot/ejtools/applications/management In directory usw-pr-cvs1:/tmp/cvs-serv29989/management Added Files: module.properties Log Message: Initial Import --- NEW FILE: module.properties --- version.major=1 version.minor=0 version.revision=0 version.tag=alpha module.name=management module.display.name=JSR77 Management module.archive.name=ejtools.jndi.browser module.archive.name=ejtools.management module.package=net.sourceforge.ejtools.management.* module.starter=net/sourceforge/ejtools/management/Main module.javadoc.title=EJTools - Management Console |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:28
|
Update of /cvsroot/ejtools/applications/management/src/main/net/sourceforge/ejtools/management/model In directory usw-pr-cvs1:/tmp/cvs-serv29989/management/src/main/net/sourceforge/ejtools/management/model Added Files: Node.java Log Message: Initial Import --- NEW FILE: Node.java --- package net.sourceforge.ejtools.management.model; import java.awt.*; import java.beans.*; import java.beans.beancontext.*; import java.util.*; import javax.naming.*; import javax.swing.*; import net.sourceforge.ejtools.awt.GenericCustomizer; import net.sourceforge.ejtools.util.*; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 */ public abstract class Node extends BeanContextServicesSupport implements BeanContextChildComponentProxy { /** Description of the Field */ protected transient Customizer c = null; /** Description of the Field */ protected String name = "undefined"; /** Constructor for the Node object */ public Node() { super(); } /** * Gets the component attribute of the Node object * * @return The component value */ public Component getComponent() { if (c == null) { c = new GenericCustomizer(true, this); } return (Component) c; } /** * Gets the name attribute of the Node object * * @return The name value */ public String getName() { return this.name; } /** * Getter for the service attribute * * @param child Description of Parameter * @param requestor Description of Parameter * @param serviceClass Description of Parameter * @param serviceSelector Description of Parameter * @param bcsrl Description of Parameter * @return The value * @exception TooManyListenersException Description of Exception */ public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException { Object service = super.getService(child, requestor, serviceClass, serviceSelector, bcsrl); // If the service requested is not provided by this BeanContext, try the parent if (service == null) { BeanContextServices bcs = null; try { bcs = (BeanContextServices) getBeanContext(); } catch (ClassCastException cce) { return null; } return bcs.getService(this, requestor, serviceClass, serviceSelector, bcsrl); } return service; } /** * Description of the Method * * @return Description of the Returned Value */ public Iterator iterator() { return Sort.sortByClassAndName(super.iterator()); } /** * Description of the Method * * @return Description of the Returned Value */ public String toString() { return (name == null || "".equals(name)) ? "Default" : name; } /** * Description of the Method * * @param collection Description of Parameter */ protected void createHierarchy(Collection collection) { Vector copy = new Vector(collection); // Create the hierachy for (int i = 0; i < copy.size(); i++) { Resource resource = (Resource) copy.elementAt(i); String search = resource.getJ2EEType() + "=" + resource.getName(); System.out.println("Filter with " + search + " over " + copy.size()); for (int j = 0; j < copy.size(); j++) { if (i != j) { Resource other = (Resource) copy.elementAt(j); String canonical = other.getCanonicalName(); if (canonical.indexOf(search) >= 0) { //copy.remove(other); collection.remove(other); resource.add(other); } } } } // Recurse through all children which have children Iterator iterator = collection.iterator(); while (iterator.hasNext()) { Resource resource = (Resource) iterator.next(); if (!resource.isEmpty()) { resource.createHierarchy(resource); } } } /** * Setter for the name attribute * * @param name The new value */ protected void setName(String name) { this.name = name; } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:24
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv30166/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Added Files: QueueProxy.java Log Message: Initial Import --- NEW FILE: QueueProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.jms; // Standard Imports import java.beans.beancontext.BeanContextServices; import java.util.Enumeration; import java.util.Iterator; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Queue; import javax.jms.QueueBrowser; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory; import javax.jms.QueueSender; import javax.jms.QueueSession; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.rmi.PortableRemoteObject; // Other Imports import net.sourceforge.ejtools.jndibrowser.model.JNDIEntry; import org.apache.log4j.Category; /** * Description of the Class * * @author letiembl * @created 13 décembre 2001 * @todo Javadoc to complete * @todo Add log4j logs * @todo Message sending to transform * @todo Other type of message to create * @todo More parameters for creation of message */ public class QueueProxy extends JNDIEntry { /** Description of the Field */ private Queue queue = null; /** Description of the Field */ private int count = 0; /** * Constructor for the JMSQueue object * * @param o Description of Parameter * @exception Exception Description of Exception */ public QueueProxy(Object o) throws Exception { this.queue = (Queue) PortableRemoteObject.narrow(o, Queue.class); } /** * Gets the count attribute of the JMSQueue object * * @return The count value */ public int getCount() { return count; } /** * Description of the Method * * @return Description of the Returned Value */ public String toString() { return name == null ? "Undefined" : (name + " (" + count + ")"); } /** Description of the Method */ public void createMessage() { Context jndiContext = null; QueueConnectionFactory queueConnectionFactory = null; QueueConnection queueConnection = null; QueueSession queueSession = null; QueueSender queueSender = null; Message message = null; // TO MODIFY try { jndiContext = new InitialContext(); queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("ConnectionFactory"); } catch (NamingException e) { System.out.println("JNDI lookup failed: " + e.toString()); } // TO MODIFY try { queueConnection = queueConnectionFactory.createQueueConnection(); queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueSender = queueSession.createSender(queue); message = queueSession.createMessage(); queueSender.send(message); queueSession.close(); } catch (JMSException e) { System.out.println("Exception occurred: " + e.toString()); } finally { if (queueConnection != null) { try { queueConnection.close(); } catch (JMSException e) { } } } this.browse(); } /** * Description of the Method * * @param text Description of Parameter */ public void createTextMessage(String text) { // Get a connection on the default factory QueueConnection queueConnection = getQueueConnection(); if (queueConnection != null) { try { TextMessage message = null; QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QueueSender queueSender = queueSession.createSender(queue); message = queueSession.createTextMessage(); message.setText(text); queueSender.send(message); queueSession.close(); } catch (JMSException e) { System.out.println("Exception occurred: " + e.toString()); } finally { if (queueConnection != null) { try { queueConnection.close(); } catch (JMSException e) { } } } // Browse the content this.browse(); } } /** * Description of the Method * * @todo Add Log4j log */ public void browse() { // Clean the Queue Iterator iterator = iterator(); while (iterator.hasNext()) { remove(iterator.next()); } // Get a connection on the default factory QueueConnection queueConnection = getQueueConnection(); if (queueConnection != null) { try { int oldCount = count; Message message = null; QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QueueBrowser queueBrowser = queueSession.createBrowser(queue); count = 0; Enumeration enum = queueBrowser.getEnumeration(); System.out.println("Enumeration " + enum); while (enum.hasMoreElements()) { message = (Message) enum.nextElement(); MessageProxy newMessage = MessageProxy.createMessageProxy("Message " + count, message); count++; System.out.println("Count is " + count); add(newMessage); } firePropertyChange("count", new Integer(oldCount), new Integer(count)); queueBrowser.close(); queueSession.close(); } catch (Exception e) { System.out.println("Exception occurred: " + e.toString()); } finally { if (queueConnection != null) { try { queueConnection.close(); } catch (JMSException e) { } } } } } /** * Getter for the queueConnection attribute * * @return The value * @todo Add Log4j log */ protected QueueConnection getQueueConnection() { QueueConnection queueConnection = null; QueueConnectionFactory queueConnectionFactory = getQueueConnectionFactory(); if (queueConnectionFactory != null) { try { queueConnection = queueConnectionFactory.createQueueConnection(); } catch (JMSException e) { System.out.println("No Connection: " + e.toString()); } } return queueConnection; } /** * Getter for the queueConnectionFactory attribute * * @return The value * @todo Add Log4j log */ protected QueueConnectionFactory getQueueConnectionFactory() { QueueConnectionFactory queueConnectionFactory = null; try { BeanContextServices context = (BeanContextServices) getBeanContext(); ConnectionService service = (ConnectionService) context.getService(this, this, ConnectionService.class, this, this); queueConnectionFactory = service.getDefaultQueueConnectionFactory(); } catch (Exception e) { System.out.println("No Factory: " + e.toString()); } return queueConnectionFactory; } } |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:23
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/resources/images/jms In directory usw-pr-cvs1:/tmp/cvs-serv30166/jndi.browser/src/resources/images/jms Added Files: ObjectMessage16.gif Queue16.gif Log Message: Initial Import --- NEW FILE: ObjectMessage16.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Queue16.gif --- (This appears to be a binary file; contents omitted.) |
From: Laurent E. <let...@us...> - 2002-04-22 18:00:21
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc/beaninfo/jms In directory usw-pr-cvs1:/tmp/cvs-serv29989/jndi.browser/src/etc/beaninfo/jms Added Files: MessageProxy.xml Log Message: Initial Import --- NEW FILE: MessageProxy.xml --- <bean class="net.sourceforge.ejtools.jndibrowser.model.jms.MessageProxy" displayname="JMS Message" iconcolor16="/images/jms/Message16.gif" iconcolor32="/images/jms/Message16.gif"> <property name="correlationId" class="java.lang.String" displayname="Correlation Id"/> <property name="deliveryMode" class="int" displayname="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor"/> <property name="expiration" class="long" displayname="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="messageId" class="java.lang.String" displayname="Message Id"/> <property name="priority" class="int" displayname="Priority"/> <property name="redelivered" class="boolean" displayname="Is redelivered"/> <property name="timestamp" class="java.util.Date" displayname="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor"/> <property name="type" class="java.lang.String" displayname="Type"/> </bean> |