ejtools-cvs Mailing List for EJTools (Page 9)
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: <let...@us...> - 2003-11-27 01:39:51
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/state In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/main/org/ejtools/management/browser/state Added Files: WorkbenchState.java WorkbenchStoreVisitor.java Log Message: Address Todo #800902 Address Todo #755528 --- NEW FILE: WorkbenchState.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package org.ejtools.management.browser.state; import java.beans.beancontext.BeanContext; import java.io.File; import java.net.URL; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.ejtools.graph.frame.GraphInternalFrame; import org.ejtools.management.browser.Browser; import org.ejtools.management.browser.frame.ServerInternalFrame; import org.ejtools.management.browser.model.ManagedObject; import org.ejtools.management.browser.model.Server; import org.ejtools.management.browser.state.rules.GraphInternalFrameRule; import org.ejtools.management.browser.state.rules.ManagementGraphRule; import org.ejtools.management.browser.state.rules.ManagedObjectRule; import org.ejtools.management.browser.state.rules.ServerInternalFrameRule; import org.ejtools.management.browser.state.rules.ServerRule; import org.ejtools.util.service.ProfileRule; import org.ejtools.util.state.LoadHandler; import org.ejtools.util.state.StoreVisitor; import org.w3c.dom.Document; /** * @author Laurent Etiemble * @version $Revision: 1.1 $ * @created 3 juin 2003 */ public class WorkbenchState { /** Description of the Field */ private BeanContext context; /** Description of the Field */ private Document document; /** Description of the Field */ private URL workbenchURL; /** *Constructor for the FilePersistenceStore object * * @param context Description of the Parameter */ public WorkbenchState(BeanContext context) { this.context = context; } /** * Gets the workbenchFile attribute of the WorkbenchStore object * * @return The workbenchFile value */ public URL getWorkbenchURL() { return this.workbenchURL; } /** Description of the Method */ public void load() { // Check that the URL is not null andthat URL is a file if ((this.workbenchURL == null) && (!this.workbenchURL.getProtocol().equals("file"))) { return; } try { LoadHandler handler = new LoadHandler(); handler.getContext().put("CONTAINER", this.context); handler.addRule("/workbench/graph-frame", new GraphInternalFrameRule()); handler.addRule("/workbench/management-frame", new ServerInternalFrameRule()); handler.addRule("/workbench/management-frame/profile", new ProfileRule()); handler.addRule("/workbench/management-frame/profile/property", new ProfileRule.ProfilePropertyRule()); handler.addRule("/workbench/management-frame/management-server", new ServerRule()); handler.addRule("/workbench/management-frame/management-server/management-object", new ManagedObjectRule()); handler.addRule("/workbench/management-frame/management-server/management-object/management-graph", new ManagementGraphRule()); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); File file = new File(this.workbenchURL.getFile()); parser.parse(file, handler); } catch (Exception e) { e.printStackTrace(); } } /** * Sets the workbenchFile attribute of the WorkbenchStore object * * @param workbenchURL The new workbenchURL value */ public void setWorkbenchURL(URL workbenchURL) { this.workbenchURL = workbenchURL; } /** Description of the Method */ public void store() { // Check that the URL is not null andthat URL is a file if ((this.workbenchURL == null) && (!this.workbenchURL.getProtocol().equals("file"))) { return; } try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = dbFactory.newDocumentBuilder(); this.document = builder.newDocument(); StoreVisitor visitor = new WorkbenchStoreVisitor(this.document); visitor.registerForPersistence(Browser.class); visitor.registerForPersistence(ServerInternalFrame.class); visitor.registerForPersistence(GraphInternalFrame.class); visitor.registerForPersistence(Server.class); visitor.registerForPersistence(ManagedObject.class); visitor.persist(this.context); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); transformer.setOutputProperty("indent", "true"); Source source = new DOMSource(this.document); File file = new File(this.workbenchURL.getFile()); Result result = new StreamResult(file); transformer.transform(source, result); } catch (Exception e) { e.printStackTrace(); } } } --- NEW FILE: WorkbenchStoreVisitor.java --- /* * ianRR, is a new RR * * Distributable under LGPL license. * See terms at http://opensource.org/licenses/lgpl-license.php */ package org.ejtools.management.browser.state; import java.util.Iterator; import org.apache.log4j.Logger; import org.ejtools.beans.Sort; import org.ejtools.graph.frame.GraphInternalFrame; import org.ejtools.graph.service.GraphConsumer; import org.ejtools.graph.service.GraphProducer; import org.ejtools.management.browser.Browser; import org.ejtools.management.browser.frame.ServerInternalFrame; import org.ejtools.management.browser.model.ManagedObject; import org.ejtools.management.browser.model.Server; import org.ejtools.util.service.Profile; import org.ejtools.util.state.DefaultStoreVisitor; import org.w3c.dom.Document; import org.w3c.dom.Element; /** * @version $Revision: 1.1 $ * @author Laurent Etiemble * @created 3 juin 2003 */ public class WorkbenchStoreVisitor extends DefaultStoreVisitor { private Document document; private static Logger logger = Logger.getLogger(WorkbenchStoreVisitor.class); /** * Constructor for the WorkbenchStoreVisitor object * * @param document Description of the Parameter */ public WorkbenchStoreVisitor(Document document) { this.document = document; this.pushCurrentNode(this.document); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(ServerInternalFrame o) { logger.debug("ServerInternalFrame"); Element eFrame = this.document.createElement("management-frame"); eFrame.setAttribute("title", o.getTitle()); Element eProfile = this.document.createElement("profile"); eFrame.appendChild(eProfile); Profile profile = o.getProfile(); for (Iterator iterator = profile.keySet().iterator(); iterator.hasNext(); ) { String key = (String) iterator.next(); Element property = this.document.createElement("property"); property.setAttribute("key", key); property.appendChild(this.document.createTextNode(profile.getProperty(key))); eProfile.appendChild(property); } this.peekCurrentNode().appendChild(eFrame); this.pushCurrentNode(eFrame); this.persist(o.iterator()); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(GraphInternalFrame o) { logger.debug("GraphInternalFrame"); Element eFrame = this.document.createElement("graph-frame"); eFrame.setAttribute("name", o.getName()); eFrame.setAttribute("delay", String.valueOf(o.getDelay())); eFrame.setAttribute("scale", String.valueOf(o.getScale())); this.peekCurrentNode().appendChild(eFrame); this.pushCurrentNode(eFrame); this.persist(o.iterator()); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(Server o) { logger.debug("Server"); Element server = this.document.createElement("management-server"); server.setAttribute("name", o.getName()); server.setAttribute("connected", "" + o.isConnected()); this.peekCurrentNode().appendChild(server); this.pushCurrentNode(server); this.persist(o.iterator()); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(Browser o) { logger.debug("Browser"); Element workbench = this.document.createElement("workbench"); this.peekCurrentNode().appendChild(workbench); this.pushCurrentNode(workbench); this.persist(Sort.getChildrenByClass(o.iterator(), GraphInternalFrame.class)); this.persist(Sort.getChildrenByClass(o.iterator(), ServerInternalFrame.class)); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(ManagedObject o) { try { int g = o.getGraphProducers().size(); boolean notif = o.isRegisteredForNotifications(); if ((g > 0) || notif) { Element resource = this.document.createElement("management-object"); resource.setAttribute("objectName", o.getCanonicalName()); if (notif) { resource.setAttribute("listen", "true"); } if (g > 0) { GraphConsumer[] consumers = o.getGraphConsumers(); for (Iterator iterator = o.getGraphProducers().keySet().iterator(); iterator.hasNext(); ) { String attribute = (String) iterator.next(); GraphProducer producer = (GraphProducer) o.getGraphProducers().get(attribute); GraphConsumer consumer = null; for (int i = 0; i < consumers.length; i++) { GraphConsumer gc = consumers[i]; if (gc.containsGraphProducer(producer)) { consumer = gc; } } if (consumer != null) { Element graph = this.document.createElement("management-graph"); graph.setAttribute("attribute", attribute); graph.setAttribute("target", consumer.toString()); resource.appendChild(graph); } //else //{ // logger.warn("A graph producer is not linked to a graph consumer !!!"); //} } } this.peekCurrentNode().appendChild(resource); this.pushCurrentNode(resource); this.persist(o.iterator()); this.popCurrentNode(); } } catch (Exception e) { e.printStackTrace(); } } } |
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/main/org/ejtools/management/browser/frame Modified Files: NotificationsInternalFrame.java ResourceIndexer.java ResourceRenderer.java ServerInternalFrame.java Log Message: Address Todo #800902 Address Todo #755528 Index: NotificationsInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/NotificationsInternalFrame.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NotificationsInternalFrame.java 24 Feb 2003 22:35:20 -0000 1.2 --- NotificationsInternalFrame.java 27 Nov 2003 01:39:47 -0000 1.3 *************** *** 13,17 **** import javax.swing.JScrollPane; - import org.apache.log4j.Logger; import org.ejtools.adwt.service.BeanContextInternalFrame; import org.ejtools.management.browser.model.service.NotificationServiceProvider; --- 13,16 ---- *************** *** 21,25 **** * * @author Laurent Etiemble - * @created 5 septembre 2002 * @version $Revision$ */ --- 20,23 ---- *************** *** 28,33 **** /** Description of the Field */ protected NotificationServiceProvider provider = null; - /** Description of the Field */ - private static Logger logger = Logger.getLogger(NotificationsInternalFrame.class); /** Description of the Field */ private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); --- 26,29 ---- Index: ResourceIndexer.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ResourceIndexer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ResourceIndexer.java 24 Feb 2003 22:35:20 -0000 1.3 --- ResourceIndexer.java 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 12,16 **** /** * @author Laurent Etiemble - * @created 21 janvier 2003 * @version $Revision$ */ --- 12,15 ---- Index: ResourceRenderer.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ResourceRenderer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ResourceRenderer.java 8 Mar 2003 20:52:11 -0000 1.4 --- ResourceRenderer.java 27 Nov 2003 01:39:47 -0000 1.5 *************** *** 19,28 **** import org.apache.log4j.Logger; import org.ejtools.adwt.util.DefaultObjectRenderer; - import org.ejtools.adwt.util.ObjectWrapper; import org.ejtools.management.browser.model.ManagedObject; /** * @author Laurent Etiemble - * @created 21 janvier 2003 * @version $Revision$ */ --- 19,26 ---- *************** *** 41,50 **** * @return The icon value */ ! public Icon getIcon(ObjectWrapper o) { ! Object uo = o.getUserObject(); ! if (uo instanceof ManagedObject) { ! ManagedObject resource = (ManagedObject) uo; String type = resource.getJ2EEType(); Icon icon = (Icon) icons.get(type); --- 39,47 ---- * @return The icon value */ ! public Icon getIcon(Object o) { ! if (o instanceof ManagedObject) { ! ManagedObject resource = (ManagedObject) o; String type = resource.getJ2EEType(); Icon icon = (Icon) icons.get(type); Index: ServerInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ServerInternalFrame.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ServerInternalFrame.java 24 Feb 2003 22:35:20 -0000 1.2 --- ServerInternalFrame.java 27 Nov 2003 01:39:47 -0000 1.3 *************** *** 21,29 **** --- 21,32 ---- import org.ejtools.adwt.service.ToolBarServiceProvider; import org.ejtools.management.browser.action.ShowNotificationsAction; + import org.ejtools.management.browser.model.ManagedObject; import org.ejtools.management.browser.model.Server; + import org.ejtools.management.browser.model.service.CacheService; import org.ejtools.management.browser.model.service.CacheServiceProvider; import org.ejtools.management.browser.model.service.ConnectionServiceProvider; import org.ejtools.management.browser.model.service.NotificationServiceProvider; import org.ejtools.util.service.Profile; + import org.ejtools.util.service.ProfileHolder; /** *************** *** 31,38 **** * * @author Laurent Etiemble - * @created 5 septembre 2002 * @version $Revision$ */ ! public class ServerInternalFrame extends BeanContextInternalFrame { /** Description of the Field */ --- 34,40 ---- * * @author Laurent Etiemble * @version $Revision$ */ ! public class ServerInternalFrame extends BeanContextInternalFrame implements ProfileHolder { /** Description of the Field */ *************** *** 63,72 **** * @param profile Description of the Parameter */ ! public ServerInternalFrame(Profile profile) { super(); - this.profile = profile; this.connectionProvider = new ConnectionServiceProvider(); this.cacheProvider = new CacheServiceProvider(); --- 65,112 ---- * @param profile Description of the Parameter */ ! public ServerInternalFrame() { super(); + } + + /** + * Description of the Method + * + * @param objectName Description of the Parameter + * @return Description of the Return Value + */ + public ManagedObject queryMBean(String objectName) + { + ManagedObject resource = (ManagedObject) this.cacheProvider.get(CacheService.RESOURCE_TYPE, objectName); + try + { + if ((resource != null) && (resource.isRegistered())) + { + return resource; + } + } + catch (Exception e) + { + logger.warn("Cannot find ObjectName " + objectName, e); + } + return null; + } + + + public void setProfile(Profile profile) + { + this.profile = profile; + } + + + /** + * Sets the server attribute of the ServerInternalFrame object + * + * @param server The new server value + */ + public void setServer(Server server) + { this.connectionProvider = new ConnectionServiceProvider(); this.cacheProvider = new CacheServiceProvider(); *************** *** 109,114 **** BeanContextTreePanel panel = new BeanContextTreePanel(this.server); ! panel.getTree().setIndexer(new ResourceIndexer()); ! panel.getTree().setRenderer(new ResourceRenderer()); panel.selectRoot(); --- 149,154 ---- BeanContextTreePanel panel = new BeanContextTreePanel(this.server); ! panel.setIndexer(new ResourceIndexer()); ! panel.setRenderer(new ResourceRenderer()); panel.selectRoot(); *************** *** 120,123 **** --- 160,174 ---- /** + * Gets the profile attribute of the ServerInternalFrame object + * + * @return The profile value + */ + public Profile getProfile() + { + return this.profile; + } + + + /** * @param event Description of the Parameter */ *************** *** 138,142 **** // Hack to update the window title - String name = this.server.getName(); this.server.setName(""); this.server.setName(resources.getString("connection.text.untitled")); --- 189,192 ---- |
From: <let...@us...> - 2003-11-27 01:39:51
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/model In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/main/org/ejtools/management/browser/model Modified Files: ManagedObject.java Node.java Server.java Log Message: Address Todo #800902 Address Todo #755528 Index: ManagedObject.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/model/ManagedObject.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ManagedObject.java 16 Mar 2003 22:19:07 -0000 1.3 --- ManagedObject.java 27 Nov 2003 01:39:48 -0000 1.4 *************** *** 1,878 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.model; ! ! import java.awt.Component; ! import java.beans.beancontext.BeanContextServices; [...1737 lines suppressed...] ! * @param context Description of the Parameter ! */ ! protected void useServices(BeanContextServices context) ! { ! if (context.hasService(CacheService.class)) ! { ! // logger.debug("Using service CacheService... for " + this + " nested in " + context); ! try ! { ! CacheService service = (CacheService) context.getService(this, this, CacheService.class, this, this); ! service.add(CacheService.RESOURCE_TYPE, this.getCanonicalName(), this); ! context.releaseService(this, this, CacheService.class); ! } ! catch (Exception e) ! { ! logger.error("Error during utilisation of service CacheService for " + this.getName(), e); ! } ! } ! } ! } Index: Node.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/model/Node.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Node.java 24 Feb 2003 22:35:14 -0000 1.3 --- Node.java 27 Nov 2003 01:39:48 -0000 1.4 *************** *** 24,28 **** * * @author Laurent Etiemble - * @created 13 décembre 2001 * @version $Revision$ * @todo Javadoc to complete --- 24,27 ---- Index: Server.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/model/Server.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Server.java 16 Mar 2003 22:19:08 -0000 1.4 --- Server.java 27 Nov 2003 01:39:48 -0000 1.5 *************** *** 1,507 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.model; ! ! import java.beans.beancontext.BeanContextServices; ! import java.util.Collection; [...1011 lines suppressed...] ! protected void setCount(int count) ! { ! int oldCount = this.count; ! this.count = count; ! this.firePropertyChange("count", new Integer(oldCount), new Integer(count)); ! } ! ! ! /** ! * Setter for the defaultDomain attribute ! * ! * @param defaultDomain The new defaultDomain value ! */ ! protected void setDefaultDomain(String defaultDomain) ! { ! String oldDomain = this.defaultDomain; ! this.defaultDomain = defaultDomain; ! this.firePropertyChange("defaultDomain", oldDomain, defaultDomain); ! } ! } |
From: <let...@us...> - 2003-11-27 01:39:51
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/main/org/ejtools/management/browser Modified Files: AboutDialog.java Browser.java Main.java Log Message: Address Todo #800902 Address Todo #755528 Index: AboutDialog.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/AboutDialog.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutDialog.java 24 Feb 2003 22:35:20 -0000 1.2 --- AboutDialog.java 27 Nov 2003 01:39:47 -0000 1.3 *************** *** 16,19 **** --- 16,21 ---- import javax.swing.JLabel; import javax.swing.JPanel; + import javax.swing.SwingConstants; + import javax.swing.UIManager; import org.ejtools.adwt.service.AboutService; *************** *** 23,27 **** * * @author Laurent Etiemble - * @created 2 novembre 2001 * @version $Revision$ * @todo Javadoc to complete --- 25,28 ---- *************** *** 70,76 **** this.panel = new JPanel(new BorderLayout()); - String display = null; - JLabel label = null; - // North part of the panel this.panel.add("North", new JLabel(new ImageIcon(getClass().getResource("/images/logo.png")))); --- 71,74 ---- *************** *** 80,98 **** // South part of the panel ! JPanel info = new JPanel(new GridLayout(2, 1)); JLabel java = new JLabel( ! resources.getString("about.dialog.text.javaVersion") ! + " : " ! + System.getProperty("java.version"), JLabel.CENTER); java.setForeground(Color.black); info.add(java); JLabel vm = new JLabel( ! resources.getString("about.dialog.text.virtualMachine") ! + " : " ! + System.getProperty("java.vm.name") ! + ", " ! + System.getProperty("java.vm.version"), JLabel.CENTER); vm.setForeground(Color.black); info.add(vm); this.panel.add("South", info); } --- 78,105 ---- // South part of the panel ! JPanel info = new JPanel(new GridLayout(3, 1)); ! JLabel java = new JLabel( ! resources.getString("about.dialog.text.javaVersion") ! + " : " ! + System.getProperty("java.version"), SwingConstants.LEADING); java.setForeground(Color.black); info.add(java); + JLabel vm = new JLabel( ! resources.getString("about.dialog.text.virtualMachine") ! + " : " ! + System.getProperty("java.vm.name") ! + ", " ! + System.getProperty("java.vm.version"), SwingConstants.LEADING); vm.setForeground(Color.black); info.add(vm); + + JLabel laf = new JLabel( + resources.getString("about.dialog.text.lookAndFeel") + + " : " + + UIManager.getLookAndFeel().getName(), SwingConstants.LEADING); + vm.setForeground(Color.black); + info.add(laf); this.panel.add("South", info); } Index: Browser.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/Browser.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Browser.java 24 Feb 2003 22:35:22 -0000 1.3 --- Browser.java 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 9,24 **** --- 9,33 ---- import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; + import java.net.URL; import java.util.Arrays; import java.util.List; import java.util.ResourceBundle; + import javax.swing.JFileChooser; import javax.swing.JOptionPane; import org.apache.log4j.Logger; + import org.ejtools.adwt.FileUtil; + import org.ejtools.adwt.LookAndFeelUtil; import org.ejtools.adwt.action.Command; import org.ejtools.adwt.action.file.ExitAction; import org.ejtools.adwt.action.file.NewAction; + import org.ejtools.adwt.action.file.OpenWorkspaceAction; + import org.ejtools.adwt.action.file.SaveAsWorkspaceAction; + import org.ejtools.adwt.action.file.SaveWorkspaceAction; import org.ejtools.adwt.service.AboutServiceProvider; import org.ejtools.adwt.service.ConsoleServiceProvider; + import org.ejtools.adwt.service.HistoryService; + import org.ejtools.adwt.service.HistoryServiceProvider; import org.ejtools.adwt.service.MDIFrameServiceProvider; import org.ejtools.adwt.service.MenuBarServiceProvider; *************** *** 27,31 **** --- 36,42 ---- import org.ejtools.graph.service.GraphServiceProvider; import org.ejtools.management.browser.frame.ServerInternalFrame; + import org.ejtools.management.browser.model.Server; import org.ejtools.management.browser.model.service.ConnectionMetaData; + import org.ejtools.management.browser.state.WorkbenchState; import org.ejtools.util.service.Profile; import org.ejtools.util.service.ProfileServiceProvider; *************** *** 35,59 **** * * @author Laurent Etiemble ! * @created 21 mars 2002 * @version $Revision$ * @todo Javadoc to complete */ ! public class Browser extends CustomBeanContextServicesSupport { ! /** Description of the Field */ ! protected AboutServiceProvider aboutService; ! /** Description of the Field */ ! protected ConsoleServiceProvider consoleService; ! /** Description of the Field */ ! protected ProfileServiceProvider factoryProvider; ! /** Description of the Field */ ! protected MDIFrameServiceProvider frameService; ! /** Description of the Field */ ! protected GraphServiceProvider graphService; ! /** Description of the Field */ ! protected MenuBarServiceProvider menuBarService; ! /** Description of the Field */ ! protected ToolBarServiceProvider toolBarService; ! /** Description of the Field */ private static Logger logger = Logger.getLogger(Browser.class); /** Bundle for I18N */ --- 46,66 ---- * * @author Laurent Etiemble ! * @created 17 novembre 2003 * @version $Revision$ * @todo Javadoc to complete */ ! public final class Browser extends CustomBeanContextServicesSupport implements HistoryService.Holder { ! private AboutServiceProvider aboutService; ! private ConsoleServiceProvider consoleService; ! private ProfileServiceProvider factoryProvider; ! private MDIFrameServiceProvider frameService; ! private GraphServiceProvider graphService; ! private HistoryServiceProvider historyService; ! private MenuBarServiceProvider menuBarService; ! private WorkbenchState stateManager; ! private ToolBarServiceProvider toolBarService; ! ! /** Default logger */ private static Logger logger = Logger.getLogger(Browser.class); /** Bundle for I18N */ *************** *** 61,69 **** ! /** Constructor for the EJX object */ public Browser() { logger.debug("Management Browser starting..."); this.frameService = new MDIFrameServiceProvider(); this.aboutService = new AboutServiceProvider(new AboutDialog()); --- 68,85 ---- ! /**Constructor for the Browser object */ public Browser() { logger.debug("Management Browser starting..."); + // Search for custom Look and Feel + LookAndFeelUtil.setLookAndFeel(); + + // Set the hyperlink navigation for ObjectName + if (System.getProperty("ejtools.objectname.hyperlink") == null) + { + System.setProperty("ejtools.objectname.hyperlink", "true"); + } + this.frameService = new MDIFrameServiceProvider(); this.aboutService = new AboutServiceProvider(new AboutDialog()); *************** *** 73,76 **** --- 89,94 ---- this.consoleService = new ConsoleServiceProvider(); this.graphService = new GraphServiceProvider(); + this.historyService = new HistoryServiceProvider(this, 4); + this.stateManager = new WorkbenchState(this); try *************** *** 90,101 **** { Object selectedValue = JOptionPane.showInputDialog( ! null, ! resources.getString("connection.dialog.text.description"), ! resources.getString("connection.dialog.title"), ! JOptionPane.QUESTION_MESSAGE, ! null, ! factories.toArray(), ! factories.get(0) ! ); if (selectedValue == null) --- 108,119 ---- { Object selectedValue = JOptionPane.showInputDialog( ! null, ! resources.getString("connection.dialog.text.description"), ! resources.getString("connection.dialog.title"), ! JOptionPane.QUESTION_MESSAGE, ! null, ! factories.toArray(), ! factories.get(0) ! ); if (selectedValue == null) *************** *** 113,124 **** if (idx >= 0) { ! Browser.this.add( ! new ServerInternalFrame(Browser.this.factoryProvider.getProfile(idx)) ! ); } } } ! )); this.add(this.consoleService); --- 131,219 ---- if (idx >= 0) { ! Profile profile = Browser.this.factoryProvider.getProfile(idx); ! ServerInternalFrame frame = new ServerInternalFrame(); ! frame.setProfile(profile); ! frame.setServer(new Server()); ! Browser.this.add(frame); } } } ! )); ! ! this.add(this.stateManager); + this.add(new OpenWorkspaceAction( + new Command() + { + public void execute() + { + try + { + URL selectedURL = FileUtil.selectWorkspaceFile(resources.getString("file.dialog.title.load"), JFileChooser.OPEN_DIALOG); + if (selectedURL != null) + { + loadResource(selectedURL, null); + } + } + catch (Exception e) + { + // JOptionPane.showMessageDialog(null, "Could not load file:" + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); + logger.error("Error while loading workspace", e); + } + } + } + )); + + this.add(new SaveWorkspaceAction( + new Command() + { + public void execute() + { + try + { + if (Browser.this.stateManager.getWorkbenchURL() == null) + { + URL selectedURL = FileUtil.selectWorkspaceFile(resources.getString("file.dialog.title.save"), JFileChooser.SAVE_DIALOG); + if (selectedURL != null) + { + Browser.this.stateManager.setWorkbenchURL(selectedURL); + } + } + if (Browser.this.stateManager.getWorkbenchURL() != null) + { + Browser.this.stateManager.store(); + } + } + catch (Exception e) + { + logger.error("Error while saving workspace", e); + } + } + } + )); + + this.add(new SaveAsWorkspaceAction( + new Command() + { + public void execute() + { + try + { + URL selectedURL = FileUtil.selectWorkspaceFile(resources.getString("file.dialog.title.save"), JFileChooser.SAVE_DIALOG); + if (selectedURL != null) + { + Browser.this.stateManager.setWorkbenchURL(selectedURL); + Browser.this.stateManager.store(); + } + } + catch (Exception e) + { + logger.error("Error while saving workspace", e); + } + } + } + )); + + this.add(this.historyService); this.add(this.consoleService); *************** *** 131,135 **** } } ! )); this.add(this.frameService); --- 226,230 ---- } } ! )); this.add(this.frameService); *************** *** 155,158 **** --- 250,267 ---- throw e; } + } + + + /** + * Description of the Method + * + * @param url Description of the Parameter + * @param context Description of the Parameter + */ + public void loadResource(URL url, Object context) + { + this.stateManager.setWorkbenchURL(url); + this.stateManager.load(); + this.historyService.push(url, context); } Index: Main.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/Main.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Main.java 24 Feb 2003 22:35:21 -0000 1.3 --- Main.java 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 22,26 **** * * @author Laurent Etiemble - * @created 21 mars 2002 * @version $Revision$ * @todo Javadoc to complete --- 22,25 ---- *************** *** 28,32 **** public class Main { ! /** Description of the Field */ private static Logger logger = Logger.getLogger(Main.class); --- 27,31 ---- public class Main { ! /** Default logger */ private static Logger logger = Logger.getLogger(Main.class); *************** *** 86,91 **** URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); Thread.currentThread().setContextClassLoader( ! new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader()) ! ); // Custom security manager --- 85,90 ---- URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); Thread.currentThread().setContextClassLoader( ! new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader()) ! ); // Custom security manager *************** *** 108,114 **** { Beans.instantiate( ! Thread.currentThread().getContextClassLoader(), ! "org.ejtools.management.browser.Browser" ! ); return null; } --- 107,113 ---- { Beans.instantiate( ! Thread.currentThread().getContextClassLoader(), ! "org.ejtools.management.browser.Browser" ! ); return null; } |
From: <let...@us...> - 2003-11-27 01:39:50
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/action In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/main/org/ejtools/management/browser/action Modified Files: ShowNotificationsAction.java Log Message: Address Todo #800902 Address Todo #755528 Index: ShowNotificationsAction.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/action/ShowNotificationsAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ShowNotificationsAction.java 24 Feb 2003 22:35:23 -0000 1.2 --- ShowNotificationsAction.java 27 Nov 2003 01:39:47 -0000 1.3 *************** *** 16,20 **** * * @author Laurent Etiemble - * @created 29 décembre 2001 * @version $Revision$ * @todo Javadoc to complete --- 16,19 ---- |
From: <let...@us...> - 2003-11-27 01:39:50
|
Update of /cvsroot/ejtools/applications/management.browser/src/conf In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser/src/conf Modified Files: log4j.properties management.connection.properties Log Message: Address Todo #800902 Address Todo #755528 Index: log4j.properties =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/conf/log4j.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** log4j.properties 21 Feb 2003 22:18:01 -0000 1.3 --- log4j.properties 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 1,26 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Set root category priority to DEBUG and its only appender to STDOUT. ! log4j.rootCategory=DEBUG, STDOUT, R ! ! # STDOUT is set to be a ConsoleAppender. ! log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender ! log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout ! log4j.appender.STDOUT.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n ! ! # R is set to be a RollingFileAppender ! log4j.appender.R=org.apache.log4j.RollingFileAppender ! log4j.appender.R.File=../logs/event.log ! log4j.appender.R.MaxFileSize=500KB ! log4j.appender.R.MaxBackupIndex=5 ! log4j.appender.R.layout=org.apache.log4j.PatternLayout ! log4j.appender.R.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n --- 1,26 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Set root category priority to DEBUG and its only appender to STDOUT. ! log4j.rootCategory=DEBUG, STDOUT, R ! ! # STDOUT is set to be a ConsoleAppender. ! log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender ! log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout ! log4j.appender.STDOUT.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n ! ! # R is set to be a RollingFileAppender ! log4j.appender.R=org.apache.log4j.RollingFileAppender ! log4j.appender.R.File=../logs/event.log ! log4j.appender.R.MaxFileSize=500KB ! log4j.appender.R.MaxBackupIndex=5 ! log4j.appender.R.layout=org.apache.log4j.PatternLayout ! log4j.appender.R.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n Index: management.connection.properties =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/conf/management.connection.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** management.connection.properties 10 Mar 2003 22:13:15 -0000 1.2 --- management.connection.properties 27 Nov 2003 01:39:47 -0000 1.3 *************** *** 10,13 **** --- 10,16 ---- # ------------------------------------------------------------ + # + # JBoss connectivity + # connection.10.name=JBoss 3.x connection.10.factory=org.jnp.interfaces.NamingContextFactory |
From: <let...@us...> - 2003-11-27 01:39:50
|
Update of /cvsroot/ejtools/applications/management.browser In directory sc8-pr-cvs1:/tmp/cvs-serv18798/management.browser Modified Files: .cvsignore maven.xml project.xml Added Files: .classpath .project Log Message: Address Todo #800902 Address Todo #755528 --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/conf"/> <classpathentry kind="src" path="src/main"/> <classpathentry kind="src" path="src/resources"/> <classpathentry kind="src" path="/ejtools-libraries-adwt"/> <classpathentry kind="src" path="/ejtools-libraries-common"/> <classpathentry kind="src" path="/ejtools-libraries-graph"/> <classpathentry kind="src" path="/ejtools-libraries-icons"/> <classpathentry kind="src" path="/ejtools-libraries-taglib"/> <classpathentry kind="src" path="/ejtools-thirdparty"/> <classpathentry kind="var" path="JRE_LIB" sourcepath="JDK_SRC"/> <classpathentry kind="var" path="MAVEN_REPO/dreambean/jars/awt-1.0.jar"/> <classpathentry kind="var" path="MAVEN_REPO/log4j/jars/log4j-1.2.8.jar"/> <classpathentry kind="var" path="MAVEN_REPO/sun/jars/j2ee-1.4.0.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>ejtools-app-management-browser</name> <comment></comment> <projects> <project>ejtools-libraries-adwt</project> <project>ejtools-libraries-common</project> <project>ejtools-libraries-graph</project> <project>ejtools-libraries-icons</project> <project>ejtools-libraries-taglib</project> <project>ejtools-thirdparty</project> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> Index: .cvsignore =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 8 Mar 2003 20:52:11 -0000 1.3 --- .cvsignore 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 1,4 **** bin ! dist ! output ! target --- 1,4 ---- bin ! dist ! output ! target Index: maven.xml =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/maven.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** maven.xml 8 Mar 2003 20:52:11 -0000 1.3 --- maven.xml 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 20,22 **** --- 20,25 ---- <attainGoal name="ejtools:app"/> </postGoal> + <postGoal name="ejtools:app"> + <attainGoal name="ejtools:app-unpack"/> + </postGoal> </project> Index: project.xml =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/project.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** project.xml 16 Mar 2003 22:19:07 -0000 1.3 --- project.xml 27 Nov 2003 01:39:47 -0000 1.4 *************** *** 15,19 **** <groupId>ejtools</groupId> <name>Management Browser</name> ! <currentVersion>1.0.0-preview</currentVersion> <package>org/ejtools/management/browser</package> <url>/applications/management.browser</url> --- 15,19 ---- <groupId>ejtools</groupId> <name>Management Browser</name> ! <currentVersion>1.0.0</currentVersion> <package>org/ejtools/management/browser</package> <url>/applications/management.browser</url> *************** *** 113,130 **** </dependencies> <build> - <nagEmailAddress>ejt...@so...</nagEmailAddress> - <!-- Source dirs --> - <sourceDirectory>${basedir}/src/main</sourceDirectory> - <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory> - <integrationUnitTestSourceDirectory>${basedir}/src/test</integrationUnitTestSourceDirectory> - <aspectSourceDirectory/> - <!-- Unit test classes --> - <unitTest> - <includes> - <include>**/*Test.java</include> - </includes> - </unitTest> <!-- Resources --> <resources> <resource> <directory>${basedir}/src/resources</directory> --- 113,119 ---- </dependencies> <build> <!-- Resources --> <resources> + <!-- General resources --> <resource> <directory>${basedir}/src/resources</directory> *************** *** 132,136 **** <!-- XDoclet Resources --> <resource> ! <directory>${maven.build.dir}/xdoclet/xdoclet</directory> </resource> </resources> --- 121,126 ---- <!-- XDoclet Resources --> <resource> ! <directory>${basedir}/target/xdoclet/xdoclet</directory> ! <includes>*.properties</includes> </resource> </resources> |
From: <let...@us...> - 2003-11-27 01:37:43
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/resources In directory sc8-pr-cvs1:/tmp/cvs-serv13614/jmx.browser/src/resources Modified Files: JMXBrowser_WebResources.properties Log Message: Address Bug #775745 Address Todo #800902 Address Todo #755528 Remove @created tags Add support for MXJ4 2.0.0 (still beta) Add support for JXM Remoting through RMI Index: JMXBrowser_WebResources.properties =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/resources/JMXBrowser_WebResources.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JMXBrowser_WebResources.properties 10 Feb 2003 20:59:11 -0000 1.3 --- JMXBrowser_WebResources.properties 27 Nov 2003 01:13:08 -0000 1.4 *************** *** 1,122 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Titles ! web.title.index=Agent View ! web.title.detail=MBean Detail ! web.title.search=Search ! web.title.admin=Administration ! web.title.invocation=Invocation ! web.title.notifications=Notifications ! web.title.broadcasters=Broadcasters ! web.title.help=Help ! web.title.customview=Custom View ! ! # Buttons ! web.button.admin=Administration ! web.button.cancel=Cancel ! web.button.invoke=Invoke ! web.button.notifications=Notifications ! web.button.not.supported=Unsupported ! web.button.search=Search ! web.button.update=Update ! web.button.refresh=Refresh ! web.button.unregister=Unregister ! web.button.register=Register ! web.button.select=Select ! web.button.listen=Listen ! web.button.view=View ! web.button.help=Help ! ! # Labels ! web.label.mbean.domain=Domain : ! web.label.mbean.name=Name : ! web.label.mbean.className=Class Name : ! web.label.mbean.description=Description : ! web.label.view.name=Custom View Name : ! web.label.search.filter=ObjectName filter : ! web.label.search.attribute=Attribute : ! web.label.search.query=Query : ! web.label.search.value=Value : ! web.label.search.type=Type : ! web.label.operation.name=Operation Name : ! web.label.operation.type=Return type : ! web.label.register.className=Class Name : ! web.label.register.objectName=ObjectName : ! web.label.register.classLoader=Class Loader : ! web.label.register.signature=Argument type(s) : ! web.label.register.parameters=Argument value(s) : ! ! # Table headers ! web.table.header.mbean=Managed Bean ! web.table.header.name=Name ! web.table.header.className=Class Name ! web.table.header.access=Access ! web.table.header.value=Value ! web.table.header.constructor=Constructor ! web.table.header.operation=Operation ! web.table.header.parameters=Parameters ! web.table.header.notification=Notification ! web.table.header.types=Types ! web.table.header.source=Source ! web.table.header.timeStamp=TimeStamp ! web.table.header.sequence=Sequence ! web.table.header.type=Type ! web.table.header.message=Message ! web.table.header.registration=Registered ! ! # Misc. texts ! web.text.server=JMX Server ! web.text.agent.registered.1=This agent is registered on the domain ! web.text.agent.registered.2=. ! web.text.agent.domain.1=This domain contains ! web.text.agent.domain.2=MBean(s). ! web.text.search.1=the JMX Server ! web.text.register.1=a new MBean ! web.text.notification.select.1= the MBean to listen to ! web.text.notification.view.1= the notifications received ! web.text.search.nota=Note, use *:* to query all MBeans registered. ! web.text.no.result=No result. ! web.text.register.className.nota=Eg. com.foo.XYZ ! web.text.register.objectName.nota=Syntax is domainName:[key=value],* ! web.text.register.classLoader.nota=The ObjectName of a registered ClassLoader ! web.text.register.signature.nota=A comma-delimited list of fully qualified parameter types ! web.text.register.parameters.nota=A comma-delimited list of parameters ! web.text.register.mandatory=Mandatory fields : ! web.text.register.optional=Optional fields : ! web.text.view.noview.1=There are no custom views available, ! web.text.view.noview.2=? ! web.text.view.available.1=The following custom views are available : ! web.text.previouspage=<< Previous ! web.text.nextpage=Next >> ! ! # Help content ! web.help.title.whatisview=What are custom views ? ! web.help.content.whatisview=Custom views are dynamic view of the JMX Server. They contains an extract of the MBeans registered in a synthethic view. ! web.help.title.howtohaveview=How are defined the custom views ? ! web.help.content.howtohaveview=First of all, custom views are only running on JBoss Server. A custom SAR (Service ARchive) is responsible of getting the views deployed. Create a xml file (with an jmxml extension) and describe the view you want (attributes and operations) by specifying some patterns. Hot deploy them and that's it !!! ! ! # Misc. errors ! web.error.no.reference=No MBean reference found<br/> ! web.error.no.form=Request has not the correct form<br/> ! web.error.no.mbean=No MBean found for this ObjectName<br/> ! web.error.cannot.connect=Cannot connect to JMX Server<br/> ! web.error.filter.required=A valid filter is required<br/> ! web.error.className.required=A valid ClassName is required<br/> ! web.error.objectName.required=A valid ObjectName is required<br/> ! web.error.signature.required=argument value(s) cannot be set without argument type(s)<br/> ! web.error.parameters.required=Argument type(s) cannot be set without argument value(s)<br/> ! web.error.mbean.attribute=<b>Error while setting attribute : </b>{0}<br/> ! web.error.mbean.unregister=<b>Error while unregistering MBean : </b>{0}<br/> ! web.error.mbean.register.failed=<b>Error while registering MBean : </b>{0}<br/> ! web.error.query.filter=<b>Malformed filter : </b>{0}<br/> ! web.error.exception.message=<b>Exception occured with the following message : </b>{0}<br/> ! web.error.exception.stack=<b>Exception Stack Trace : </b><pre>{0}</pre> --- 1,122 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Titles ! web.title.index=Agent View ! web.title.detail=MBean Detail ! web.title.search=Search ! web.title.admin=Administration ! web.title.invocation=Invocation ! web.title.notifications=Notifications ! web.title.broadcasters=Broadcasters ! web.title.help=Help ! web.title.customview=Custom View ! ! # Buttons ! web.button.admin=Administration ! web.button.cancel=Cancel ! web.button.invoke=Invoke ! web.button.notifications=Notifications ! web.button.not.supported=Unsupported ! web.button.search=Search ! web.button.update=Update ! web.button.refresh=Refresh ! web.button.unregister=Unregister ! web.button.register=Register ! web.button.select=Select ! web.button.listen=Listen ! web.button.view=View ! web.button.help=Help ! ! # Labels ! web.label.mbean.domain=Domain : ! web.label.mbean.name=Name : ! web.label.mbean.className=Class Name : ! web.label.mbean.description=Description : ! web.label.view.name=Custom View Name : ! web.label.search.filter=ObjectName filter : ! web.label.search.attribute=Attribute : ! web.label.search.query=Query : ! web.label.search.value=Value : ! web.label.search.type=Type : ! web.label.operation.name=Operation Name : ! web.label.operation.type=Return type : ! web.label.register.className=Class Name : ! web.label.register.objectName=ObjectName : ! web.label.register.classLoader=Class Loader : ! web.label.register.signature=Argument type(s) : ! web.label.register.parameters=Argument value(s) : ! ! # Table headers ! web.table.header.mbean=Managed Bean ! web.table.header.name=Name ! web.table.header.className=Class Name ! web.table.header.access=Access ! web.table.header.value=Value ! web.table.header.constructor=Constructor ! web.table.header.operation=Operation ! web.table.header.parameters=Parameters ! web.table.header.notification=Notification ! web.table.header.types=Types ! web.table.header.source=Source ! web.table.header.timeStamp=TimeStamp ! web.table.header.sequence=Sequence ! web.table.header.type=Type ! web.table.header.message=Message ! web.table.header.registration=Registered ! ! # Misc. texts ! web.text.server=JMX Server ! web.text.agent.registered.1=This agent is registered on the domain\ ! web.text.agent.registered.2=. ! web.text.agent.domain.1=This domain contains\ ! web.text.agent.domain.2=\ MBean(s). ! web.text.search.1=\ the JMX Server ! web.text.register.1=\ a new MBean ! web.text.notification.select.1=\ the MBean to listen to ! web.text.notification.view.1=\ the notifications received ! web.text.search.nota=Note, use *:* to query all MBeans registered. ! web.text.no.result=No result. ! web.text.register.className.nota=Eg. com.foo.XYZ ! web.text.register.objectName.nota=Syntax is domainName:[key=value],* ! web.text.register.classLoader.nota=The ObjectName of a registered ClassLoader ! web.text.register.signature.nota=A comma-delimited list of fully qualified parameter types ! web.text.register.parameters.nota=A comma-delimited list of parameters ! web.text.register.mandatory=Mandatory fields : ! web.text.register.optional=Optional fields : ! web.text.view.noview.1=There are no custom views available,\ ! web.text.view.noview.2=? ! web.text.view.available.1=The following custom views are available : ! web.text.previouspage=<< Previous ! web.text.nextpage=Next >> ! ! # Help content ! web.help.title.whatisview=What are custom views ? ! web.help.content.whatisview=Custom views are dynamic view of the JMX Server. They contains an extract of the MBeans registered in a synthethic view. ! web.help.title.howtohaveview=How are defined the custom views ? ! web.help.content.howtohaveview=First of all, custom views are only running on JBoss Server. A custom SAR (Service ARchive) is responsible of getting the views deployed. Create a xml file (with an jmxml extension) and describe the view you want (attributes and operations) by specifying some patterns. Hot deploy them and that's it !!! ! ! # Misc. errors ! web.error.no.reference=No MBean reference found<br/> ! web.error.no.form=Request has not the correct form<br/> ! web.error.no.mbean=No MBean found for this ObjectName<br/> ! web.error.cannot.connect=Cannot connect to JMX Server<br/> ! web.error.filter.required=A valid filter is required<br/> ! web.error.className.required=A valid ClassName is required<br/> ! web.error.objectName.required=A valid ObjectName is required<br/> ! web.error.signature.required=argument value(s) cannot be set without argument type(s)<br/> ! web.error.parameters.required=Argument type(s) cannot be set without argument value(s)<br/> ! web.error.mbean.attribute=<b>Error while setting attribute : </b>{0}<br/> ! web.error.mbean.unregister=<b>Error while unregistering MBean : </b>{0}<br/> ! web.error.mbean.register.failed=<b>Error while registering MBean : </b>{0}<br/> ! web.error.query.filter=<b>Malformed filter : </b>{0}<br/> ! web.error.exception.message=<b>Exception occured with the following message : </b>{0}<br/> ! web.error.exception.stack=<b>Exception Stack Trace : </b><pre>{0}</pre> |
From: <let...@us...> - 2003-11-27 01:37:05
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/state/rules In directory sc8-pr-cvs1:/tmp/cvs-serv18601/management.browser/src/main/org/ejtools/management/browser/state/rules Log Message: Directory /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/state/rules added to the repository |
From: <let...@us...> - 2003-11-27 01:35:51
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/state In directory sc8-pr-cvs1:/tmp/cvs-serv18424/management.browser/src/main/org/ejtools/management/browser/state Log Message: Directory /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/state added to the repository |
From: <let...@us...> - 2003-11-27 01:31:02
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/frame In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/frame Modified Files: ServerInternalFrame.java Log Message: Address Todo #755528 Address Todo #800902 Index: ServerInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/frame/ServerInternalFrame.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ServerInternalFrame.java 3 Mar 2003 20:34:49 -0000 1.4 --- ServerInternalFrame.java 27 Nov 2003 01:30:28 -0000 1.5 *************** *** 25,28 **** --- 25,29 ---- import org.ejtools.jndi.browser.model.service.JMSConnectionServiceProvider; import org.ejtools.util.service.Profile; + import org.ejtools.util.service.ProfileHolder; /** *************** *** 30,37 **** * * @author <a href="mailto:let...@us...">Laurent Etiemble</a> - * @created 5 septembre 2002 * @version $Revision$ */ ! public class ServerInternalFrame extends BeanContextInternalFrame { /** Description of the Field */ --- 31,38 ---- * * @author <a href="mailto:let...@us...">Laurent Etiemble</a> * @version $Revision$ + * @created 5 septembre 2002 */ ! public class ServerInternalFrame extends BeanContextInternalFrame implements ProfileHolder { /** Description of the Field */ *************** *** 50,53 **** --- 51,63 ---- private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); + public void setProfile(Profile profile) + { + this.profile = profile; + } + + public Profile getProfile() + { + return this.profile; + } /** *************** *** 56,70 **** * @param profile Description of the Parameter */ ! public ServerInternalFrame(Profile profile) { super(); ! ! this.profile = profile; ! this.connectionProvider = new JMSConnectionServiceProvider(); this.menubarProvider = new MenuBarServiceProvider(); this.toolbarProvider = new ToolBarServiceProvider(); ! this.server = new Server(); this.server.setProfile(profile); --- 66,81 ---- * @param profile Description of the Parameter */ ! public ServerInternalFrame() { super(); ! } ! ! public void setServer(Server server) ! { this.connectionProvider = new JMSConnectionServiceProvider(); this.menubarProvider = new MenuBarServiceProvider(); this.toolbarProvider = new ToolBarServiceProvider(); ! this.server = server; this.server.setProfile(profile); *************** *** 94,98 **** } } ! )); this.add(new SelectFactoryAction("action.options.selectTopicFactory", --- 105,109 ---- } } ! )); this.add(new SelectFactoryAction("action.options.selectTopicFactory", *************** *** 104,108 **** } } ! )); BeanContextTreePanel panel = new BeanContextTreePanel(this.server); --- 115,119 ---- } } ! )); BeanContextTreePanel panel = new BeanContextTreePanel(this.server); *************** *** 135,141 **** // Hack to update the window title ! String name = this.server.getName(); ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); } --- 146,151 ---- // Hack to update the window title ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); } |
From: <let...@us...> - 2003-11-27 01:31:02
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser Modified Files: AboutDialog.java Browser.java Main.java Log Message: Address Todo #755528 Address Todo #800902 Index: AboutDialog.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/AboutDialog.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AboutDialog.java 3 Mar 2003 20:34:53 -0000 1.3 --- AboutDialog.java 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 1,92 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser; ! ! import java.awt.BorderLayout; ! import java.awt.Color; ! import java.awt.Container; ! import java.awt.GridLayout; ! import java.util.ResourceBundle; ! ! import javax.swing.ImageIcon; ! import javax.swing.JLabel; ! import javax.swing.JPanel; ! ! import org.ejtools.adwt.service.AboutService; ! ! /** ! * Custom AboutService that shows the EJTools logo and some informations about the virtual machine. ! * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! */ ! public class AboutDialog implements AboutService ! { ! /** The main panel */ ! protected JPanel panel = null; ! /** Bundle for I18N */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); ! ! ! /** Constructor for the AboutServiceProvider object */ ! public AboutDialog() { } ! ! ! /** ! * Implementation of AboutService. Return the main panel to show. ! * ! * @return The main panel ! */ ! public Container getPanel() ! { ! // Lazy creation ! if (this.panel == null) ! { ! this.createPanel(); ! } ! return this.panel; ! } ! ! ! /** ! * Implementation of AboutService. Return the title of the About box. ! * ! * @return The String to display as title ! */ ! public String getTitle() ! { ! return resources.getString("about.dialog.title"); ! } ! ! ! /** Creation of the panel to show */ ! protected void createPanel() ! { ! this.panel = new JPanel(new BorderLayout()); ! ! String display = null; ! JLabel label = null; ! ! // North part of the panel ! this.panel.add("North", new JLabel(new ImageIcon(getClass().getResource("/images/logo.png")))); ! ! // Center part of the panel ! this.panel.add("Center", new JLabel(" ")); ! ! // South part of the panel ! JPanel info = new JPanel(new GridLayout(2, 1)); ! JLabel java = new JLabel(resources.getString("about.dialog.text.javaVersion") + " : " + System.getProperty("java.version"), JLabel.CENTER); ! java.setForeground(Color.black); ! info.add(java); ! JLabel vm = new JLabel(resources.getString("about.dialog.text.virtualMachine") + " : " + System.getProperty("java.vm.name") + ", " + System.getProperty("java.vm.version"), JLabel.CENTER); ! vm.setForeground(Color.black); ! info.add(vm); ! this.panel.add("South", info); ! } ! } ! --- 1,107 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser; ! ! import java.awt.BorderLayout; ! import java.awt.Color; ! import java.awt.Container; ! import java.awt.GridLayout; ! import java.util.ResourceBundle; ! ! import javax.swing.ImageIcon; ! import javax.swing.JLabel; ! import javax.swing.JPanel; ! import javax.swing.SwingConstants; ! import javax.swing.UIManager; ! ! import org.ejtools.adwt.service.AboutService; ! ! /** ! * Custom AboutService that shows the EJTools logo and some informations about the virtual machine. ! * ! * @author letiemble ! * @created 2 novembre 2001 ! * @version $Revision$ ! */ ! public class AboutDialog implements AboutService ! { ! /** The main panel */ ! protected JPanel panel = null; ! /** Bundle for I18N */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); ! ! ! /** Constructor for the AboutServiceProvider object */ ! public AboutDialog() { } ! ! ! /** ! * Implementation of AboutService. Return the main panel to show. ! * ! * @return The main panel ! */ ! public Container getPanel() ! { ! // Lazy creation ! if (this.panel == null) ! { ! this.createPanel(); ! } ! return this.panel; ! } ! ! ! /** ! * Implementation of AboutService. Return the title of the About box. ! * ! * @return The String to display as title ! */ ! public String getTitle() ! { ! return resources.getString("about.dialog.title"); ! } ! ! ! /** Creation of the panel to show */ ! protected void createPanel() ! { ! this.panel = new JPanel(new BorderLayout()); ! ! // North part of the panel ! this.panel.add("North", new JLabel(new ImageIcon(getClass().getResource("/images/logo.png")))); ! ! // Center part of the panel ! this.panel.add("Center", new JLabel(" ")); ! ! // South part of the panel ! JPanel info = new JPanel(new GridLayout(3, 1)); ! ! JLabel java = new JLabel( ! resources.getString("about.dialog.text.javaVersion") ! + " : " ! + System.getProperty("java.version"), SwingConstants.LEADING); ! java.setForeground(Color.black); ! info.add(java); ! ! JLabel vm = new JLabel( ! resources.getString("about.dialog.text.virtualMachine") ! + " : " ! + System.getProperty("java.vm.name") ! + ", " ! + System.getProperty("java.vm.version"), SwingConstants.LEADING); ! vm.setForeground(Color.black); ! info.add(vm); ! ! JLabel laf = new JLabel( ! resources.getString("about.dialog.text.lookAndFeel") ! + " : " ! + UIManager.getLookAndFeel().getName(), SwingConstants.LEADING); ! vm.setForeground(Color.black); ! info.add(laf); ! this.panel.add("South", info); ! } ! } Index: Browser.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/Browser.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Browser.java 3 Mar 2003 20:34:52 -0000 1.2 --- Browser.java 27 Nov 2003 01:30:28 -0000 1.3 *************** *** 10,29 **** --- 10,41 ---- import java.awt.event.WindowEvent; import java.beans.beancontext.BeanContextServicesSupport; + import java.io.File; + import java.net.URL; import java.util.Arrays; import java.util.List; import java.util.ResourceBundle; + import javax.swing.JFileChooser; import javax.swing.JOptionPane; + import javax.swing.filechooser.FileFilter; import org.apache.log4j.Logger; + import org.ejtools.adwt.LookAndFeelUtil; import org.ejtools.adwt.action.Command; import org.ejtools.adwt.action.file.ExitAction; import org.ejtools.adwt.action.file.NewAction; + import org.ejtools.adwt.action.file.OpenWorkspaceAction; + import org.ejtools.adwt.action.file.SaveAsWorkspaceAction; + import org.ejtools.adwt.action.file.SaveWorkspaceAction; import org.ejtools.adwt.service.AboutServiceProvider; + import org.ejtools.adwt.service.HistoryService; + import org.ejtools.adwt.service.HistoryServiceProvider; import org.ejtools.adwt.service.MDIFrameServiceProvider; import org.ejtools.adwt.service.MenuBarServiceProvider; import org.ejtools.adwt.service.ToolBarServiceProvider; import org.ejtools.jndi.browser.frame.ServerInternalFrame; + import org.ejtools.jndi.browser.model.Server; import org.ejtools.jndi.browser.model.service.ConnectionMetaData; + import org.ejtools.jndi.browser.state.WorkbenchState; import org.ejtools.util.service.Profile; import org.ejtools.util.service.ProfileServiceProvider; *************** *** 33,52 **** * * @author letiemble - * @created 21 mars 2002 * @version $Revision$ */ ! public class Browser extends BeanContextServicesSupport { - /** Description of the Field */ protected AboutServiceProvider aboutService; - /** Description of the Field */ protected ProfileServiceProvider factoryProvider; - /** Description of the Field */ protected MDIFrameServiceProvider frameService; - /** Description of the Field */ protected MenuBarServiceProvider menuBarService; - /** Description of the Field */ protected ToolBarServiceProvider toolBarService; /** Description of the Field */ private static Logger logger = Logger.getLogger(Browser.class); /** Bundle for I18N */ --- 45,78 ---- * * @author letiemble * @version $Revision$ + * @created 21 mars 2002 */ ! public class Browser extends BeanContextServicesSupport implements HistoryService.Holder { protected AboutServiceProvider aboutService; protected ProfileServiceProvider factoryProvider; protected MDIFrameServiceProvider frameService; protected MenuBarServiceProvider menuBarService; protected ToolBarServiceProvider toolBarService; + protected WorkbenchState stateManager; + protected HistoryServiceProvider historyService; + /** Description of the Field */ + private FileFilter WORKSPACE_FILE_FILTER = + new FileFilter() + { + public boolean accept(File file) + { + return file.getName().endsWith(".xml"); + } + + + public String getDescription() + { + return Browser.resources.getString("file.dialog.extension.description"); + } + }; + + /** Default logger */ private static Logger logger = Logger.getLogger(Browser.class); /** Bundle for I18N */ *************** *** 59,62 **** --- 85,91 ---- logger.debug("JNDI Browser starting..."); + // Search for custom Look and Feel + LookAndFeelUtil.setLookAndFeel(); + this.frameService = new MDIFrameServiceProvider(); this.aboutService = new AboutServiceProvider(new AboutDialog()); *************** *** 64,67 **** --- 93,98 ---- this.toolBarService = new ToolBarServiceProvider(); this.factoryProvider = new ProfileServiceProvider(new ConnectionMetaData()); + this.historyService = new HistoryServiceProvider(this, 4); + this.stateManager = new WorkbenchState(this); try *************** *** 96,104 **** if (idx >= 0) { ! Browser.this.add(new ServerInternalFrame(Browser.this.factoryProvider.getProfile(idx))); } } } ! )); this.add(new ExitAction( --- 127,215 ---- if (idx >= 0) { ! Profile profile = Browser.this.factoryProvider.getProfile(idx); ! ServerInternalFrame frame = new ServerInternalFrame(); ! frame.setProfile(profile); ! frame.setServer(new Server()); ! Browser.this.add(frame); } } } ! )); ! ! this.add(this.stateManager); ! ! this.add(new OpenWorkspaceAction( ! new Command() ! { ! public void execute() ! { ! try ! { ! URL selectedURL = selectWorkspaceFile(resources.getString("file.dialog.title.load"), JFileChooser.OPEN_DIALOG); ! if (selectedURL != null) ! { ! loadResource(selectedURL, null); ! } ! } ! catch (Exception e) ! { ! // JOptionPane.showMessageDialog(null, "Could not load file:" + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); ! logger.error("Error while loading workspace", e); ! } ! } ! } ! )); ! ! this.add(new SaveWorkspaceAction( ! new Command() ! { ! public void execute() ! { ! try ! { ! if (Browser.this.stateManager.getWorkbenchURL() == null) ! { ! URL selectedURL = selectWorkspaceFile(resources.getString("file.dialog.title.save"), JFileChooser.SAVE_DIALOG); ! if (selectedURL != null) ! { ! Browser.this.stateManager.setWorkbenchURL(selectedURL); ! } ! } ! if (Browser.this.stateManager.getWorkbenchURL() != null) ! { ! Browser.this.stateManager.store(); ! } ! } ! catch (Exception e) ! { ! logger.error("Error while saving workspace", e); ! } ! } ! } ! )); ! ! this.add(new SaveAsWorkspaceAction( ! new Command() ! { ! public void execute() ! { ! try ! { ! URL selectedURL = selectWorkspaceFile(resources.getString("file.dialog.title.save"), JFileChooser.SAVE_DIALOG); ! if (selectedURL != null) ! { ! Browser.this.stateManager.setWorkbenchURL(selectedURL); ! Browser.this.stateManager.store(); ! } ! } ! catch (Exception e) ! { ! logger.error("Error while saving workspace", e); ! } ! } ! } ! )); ! ! this.add(this.historyService); this.add(new ExitAction( *************** *** 110,114 **** } } ! )); this.add(this.frameService); --- 221,225 ---- } } ! )); this.add(this.frameService); *************** *** 139,142 **** --- 250,267 ---- + /** + * Description of the Method + * + * @param url Description of the Parameter + * @param context Description of the Parameter + */ + public void loadResource(URL url, Object context) + { + this.stateManager.setWorkbenchURL(url); + this.stateManager.load(); + this.historyService.push(url, context); + } + + /** Quit method */ public void quit() *************** *** 144,146 **** --- 269,304 ---- System.exit(0); } + + + /** + * Description of the Method + * + * @param title Description of the Parameter + * @param type Description of the Parameter + * @return Description of the Return Value + * @exception Exception Description of the Exception + */ + private URL selectWorkspaceFile(String title, int type) + throws Exception + { + // Fix for JFileChooser/SecurityManager bug (#4264750) + SecurityManager s = System.getSecurityManager(); + System.setSecurityManager(null); + + // Choose file + JFileChooser chooser = new JFileChooser(System.getProperty("user.dir")); + chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); + chooser.setDialogTitle(title); + chooser.setDialogType(type); + chooser.setFileFilter(WORKSPACE_FILE_FILTER); + + int returnVal = chooser.showDialog(null, title); + System.setSecurityManager(s); + if (returnVal != JFileChooser.APPROVE_OPTION) + { + return null; + } + + return chooser.getSelectedFile().toURL(); + } } Index: Main.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/Main.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Main.java 24 Feb 2003 22:32:15 -0000 1.2 --- Main.java 27 Nov 2003 01:30:28 -0000 1.3 *************** *** 1,115 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser; ! ! import java.beans.Beans; ! 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; ! ! import org.apache.log4j.Logger; ! ! /** ! * Main class for the JNDI Browser. Construct the classloader dynamically by scanning directories. Once the classloader has been built, launch the Browser with ! * a custom security manager. ! * ! * @author letiemble ! * @created 21 mars 2002 ! * @version $Revision$ ! */ ! public class Main ! { ! /** Log4j logger */ ! static Logger logger = Logger.getLogger(Main.class); ! ! ! /** ! * The main method ! * ! * @param args The command line arguments ! * @exception Exception Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! logger.debug("========================================"); ! logger.debug("JAVA_HOME : " + System.getProperty("java.home")); ! logger.debug("Vendor : " + System.getProperty("java.vendor")); ! logger.debug("Version : " + System.getProperty("java.version")); ! logger.debug("Operating Sys. : " + System.getProperty("os.name")); ! logger.debug("Architecture : " + System.getProperty("os.arch")); ! logger.debug("Version : " + System.getProperty("os.version")); ! logger.debug("========================================"); ! ! File pluginDir; ! File[] plugins; ! LinkedList list = new LinkedList(); ! ! logger.debug("Building classpath..."); ! ! // Store the files from lib directory ! logger.debug("Scanning lib directory..."); ! pluginDir = new File("../lib"); ! plugins = pluginDir.listFiles(); ! if (plugins != null) ! { ! for (int i = 0; i < plugins.length; i++) ! { ! logger.debug("Found " + plugins[i].toURL()); ! list.add(plugins[i].toURL()); ! } ! } ! ! // Store the files from lib/ext directory ! logger.debug("Scanning lib/ext directory..."); ! pluginDir = new File("../lib/ext"); ! plugins = pluginDir.listFiles(); ! if (plugins != null) ! { ! for (int i = 0; i < plugins.length; i++) ! { ! logger.debug("Found " + plugins[i].toURL()); ! list.add(plugins[i].toURL()); ! } ! } ! logger.debug("========================================"); ! ! // Create a custom classloader ! URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); ! Thread.currentThread().setContextClassLoader( ! new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader()) ! ); ! ! // Custom security manager ! System.setSecurityManager( ! new SecurityManager() ! { ! public void checkPermission(Permission p) { } ! ! ! public void checkPermission(Permission perm, Object context) { } ! }); ! ! // Create the JNDI Browser JavaBean ! logger.debug("Launching EJTools JNDI Browser"); ! AccessController.doPrivileged( ! new PrivilegedExceptionAction() ! { ! public Object run() ! throws Exception ! { ! Beans.instantiate(Thread.currentThread().getContextClassLoader(), "org.ejtools.jndi.browser.Browser"); ! return null; ! } ! }); ! } ! } ! --- 1,115 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser; ! ! import java.beans.Beans; ! 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; ! ! import org.apache.log4j.Logger; ! ! /** ! * Main class for the JNDI Browser. Construct the classloader dynamically by scanning directories. Once the classloader has been built, launch the Browser with ! * a custom security manager. ! * ! * @author letiemble ! * @created 21 mars 2002 ! * @version $Revision$ ! */ ! public class Main ! { ! /** Log4j logger */ ! static Logger logger = Logger.getLogger(Main.class); ! ! ! /** ! * The main method ! * ! * @param args The command line arguments ! * @exception Exception Exception ! */ ! public static void main(String[] args) ! throws Exception ! { ! logger.debug("========================================"); ! logger.debug("JAVA_HOME : " + System.getProperty("java.home")); ! logger.debug("Vendor : " + System.getProperty("java.vendor")); ! logger.debug("Version : " + System.getProperty("java.version")); ! logger.debug("Operating Sys. : " + System.getProperty("os.name")); ! logger.debug("Architecture : " + System.getProperty("os.arch")); ! logger.debug("Version : " + System.getProperty("os.version")); ! logger.debug("========================================"); ! ! File pluginDir; ! File[] plugins; ! LinkedList list = new LinkedList(); ! ! logger.debug("Building classpath..."); ! ! // Store the files from lib directory ! logger.debug("Scanning lib directory..."); ! pluginDir = new File("../lib"); ! plugins = pluginDir.listFiles(); ! if (plugins != null) ! { ! for (int i = 0; i < plugins.length; i++) ! { ! logger.debug("Found " + plugins[i].toURL()); ! list.add(plugins[i].toURL()); ! } ! } ! ! // Store the files from lib/ext directory ! logger.debug("Scanning lib/ext directory..."); ! pluginDir = new File("../lib/ext"); ! plugins = pluginDir.listFiles(); ! if (plugins != null) ! { ! for (int i = 0; i < plugins.length; i++) ! { ! logger.debug("Found " + plugins[i].toURL()); ! list.add(plugins[i].toURL()); ! } ! } ! logger.debug("========================================"); ! ! // Create a custom classloader ! URL[] pluginURLs = (URL[]) list.toArray(new URL[list.size()]); ! Thread.currentThread().setContextClassLoader( ! new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader()) ! ); ! ! // Custom security manager ! System.setSecurityManager( ! new SecurityManager() ! { ! public void checkPermission(Permission p) { } ! ! ! public void checkPermission(Permission perm, Object context) { } ! }); ! ! // Create the JNDI Browser JavaBean ! logger.debug("Launching EJTools JNDI Browser"); ! AccessController.doPrivileged( ! new PrivilegedExceptionAction() ! { ! public Object run() ! throws Exception ! { ! Beans.instantiate(Thread.currentThread().getContextClassLoader(), "org.ejtools.jndi.browser.Browser"); ! return null; ! } ! }); ! } ! } ! |
Update of /cvsroot/ejtools/applications/jndi.browser/src/conf In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/conf Modified Files: README README_JBOSS_3.x README_WEBLOGIC_7.x jndi.connection.properties log4j.properties Log Message: Address Todo #755528 Address Todo #800902 Index: README =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/conf/README,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** README 8 Jan 2003 22:39:12 -0000 1.6 --- README 27 Nov 2003 01:30:28 -0000 1.7 *************** *** 1,12 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! See application server specific README for detailed configuration. --- 1,12 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! See application server specific README for detailed configuration. Index: README_JBOSS_3.x =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/conf/README_JBOSS_3.x,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README_JBOSS_3.x 10 Jan 2003 21:24:06 -0000 1.3 --- README_JBOSS_3.x 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 1,17 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! To use the Swing based JNDI Browser under JBoss 3.x, do as follow : ! - copy the jbossall-client.jar under the client folder of the JBoss installation ($JBOSS_HOME/client or %JBOSS_HOME%\client) to the lib/ext folder of JNDI Browser. ! - copy the jcert.jar, jnet.jar and jsse.jar fiels under the client folder of the JBoss installation ($JBOSS_HOME/client or %JBOSS_HOME%\client) to the lib/ext folder of JMX Browser, if you are using JDK1.3 ! - copy the jboss-jmx.jar file under the lib folder of the JBoss installation ($JBOSS_HOME/lib or %JBOSS_HOME%\lib) to the lib/ext folder of JNDI Browser. ! ! That's it. --- 1,17 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! To use the Swing based JNDI Browser under JBoss 3.x, do as follow : ! - copy the jbossall-client.jar under the client folder of the JBoss installation ($JBOSS_HOME/client or %JBOSS_HOME%\client) to the lib/ext folder of JNDI Browser. ! - copy the jcert.jar, jnet.jar and jsse.jar fiels under the client folder of the JBoss installation ($JBOSS_HOME/client or %JBOSS_HOME%\client) to the lib/ext folder of JMX Browser, if you are using JDK1.3 ! - copy the jboss-jmx.jar file under the lib folder of the JBoss installation ($JBOSS_HOME/lib or %JBOSS_HOME%\lib) to the lib/ext folder of JNDI Browser. ! ! That's it. Index: README_WEBLOGIC_7.x =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/conf/README_WEBLOGIC_7.x,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README_WEBLOGIC_7.x 8 Jan 2003 22:04:50 -0000 1.2 --- README_WEBLOGIC_7.x 27 Nov 2003 01:30:28 -0000 1.3 *************** *** 1,15 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! To use the Swing based JNDI Browser under WebLogic 7.x, do as follow : ! - copy the weblogic.jar under the server/lib folder of the WebLogic installation ($BEA_HOME/weblogic700/server/lib or %BEA_HOME%\weblogic700\server\lib) to the lib/ext folder of JNDI Browser. ! ! That's it. --- 1,15 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! To use the Swing based JNDI Browser under WebLogic 7.x, do as follow : ! - copy the weblogic.jar under the server/lib folder of the WebLogic installation ($BEA_HOME/weblogic700/server/lib or %BEA_HOME%\weblogic700\server\lib) to the lib/ext folder of JNDI Browser. ! ! That's it. Index: jndi.connection.properties =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/conf/jndi.connection.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** jndi.connection.properties 21 Feb 2003 22:16:58 -0000 1.1 --- jndi.connection.properties 27 Nov 2003 01:30:28 -0000 1.2 *************** *** 1,45 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! connection.10.name=JBoss 3.x ! connection.10.factory=org.jnp.interfaces.NamingContextFactory ! connection.10.packages=org.jboss.naming:org.jnp.interfaces ! connection.10.context= ! connection.10.url=jnp://localhost:1099 ! connection.10.principal= ! connection.10.credentials= ! ! ! connection.20.name=WebLogic 7.x ! connection.20.factory=weblogic.jndi.WLInitialContextFactory ! connection.20.packages=weblogic.jndi ! connection.20.context= ! connection.20.url=iiop://localhost:7001 ! connection.20.principal= ! connection.20.credentials= ! ! ! connection.80.name=Trifork 3.x ! connection.80.factory=com.sun.jndi.cosnaming.CNCtxFactory ! connection.80.packages=com.sun.jndi.cosnaming ! connection.80.context= ! connection.80.url=iiop://localhost:2121 ! connection.80.principal= ! connection.80.credentials= ! ! ! connection.90.name=Sun J2EE RI 1.3.1 ! connection.90.factory=com.sun.enterprise.naming.SerialInitContextFactory ! connection.90.packages=com.sun.enterprise.naming ! connection.90.context= ! connection.90.url=iiop://localhost:1050 ! connection.90.principal= ! connection.90.credentials= --- 1,45 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! connection.10.name=JBoss 3.x ! connection.10.factory=org.jnp.interfaces.NamingContextFactory ! connection.10.packages=org.jboss.naming:org.jnp.interfaces ! connection.10.context= ! connection.10.url=jnp://localhost:1099 ! connection.10.principal= ! connection.10.credentials= ! ! ! connection.20.name=WebLogic 7.x ! connection.20.factory=weblogic.jndi.WLInitialContextFactory ! connection.20.packages=weblogic.jndi ! connection.20.context= ! connection.20.url=iiop://localhost:7001 ! connection.20.principal= ! connection.20.credentials= ! ! ! connection.80.name=Trifork 3.x ! connection.80.factory=com.sun.jndi.cosnaming.CNCtxFactory ! connection.80.packages=com.sun.jndi.cosnaming ! connection.80.context= ! connection.80.url=iiop://localhost:2121 ! connection.80.principal= ! connection.80.credentials= ! ! ! connection.90.name=Sun J2EE RI 1.3.1 ! connection.90.factory=com.sun.enterprise.naming.SerialInitContextFactory ! connection.90.packages=com.sun.enterprise.naming ! connection.90.context= ! connection.90.url=iiop://localhost:1050 ! connection.90.principal= ! connection.90.credentials= Index: log4j.properties =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/conf/log4j.properties,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** log4j.properties 10 Jan 2003 21:24:06 -0000 1.6 --- log4j.properties 27 Nov 2003 01:30:28 -0000 1.7 *************** *** 1,26 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Set root category priority to DEBUG and its only appender to STDOUT. ! log4j.rootCategory=DEBUG, STDOUT, R ! ! # STDOUT is set to be a ConsoleAppender. ! log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender ! log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout ! log4j.appender.STDOUT.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n ! ! # R is set to be a RollingFileAppender ! log4j.appender.R=org.apache.log4j.RollingFileAppender ! log4j.appender.R.File=../logs/event.log ! log4j.appender.R.MaxFileSize=500KB ! log4j.appender.R.MaxBackupIndex=5 ! log4j.appender.R.layout=org.apache.log4j.PatternLayout ! log4j.appender.R.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n --- 1,26 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Set root category priority to DEBUG and its only appender to STDOUT. ! log4j.rootCategory=DEBUG, STDOUT, R ! ! # STDOUT is set to be a ConsoleAppender. ! log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender ! log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout ! log4j.appender.STDOUT.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n ! ! # R is set to be a RollingFileAppender ! log4j.appender.R=org.apache.log4j.RollingFileAppender ! log4j.appender.R.File=../logs/event.log ! log4j.appender.R.MaxFileSize=500KB ! log4j.appender.R.MaxBackupIndex=5 ! log4j.appender.R.layout=org.apache.log4j.PatternLayout ! log4j.appender.R.layout.ConversionPattern=[%-5p] (%c:%L) - %m%n |
From: <let...@us...> - 2003-11-27 01:31:01
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/action In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/action Modified Files: SelectFactoryAction.java Log Message: Address Todo #755528 Address Todo #800902 Index: SelectFactoryAction.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/action/SelectFactoryAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SelectFactoryAction.java 3 Mar 2003 20:34:49 -0000 1.2 --- SelectFactoryAction.java 27 Nov 2003 01:30:28 -0000 1.3 *************** *** 1,39 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.action; ! ! import java.util.ResourceBundle; ! ! import org.ejtools.adwt.action.Command; ! import org.ejtools.adwt.action.CommandAction; ! ! /** ! * Custom CommandAction to allow the selection of the default QueueConnectionFactory or the default TopicConnectionFactory. ! * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! */ ! public class SelectFactoryAction extends CommandAction ! { ! /** Bundle for I18N */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); ! ! ! /** ! * Build the SelectFactoryAction with the given key ! * ! * @param key The I18N key to use ! * @param command The Command associated with this Action ! */ ! public SelectFactoryAction(String key, Command command) ! { ! super(command, resources, key); ! this.setMenu("action.options"); ! } ! } ! --- 1,39 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.action; ! ! import java.util.ResourceBundle; ! ! import org.ejtools.adwt.action.Command; ! import org.ejtools.adwt.action.CommandAction; ! ! /** ! * Custom CommandAction to allow the selection of the default QueueConnectionFactory or the default TopicConnectionFactory. ! * ! * @author letiemble ! * @created 29 décembre 2001 ! * @version $Revision$ ! */ ! public class SelectFactoryAction extends CommandAction ! { ! /** Bundle for I18N */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.jndi.browser.Resources"); ! ! ! /** ! * Build the SelectFactoryAction with the given key ! * ! * @param key The I18N key to use ! * @param command The Command associated with this Action ! */ ! public SelectFactoryAction(String key, Command command) ! { ! super(command, resources, key); ! this.setMenu("action.options"); ! } ! } ! |
From: <let...@us...> - 2003-11-27 01:31:01
|
Update of /cvsroot/ejtools/applications/jndi.browser In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser Modified Files: .cvsignore maven.xml project.xml Added Files: .classpath .project Log Message: Address Todo #755528 Address Todo #800902 --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/conf"/> <classpathentry kind="src" path="src/main"/> <classpathentry kind="src" path="src/resources"/> <classpathentry kind="src" path="/ejtools-libraries-adwt"/> <classpathentry kind="src" path="/ejtools-libraries-common"/> <classpathentry kind="src" path="/ejtools-libraries-icons"/> <classpathentry kind="src" path="/ejtools-libraries-taglib"/> <classpathentry kind="src" path="/ejtools-thirdparty"/> <classpathentry kind="var" path="JRE_LIB" sourcepath="JDK_SRC"/> <classpathentry kind="var" path="MAVEN_REPO/dreambean/jars/awt-1.0.jar"/> <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-3.0.4.jar"/> <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jbossall-client-3.0.4.jar"/> <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-common-3.0.4.jar"/> <classpathentry kind="var" path="MAVEN_REPO/jboss/jars/jboss-system-3.0.4.jar"/> <classpathentry kind="var" path="MAVEN_REPO/log4j/jars/log4j-1.2.8.jar"/> <classpathentry kind="var" path="MAVEN_REPO/struts/jars/struts-1.0.2.jar"/> <classpathentry kind="var" path="MAVEN_REPO/sun/jars/j2ee-1.4.0.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>ejtools-app-jndi-browser</name> <comment></comment> <projects> <project>ejtools-libraries-adwt</project> <project>ejtools-libraries-common</project> <project>ejtools-libraries-icons</project> <project>ejtools-libraries-taglib</project> <project>ejtools-thirdparty</project> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> Index: .cvsignore =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 8 Mar 2003 20:52:10 -0000 1.3 --- .cvsignore 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 1,4 **** bin ! dist ! output ! target --- 1,4 ---- bin ! dist ! output ! target Index: maven.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/maven.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** maven.xml 8 Mar 2003 20:52:11 -0000 1.3 --- maven.xml 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 22,24 **** --- 22,27 ---- <attainGoal name="ejtools:webapp"/> </postGoal> + <postGoal name="ejtools:app"> + <attainGoal name="ejtools:app-unpack"/> + </postGoal> </project> Index: project.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/project.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** project.xml 5 Aug 2003 22:47:21 -0000 1.3 --- project.xml 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 1,150 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <!-- ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! --> ! <project> ! <extend>${basedir}/../../project.xml</extend> ! <id>ejtools-jndi-browser</id> ! <groupId>ejtools</groupId> ! <name>JNDI Browser</name> ! <currentVersion>1.0.2</currentVersion> ! <package>org/ejtools/jndi/browser</package> ! <url>/applications/jndi.browser</url> ! <dependencies> ! <dependency> ! <id>log4j</id> ! <version>1.2.7</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>mx4j</id> ! <artifactId>mx4j-jmx</artifactId> ! <version>1.1</version> ! </dependency> ! <dependency> ! <id>struts</id> ! <version>1.0.2</version> ! <properties> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <!-- Project dependencies --> ! <dependency> ! <id>ejtools-adwt</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-common</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-j2ee-icons</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-taglib</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <war.bundle.jar>true</war.bundle.jar> ! <war.bundle.tld>true</war.bundle.tld> ! </properties> ! </dependency> ! <!-- Local dependencies --> ! <dependency> ! <id>dreambean</id> ! <groupId>dreambean</groupId> ! <artifactId>awt</artifactId> ! <version>1.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jbossall-client</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss-common</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss-system</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>sun</id> ! <groupId>sun</groupId> ! <artifactId>j2ee</artifactId> ! <version>1.3.1</version> ! </dependency> ! <dependency> ! <id>sun</id> ! <groupId>sun</groupId> ! <artifactId>jlfgr</artifactId> ! <version>1.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! </dependencies> ! <build> ! <nagEmailAddress>ejt...@so...</nagEmailAddress> ! <!-- Source dirs --> ! <sourceDirectory>${basedir}/src/main</sourceDirectory> ! <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory> ! <integrationUnitTestSourceDirectory>${basedir}/src/test</integrationUnitTestSourceDirectory> ! <aspectSourceDirectory/> ! <!-- Unit test classes --> ! <unitTest> ! <includes> ! <include>**/*Test.java</include> ! </includes> ! </unitTest> ! <!-- Resources --> ! <resources> ! <resource> ! <directory>${basedir}/src/resources</directory> ! </resource> ! <!-- XDoclet Resources --> ! <resource> ! <directory>${maven.build.dir}/xdoclet/xdoclet</directory> ! </resource> ! </resources> ! </build> ! </project> --- 1,140 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <!-- ! # ================================================================================ ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at gnu.org. ! # ! # $Revision$ ! # ================================================================================ ! --> ! <project> ! <extend>${basedir}/../../project.xml</extend> ! <id>ejtools-jndi-browser</id> ! <groupId>ejtools</groupId> ! <name>JNDI Browser</name> ! <currentVersion>1.1.0</currentVersion> ! <package>org/ejtools/jndi/browser</package> ! <url>/applications/jndi.browser</url> ! <dependencies> ! <dependency> ! <id>log4j</id> ! <version>1.2.7</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>mx4j</id> ! <artifactId>mx4j-jmx</artifactId> ! <version>1.1</version> ! </dependency> ! <dependency> ! <id>struts</id> ! <version>1.0.2</version> ! <properties> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <!-- Project dependencies --> ! <dependency> ! <id>ejtools-adwt</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-common</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! <war.bundle.jar>true</war.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-j2ee-icons</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>ejtools-taglib</id> ! <groupId>ejtools</groupId> ! <version>1.0.0</version> ! <properties> ! <war.bundle.jar>true</war.bundle.jar> ! <war.bundle.tld>true</war.bundle.tld> ! </properties> ! </dependency> ! <!-- Local dependencies --> ! <dependency> ! <id>dreambean</id> ! <groupId>dreambean</groupId> ! <artifactId>awt</artifactId> ! <version>1.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jbossall-client</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss-common</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>jboss</id> ! <groupId>jboss</groupId> ! <artifactId>jboss-system</artifactId> ! <version>3.0.4</version> ! </dependency> ! <dependency> ! <id>sun</id> ! <groupId>sun</groupId> ! <artifactId>j2ee</artifactId> ! <version>1.3.1</version> ! </dependency> ! <dependency> ! <id>sun</id> ! <groupId>sun</groupId> ! <artifactId>jlfgr</artifactId> ! <version>1.0</version> ! <properties> ! <app.bundle.jar>true</app.bundle.jar> ! </properties> ! </dependency> ! </dependencies> ! <build> ! <!-- Resources --> ! <resources> ! <!-- General resources --> ! <resource> ! <directory>${basedir}/src/resources</directory> ! </resource> ! <!-- XDoclet Resources --> ! <resource> ! <directory>${basedir}/target/xdoclet/xdoclet</directory> ! <includes>*.properties</includes> ! </resource> ! </resources> ! </build> ! </project> |
From: <let...@us...> - 2003-11-27 01:31:01
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/etc In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/etc Modified Files: run.mf Log Message: Address Todo #755528 Address Todo #800902 Index: run.mf =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/etc/run.mf,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** run.mf 10 Feb 2003 21:06:29 -0000 1.7 --- run.mf 27 Nov 2003 01:30:28 -0000 1.8 *************** *** 1,10 **** ! Main-Class: org.ejtools.jndi.browser.Main ! Class-Path: ../conf/ ../lib/log4j.jar ! ! Name: org/ejtools/jndi/browser/ ! Specification-Title: @module.display.name@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.display.name@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@ ! Implementation-Vendor: EJTools Project --- 1,10 ---- ! Main-Class: org.ejtools.jndi.browser.Main ! Class-Path: ../conf/ ../lib/log4j.jar ! ! Name: org/ejtools/jndi/browser/ ! Specification-Title: @module.display.name@ ! Specification-Version: @version.major@.@version.minor@.@version.revision@ ! Specification-Vendor: EJTools Project ! Implementation-Title: @module.display.name@ ! Implementation-Version: @version.major@.@version.minor@.@version.revision@ ! Implementation-Vendor: EJTools Project |
From: <let...@us...> - 2003-11-27 01:31:01
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/bin In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/bin Modified Files: run.bat run.sh Log Message: Address Todo #755528 Address Todo #800902 Index: run.bat =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/bin/run.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** run.bat 24 Oct 2002 22:31:45 -0000 1.3 --- run.bat 27 Nov 2003 01:30:28 -0000 1.4 *************** *** 1,12 **** ! @echo off ! ! @if not "%ECHO%" == "" echo %ECHO% ! ! @if "%OS%" == "Windows_NT" setlocal ! ! ! ! java -jar run.jar ! ! ! --- 1,12 ---- ! @echo off ! ! @if not "%ECHO%" == "" echo %ECHO% ! ! @if "%OS%" == "Windows_NT" setlocal ! ! ! ! java -jar run.jar ! ! ! Index: run.sh =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/bin/run.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** run.sh 22 Apr 2002 17:41:37 -0000 1.1 --- run.sh 27 Nov 2003 01:30:28 -0000 1.2 *************** *** 1,3 **** ! #!/bin/sh ! ! java -jar run.jar --- 1,3 ---- ! #!/bin/sh ! ! java -jar run.jar |
From: <let...@us...> - 2003-11-27 01:30:39
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/webapp/content In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/webapp/content Modified Files: index.jsp index.xml style.css style.xsl Log Message: Address Todo #755528 Address Todo #800902 Index: index.jsp =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/index.jsp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.jsp 5 Aug 2003 22:47:22 -0000 1.13 --- index.jsp 27 Nov 2003 01:30:30 -0000 1.14 *************** *** 1,302 **** <?xml version="1.0" encoding="UTF-8"?> <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools-taglib.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <jsp:directive.page language="java" contentType="text/html"/> ! <app:connect/> ! <html> ! <head> ! <title> ! <bean:message key="web.index.title"/> ! </title> ! <link rel="stylesheet" type="text/css" href="style.css"/> ! <html:base/> ! </head> ! <body> ! <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> ! <tr> ! <td width="100%"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF"> ! <tr> ! <td> ! <b> ! <font face="verdana,arial,sans-serif" color="#000000" size="6"> ! <bean:message key="web.index.title"/> ! </font> ! </b> ! </td> ! <td align="right" rowspan="2"> ! <img border="0" src="images/ejtools50.png" width="175" height="50"/> ! </td> ! </tr> ! <tr> ! <td> ! <bean:message key="web.index.title"/> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <center> ! <form action="refresh.do"> ! <html:submit styleClass="button"> ! <bean:message key="web.button.refresh"/> ! </html:submit> ! </form> ! </center> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <logic:present name="moduleNames"> ! <bean:size name="moduleNames" id="moduleNamesSize"/> ! <logic:greaterThan name="moduleNamesSize" value="0"> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <html:form action="/view"> ! <input type="hidden" name="type" value="ejbmodule"/> ! <strong> ! <bean:message key="web.text.namespace.ejbmodule"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options name="moduleNames"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <logic:iterate name="moduleTree" id="container" type="org.ejtools.jndi.browser.web.JNDIContainer"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <strong> ! <bean:message key="web.text.namespace.ejb"/> ! <jsp:text> : </jsp:text> ! <bean:write name="container" property="name"/> ! </strong> ! </td> ! </tr> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="container" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </logic:greaterThan> ! </logic:present> ! <logic:present name="webappTrees"> ! <bean:size name="webappTrees" id="webappTreesSize"/> ! <logic:greaterThan name="webappTreesSize" value="0"> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <html:form action="/view"> ! <input type="hidden" name="type" value="webapp"/> ! <strong> ! <bean:message key="web.text.namespace.webapp"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options collection="webappTrees" property="name" labelProperty="name"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="webappTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </logic:greaterThan> ! </logic:present> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <strong> ! <bean:message key="web.text.namespace.java"/> ! </strong> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.java"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="localTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <strong> ! <bean:message key="web.text.namespace.global"/> ! </strong> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.global"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="globalTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </body> ! </html> </jsp:root> --- 1,270 ---- <?xml version="1.0" encoding="UTF-8"?> <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools-taglib.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <jsp:directive.page language="java" contentType="text/html"/> ! <app:connect/> ! <html> ! <head> ! <title> ! <bean:message key="web.index.title"/> ! </title> ! <link rel="stylesheet" type="text/css" href="style.css"/> ! <html:base/> ! </head> ! <body> ! <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> ! <tr> ! <td width="100%"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF"> ! <tr> ! <td> ! <b> ! <font face="verdana,arial,sans-serif" color="#000000" size="6"> ! <bean:message key="web.index.title"/> ! </font> ! </b> ! </td> ! <td align="right" rowspan="2"> ! <img border="0" src="images/ejtools50.png" width="175" height="50"/> ! </td> ! </tr> ! <tr> ! <td> ! <bean:message key="web.index.title"/> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <center> ! <form action="refresh.do"> ! <html:submit styleClass="button"> ! <bean:message key="web.button.refresh"/> ! </html:submit> ! </form> ! </center> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <bean:size name="moduleNames" id="moduleNamesSize"/> ! <logic:greaterThan name="moduleNamesSize" value="0"> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <html:form action="/view"> ! <input type="hidden" name="type" value="ejbmodule"/> ! <strong> ! <bean:message key="web.text.namespace.ejbmodule"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options name="moduleNames"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <logic:iterate name="moduleTree" id="container" type="org.ejtools.jndi.browser.web.JNDIContainer"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <strong> ! <bean:message key="web.text.namespace.ejb"/> ! <jsp:text><![CDATA[ : ]]></jsp:text> ! <bean:write name="container" property="name"/> ! </strong> ! </td> ! </tr> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="container" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"><bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/><ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! </tr> ! </table> ! </logic:iterate> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </logic:greaterThan> ! <bean:size name="webappTrees" id="webappTreesSize"/> ! <logic:greaterThan name="webappTreesSize" value="0"> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <html:form action="/view"> ! <input type="hidden" name="type" value="webapp"/> ! <strong> ! <bean:message key="web.text.namespace.webapp"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options collection="webappTrees" property="name" labelProperty="name"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="webappTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"><bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/><ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </logic:greaterThan> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <strong> ! <bean:message key="web.text.namespace.java"/> ! </strong> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.java"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="localTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"><bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/><ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <strong> ! <bean:message key="web.text.namespace.global"/> ! </strong> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.global"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="globalTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"><bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/><ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/></td> ! </tr> ! </table> ! </logic:iterate> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </body> ! </html> </jsp:root> Index: index.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/index.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.xml 5 Aug 2003 22:47:22 -0000 1.13 --- index.xml 27 Nov 2003 01:30:30 -0000 1.14 *************** *** 1,226 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <?xml-stylesheet type="text/xsl" href="style.xsl"?> ! <Page xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools-taglib.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> ! <Content> ! <!-- ======================================== --> ! <!-- Header --> ! <!-- ======================================== --> ! <TitleBlock> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> ! <Path> ! <Element> ! <bean:message key="web.index.title"/> ! </Element> ! </Path> ! </TitleBlock> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <center> ! <form action="refresh.do"> ! <html:submit styleClass="button"> ! <bean:message key="web.button.refresh"/> ! </html:submit> ! </form> ! </center> ! </HeaderBlock> ! </Frame> ! <logic:present name="moduleNames"> ! <bean:size name="moduleNames" id="moduleNamesSize"/> ! <logic:greaterThan name="moduleNamesSize" value="0"> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <html:form action="/view"> ! <input type="hidden" name="type" value="ejbmodule"/> ! <strong> ! <bean:message key="web.text.namespace.ejbmodule"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options name="moduleNames"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </HeaderBlock> ! <ContentBlock> ! <logic:iterate name="moduleTree" id="container" type="org.ejtools.jndi.browser.web.JNDIContainer"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <strong> ! <bean:message key="web.text.namespace.ejb"/> ! <jsp:text><![CDATA[ : ]]></jsp:text> ! <bean:write name="container" property="name"/> ! </strong> ! </td> ! </tr> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="container" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </logic:greaterThan> ! </logic:present> ! <logic:present name="webappTrees"> ! <bean:size name="webappTrees" id="webappTreesSize"/> ! <logic:greaterThan name="webappTreesSize" value="0"> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <html:form action="/view"> ! <input type="hidden" name="type" value="webapp"/> ! <strong> ! <bean:message key="web.text.namespace.webapp"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options collection="webappTrees" property="name" labelProperty="name"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="webappTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </logic:greaterThan> ! </logic:present> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <strong> ! <bean:message key="web.text.namespace.java"/> ! </strong> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.java"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="localTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <strong> ! <bean:message key="web.text.namespace.global"/> ! </strong> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.global"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="globalTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </Content> ! </Page> --- 1,222 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <?xml-stylesheet type="text/xsl" href="style.xsl"?> ! <Page xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools-taglib.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> ! <Content> ! <!-- ======================================== --> ! <!-- Header --> ! <!-- ======================================== --> ! <TitleBlock> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> ! <Path> ! <Element> ! <bean:message key="web.index.title"/> ! </Element> ! </Path> ! </TitleBlock> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <center> ! <form action="refresh.do"> ! <html:submit styleClass="button"> ! <bean:message key="web.button.refresh"/> ! </html:submit> ! </form> ! </center> ! </HeaderBlock> ! </Frame> ! <bean:size name="moduleNames" id="moduleNamesSize"/> ! <logic:greaterThan name="moduleNamesSize" value="0"> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <html:form action="/view"> ! <input type="hidden" name="type" value="ejbmodule"/> ! <strong> ! <bean:message key="web.text.namespace.ejbmodule"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options name="moduleNames"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </HeaderBlock> ! <ContentBlock> ! <logic:iterate name="moduleTree" id="container" type="org.ejtools.jndi.browser.web.JNDIContainer"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <strong> ! <bean:message key="web.text.namespace.ejb"/> ! <jsp:text><![CDATA[ : ]]></jsp:text> ! <bean:write name="container" property="name"/> ! </strong> ! </td> ! </tr> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="container" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </logic:greaterThan> ! <bean:size name="webappTrees" id="webappTreesSize"/> ! <logic:greaterThan name="webappTreesSize" value="0"> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <html:form action="/view"> ! <input type="hidden" name="type" value="webapp"/> ! <strong> ! <bean:message key="web.text.namespace.webapp"/> ! </strong> ! <jsp:text><br/></jsp:text> ! <html:select property="name"> ! <html:options collection="webappTrees" property="name" labelProperty="name"/> ! </html:select> ! <html:submit styleClass="button"> ! <bean:message key="web.button.view"/> ! </html:submit> ! </html:form> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.javacomp"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="webappTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </logic:greaterThan> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <strong> ! <bean:message key="web.text.namespace.java"/> ! </strong> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.java"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="localTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! <!-- ======================================== --> ! <!-- Spacer --> ! <!-- ======================================== --> ! <Spacer/> ! <Frame> ! <HeaderBlock> ! <strong> ! <bean:message key="web.text.namespace.global"/> ! </strong> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/general/Folder16.gif"/> ! <bean:message key="web.text.namespace.global"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="globalTree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="org.ejtools.servlet.http.jsp.tagext.tree.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeIconRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="org.ejtools.jndi.browser.model.JNDIContext"/> ! <ejtools:treeNameRenderer name="treenode" property="object" renderer="org.ejtools.jndi.browser.web.taglib.TreeRendererImpl"/> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> ! </Content> ! </Page> Index: style.css =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/style.css,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** style.css 18 Dec 2002 22:29:16 -0000 1.5 --- style.css 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,110 **** ! A:link ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:visited ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:active ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:hover ! { ! COLOR: #000099; ! TEXT-DECORATION: underline ! } ! BODY ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, 'Times New Roman', Times ! } ! TD ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, 'Times New Roman', Times ! } ! .tableHeader ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! COLOR: #ffffff; ! FONT-FAMILY: Verdana, Arial, Helvetica; ! BACKGROUND-COLOR: #909090 ! } ! .tableHeader2 ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! COLOR: #000000; ! FONT-FAMILY: Verdana, Arial, Helvetica; ! BACKGROUND-COLOR: #dddddd ! } ! .attributeName ! { ! FONT-SIZE: 10pt; ! FONT-STYLE: italic; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .selectedText ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .attributeValue ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .methodName ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .methodArguments ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .cellText ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .tree-content ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:link ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:visited ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:active ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .button ! { ! FONT-WEIGHT: bold; ! COLOR: #ffffff; ! BACKGROUND-COLOR: #909090 ! } --- 1,110 ---- ! A:link ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:visited ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:active ! { ! FONT-SIZE: 10pt; ! COLOR: blue; ! FONT-FAMILY: Arial, Times New Roman, Times; ! TEXT-DECORATION: none ! } ! A:hover ! { ! COLOR: #000099; ! TEXT-DECORATION: underline ! } ! BODY ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, 'Times New Roman', Times ! } ! TD ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, 'Times New Roman', Times ! } ! .tableHeader ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! COLOR: #ffffff; ! FONT-FAMILY: Verdana, Arial, Helvetica; ! BACKGROUND-COLOR: #909090 ! } ! .tableHeader2 ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! COLOR: #000000; ! FONT-FAMILY: Verdana, Arial, Helvetica; ! BACKGROUND-COLOR: #dddddd ! } ! .attributeName ! { ! FONT-SIZE: 10pt; ! FONT-STYLE: italic; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .selectedText ! { ! FONT-WEIGHT: bold; ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .attributeValue ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .methodName ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .methodArguments ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .cellText ! { ! FONT-SIZE: 10pt; ! FONT-FAMILY: Arial, Times New Roman, Times ! } ! .tree-content ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:link ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:visited ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .tree-content:active ! { ! FONT-SIZE: 11px; ! FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif ! } ! .button ! { ! FONT-WEIGHT: bold; ! COLOR: #ffffff; ! BACKGROUND-COLOR: #909090 ! } Index: style.xsl =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/style.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** style.xsl 18 Dec 2002 22:29:16 -0000 1.8 --- style.xsl 27 Nov 2003 01:30:30 -0000 1.9 *************** *** 1,192 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools-taglib.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> ! <!-- Root match --> ! <xsl:template match="/"> ! <jsp:root version="1.2"> ! <jsp:directive.page language="java" contentType="text/html"/> ! <app:connect/> ! <xsl:apply-templates/> ! </jsp:root> ! </xsl:template> ! <!-- Content match --> ! <xsl:template match="Page"> ! <html> ! <head> ! <title> ! <xsl:apply-templates select="Title"/> ! </title> ! <link rel="stylesheet" type="text/css" href="style.css"/> ! <html:base/> ! </head> ! <body> ! <xsl:apply-templates select="Content"/> ! </body> ! </html> ! </xsl:template> ! <xsl:template match="Title"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="Content"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="Spacer"> ! <img border="0" src="images/white.png" width="5" height="15"/> ! </xsl:template> ! <xsl:template match="TitleBlock"> ! <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> ! <tr> ! <td width="100%"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF"> ! <tr> ! <td> ! <b> ! <font face="verdana,arial,sans-serif" color="#000000" size="6"> ! <xsl:apply-templates select="Title"/> ! </font> ! </b> ! </td> ! <td align="right" rowspan="2"> ! <img border="0" src="images/ejtools50.png" width="175" height="50"/> ! </td> ! </tr> ! <tr> ! <td> ! <xsl:apply-templates select="Path"/> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </xsl:template> ! <xsl:template match="Path"> ! <xsl:for-each select="Element"> ! <xsl:apply-templates/> ! <xsl:if test="position() != last()"> ! <xsl:text> >> </xsl:text> ! </xsl:if> ! </xsl:for-each> ! </xsl:template> ! <xsl:template match="Element"> ! <xsl:copy-of select="."/> ! </xsl:template> ! <xsl:template match="Frame"> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <xsl:apply-templates select="HeaderBlock"/> ! </td> ! </tr> ! <xsl:if test="ContentBlock"> ! <tr bgcolor="#FFFFFF"> ! <td align="left" valign="top"> ! <xsl:apply-templates select="ContentBlock"/> ! </td> ! </tr> ! </xsl:if> ! </table> ! </xsl:template> ! <xsl:template match="HeaderBlock"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <xsl:apply-templates/> ! </td> ! </tr> ! </table> ! </xsl:template> ! <xsl:template match="ContentBlock"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td> ! <xsl:apply-templates/> ! </td> ! </tr> ! </table> ! </xsl:template> ! <xsl:template match="PropertiesBlock"> ! <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> ! <tr bgcolor="#000090"> ! <td align="center" valign="top" width="30%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Property</b> ! </font> ! </td> ! <td align="center" valign="top" width="70%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Value</b> ! </font> ! </td> ! </tr> ! <xsl:apply-templates/> ! </table> ! </xsl:template> ! <xsl:template match="Property"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <jsp:text><a href="javascript:alert('</jsp:text> ! <xsl:apply-templates select="PropertyShortDescription"/> ! <jsp:text>');"></jsp:text> ! <xsl:apply-templates select="PropertyDisplayName"/> ! <jsp:text></a> :</jsp:text> ! </td> ! <td class="attributeValue" valign="top" align="left"> ! <xsl:apply-templates select="PropertyValue"/> ! </td> ! </tr> ! </xsl:template> ! <xsl:template match="PropertyName"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="PropertyDisplayName"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="PropertyShortDescription"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="PropertyValue"> ! <xsl:apply-templates/> ! </xsl:template> ! <!-- Taglib namespace match --> ! <xsl:template match="app:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl... [truncated message content] |
Update of /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/webapp/resources Modified Files: log.tld struts-bean.tld struts-config.xml struts-form.tld struts-html.tld struts-logic.tld struts-template.tld struts.tld Log Message: Address Todo #755528 Address Todo #800902 Index: log.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/log.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** log.tld 18 Dec 2002 22:29:54 -0000 1.5 --- log.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,107 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Laurent Etiemble (Orange) --> ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>log</shortname> ! <uri>http://jakarta.apache.org/taglibs/log-1.0</uri> ! <info> ! The Log library allows you to embed logging calls in your JSP which can be ! output to a variety of destinations thanks to the power of the ! log4j project. ! Initialising log4jBy default these log tags do not explicitly initialise log4j, ! you are free to do that however you wish. ! A common approach is to create a log4j servlet and for it to initialise ! log4j using some configuration file or options specified in your web.xml ! My own personal preference is just to put a log4j.properties file ! in the WEB-INF/classes directory and for that to have your log4j ! configuration. Then without any special servlets or initialisation ! code log4j will correctly initialise itself. This approach also avoids ! a single web app accidentally initialising log4j several times ! (e.g. via 2 different servlets). ! If you have any further questions regarding the configuration of ! log4j please visit the ! log4j ! site or a log4j specific mailing list. ! </info> ! <tag> ! <name>debug</name> ! <tagclass>org.apache.taglibs.log.DebugTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>info</name> ! <tagclass>org.apache.taglibs.log.InfoTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>warn</name> ! <tagclass>org.apache.taglibs.log.WarnTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>error</name> ! <tagclass>org.apache.taglibs.log.ErrorTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>fatal</name> ! <tagclass>org.apache.taglibs.log.FatalTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>dump</name> ! <tagclass>org.apache.taglibs.log.DumpTag</tagclass> ! <attribute> ! <name>scope</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> --- 1,107 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Laurent Etiemble (Orange) --> ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>log</shortname> ! <uri>http://jakarta.apache.org/taglibs/log-1.0</uri> ! <info> ! The Log library allows you to embed logging calls in your JSP which can be ! output to a variety of destinations thanks to the power of the ! log4j project. ! Initialising log4jBy default these log tags do not explicitly initialise log4j, ! you are free to do that however you wish. ! A common approach is to create a log4j servlet and for it to initialise ! log4j using some configuration file or options specified in your web.xml ! My own personal preference is just to put a log4j.properties file ! in the WEB-INF/classes directory and for that to have your log4j ! configuration. Then without any special servlets or initialisation ! code log4j will correctly initialise itself. This approach also avoids ! a single web app accidentally initialising log4j several times ! (e.g. via 2 different servlets). ! If you have any further questions regarding the configuration of ! log4j please visit the ! log4j ! site or a log4j specific mailing list. ! </info> ! <tag> ! <name>debug</name> ! <tagclass>org.apache.taglibs.log.DebugTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>info</name> ! <tagclass>org.apache.taglibs.log.InfoTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>warn</name> ! <tagclass>org.apache.taglibs.log.WarnTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>error</name> ! <tagclass>org.apache.taglibs.log.ErrorTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>fatal</name> ! <tagclass>org.apache.taglibs.log.FatalTag</tagclass> ! <attribute> ! <name>category</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>message</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>dump</name> ! <tagclass>org.apache.taglibs.log.DumpTag</tagclass> ! <attribute> ! <name>scope</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> Index: struts-bean.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-bean.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts-bean.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts-bean.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,347 **** ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>bean</shortname> ! <uri>http://jakarta.apache.org/struts/tags-bean-1.0</uri> ! <tag> ! <name>cookie</name> ! <tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>define</name> ! <tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>toScope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>type</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>header</name> ! <tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>include</name> ! <tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>anchor</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>forward</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>href</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>page</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>transaction</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>message</name> ! <tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>arg0</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg1</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg2</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg3</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg4</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>bundle</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>key</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>locale</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>page</name> ! <tagclass>org.apache.struts.taglib.bean.PageTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.PageTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>parameter</name> ! <tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>resource</name> ! <tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>input</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>size</name> ! <tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>collection</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>struts</name> ! <tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>formBean</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>forward</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>mapping</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>write</name> ! <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>filter</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>ignore</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! ! ! --- 1,347 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>bean</shortname> ! <uri>http://jakarta.apache.org/struts/tags-bean-1.0</uri> ! <tag> ! <name>cookie</name> ! <tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>define</name> ! <tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>toScope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>type</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>header</name> ! <tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>include</name> ! <tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>anchor</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>forward</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>href</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>page</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>transaction</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>message</name> ! <tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>arg0</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg1</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg2</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg3</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg4</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>bundle</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>key</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>locale</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>page</name> ! <tagclass>org.apache.struts.taglib.bean.PageTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.PageTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>parameter</name> ! <tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>multiple</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>resource</name> ! <tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>input</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>size</name> ! <tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>collection</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>struts</name> ! <tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass> ! <teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>id</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>formBean</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>forward</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>mapping</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>write</name> ! <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>filter</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>ignore</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! ! ! Index: struts-config.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-config.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** struts-config.xml 10 Feb 2003 21:05:07 -0000 1.10 --- struts-config.xml 27 Nov 2003 01:30:30 -0000 1.11 *************** *** 1,22 **** ! <?xml version="1.0" encoding="ISO-8859-1"?> ! <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> ! <struts-config> ! <!-- ========== Data Source Configuration =============================== --> ! <!-- ========== Form Bean Definitions =================================== --> ! <form-beans> ! <form-bean name="viewForm" type="org.ejtools.jndi.browser.web.form.ViewForm"/> ! </form-beans> ! <!-- ========== Global Forward Definitions ============================== --> ! <global-forwards> ! <forward name="home" path="/index.jsp"/> ! </global-forwards> ! <!-- ========== Action Mapping Definitions ============================== --> ! <action-mappings> ! <action path="/refresh" type="org.ejtools.jndi.browser.web.action.RefreshAction"> ! <forward name="view" path="/index.jsp"/> ! </action> ! <action path="/view" type="org.ejtools.jndi.browser.web.action.ViewAction" name="viewForm" input="index.jsp"> ! <forward name="view" path="/index.jsp"/> ! </action> ! </action-mappings> ! </struts-config> --- 1,22 ---- ! <?xml version="1.0" encoding="ISO-8859-1"?> ! <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> ! <struts-config> ! <!-- ========== Data Source Configuration =============================== --> ! <!-- ========== Form Bean Definitions =================================== --> ! <form-beans> ! <form-bean name="viewForm" type="org.ejtools.jndi.browser.web.form.ViewForm"/> ! </form-beans> ! <!-- ========== Global Forward Definitions ============================== --> ! <global-forwards> ! <forward name="home" path="/index.jsp"/> ! </global-forwards> ! <!-- ========== Action Mapping Definitions ============================== --> ! <action-mappings> ! <action path="/refresh" type="org.ejtools.jndi.browser.web.action.RefreshAction"> ! <forward name="view" path="/index.jsp"/> ! </action> ! <action path="/view" type="org.ejtools.jndi.browser.web.action.ViewAction" name="viewForm" input="index.jsp"> ! <forward name="view" path="/index.jsp"/> ! </action> ! </action-mappings> ! </struts-config> Index: struts-form.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-form.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts-form.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts-form.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,1705 **** ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> [...3381 lines suppressed...] ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>style</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>styleClass</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>tabindex</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! Index: struts-html.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-html.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts-html.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts-html.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,2155 **** ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> [...4281 lines suppressed...] ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>styleId</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>tabindex</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>value</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! Index: struts-logic.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-logic.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts-logic.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts-logic.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,562 **** ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> [...1095 lines suppressed...] ! <attribute> ! <name>property</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>scope</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>transaction</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! ! ! Index: struts-template.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts-template.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts-template.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts-template.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,73 **** ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>template</shortname> ! <uri>http://jakarta.apache.org/struts/tags-template-1.0</uri> ! <tag> ! <name>insert</name> ! <tagclass>org.apache.struts.taglib.template.InsertTag</tagclass> ! <bodycontent>JSP</bodycontent> ! <attribute> ! <name>template</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>put</name> ! <tagclass>org.apache.struts.taglib.template.PutTag</tagclass> ! <bodycontent>JSP</bodycontent> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>role</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>content</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>direct</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>get</name> ! <tagclass>org.apache.struts.taglib.template.GetTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>flush</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>role</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! ! ! --- 1,73 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! ! ! ! ! ! ! ! <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! <taglib> ! <tlibversion>1.0</tlibversion> ! <jspversion>1.1</jspversion> ! <shortname>template</shortname> ! <uri>http://jakarta.apache.org/struts/tags-template-1.0</uri> ! <tag> ! <name>insert</name> ! <tagclass>org.apache.struts.taglib.template.InsertTag</tagclass> ! <bodycontent>JSP</bodycontent> ! <attribute> ! <name>template</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>put</name> ! <tagclass>org.apache.struts.taglib.template.PutTag</tagclass> ! <bodycontent>JSP</bodycontent> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>role</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>content</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>direct</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! <tag> ! <name>get</name> ! <tagclass>org.apache.struts.taglib.template.GetTag</tagclass> ! <bodycontent>empty</bodycontent> ! <attribute> ! <name>flush</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>name</name> ! <required>true</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>role</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! </taglib> ! ! ! Index: struts.tld =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/resources/struts.tld,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** struts.tld 18 Dec 2002 22:29:54 -0000 1.5 --- struts.tld 27 Nov 2003 01:30:30 -0000 1.6 *************** *** 1,1986 **** ! <?xml version="1.0" encoding="ISO-8859-1" ?> ! <!DOCTYPE taglib ! PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" ! "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> ! ! <taglib> ! ! <!-- ============== Tag Library Description Elements ============= --> ! ! <tlibversion>1.0</tlibversion> [...3943 lines suppressed...] ! </attribute> ! <attribute> ! <name>arg2</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg3</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! <attribute> ! <name>arg4</name> ! <required>false</required> ! <rtexprvalue>true</rtexprvalue> ! </attribute> ! </tag> ! ! ! </taglib> |
From: <let...@us...> - 2003-11-27 01:30:34
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/resources/org/ejtools/jndi/browser In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/resources/org/ejtools/jndi/browser Modified Files: Resources.properties Resources_fr_FR.properties Log Message: Address Todo #755528 Address Todo #800902 Index: Resources.properties =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/resources/org/ejtools/jndi/browser/Resources.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Resources.properties 21 Feb 2003 22:20:47 -0000 1.1 --- Resources.properties 27 Nov 2003 01:30:30 -0000 1.2 *************** *** 1,43 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Title for Frame, Dialog, etc ! application.title=EJTools JNDI Browser ! ! about.dialog.title=About JNDI Browser ! about.dialog.text.application=The Enterprise Java Tools ! about.dialog.text.javaVersion=Java Version ! about.dialog.text.virtualMachine=Virtual Machine ! ! connection.dialog.title=Connect to a naming server ! connection.dialog.text.description=Choose a naming profile ! connection.text.untitled=Untitled ! connection.text.prefix=JNDI ! ! title.information.defaultFactory.queue=Default QueueConnectionFactory Selection ! title.information.defaultFactory.topic=Default TopicConnectionFactory Selection ! title.question.defaultFactory.queue=Default QueueConnectionFactory Selection ! title.question.defaultFactory.topic=Default TopicConnectionFactory Selection ! ! text.information.noDefaultFactory.queue=There is no registered QueueConnectionFactory ! text.information.noDefaultFactory.topic=There is no registered TopicConnectionFactory ! text.question.defaultFactory.queue=Choose the default QueueConnectionFactory ! text.question.defaultFactory.topic=Choose the default TopicConnectionFactory ! ! text.jms.message.name=Msg. ! ! # Options Menu ! action.options=Options ! action.options.mnemonic=79 ! ! # Options Menu Items ! action.options.selectQueueFactory=Set Default QueueConnectionFactory ! action.options.selectTopicFactory=Set Default TopicConnectionFactory --- 1,50 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Title for Frame, Dialog, etc ! application.title=EJTools JNDI Browser ! ! about.dialog.title=About JNDI Browser ! about.dialog.text.application=The Enterprise Java Tools ! about.dialog.text.javaVersion=Java Version ! about.dialog.text.virtualMachine=Virtual Machine ! about.dialog.text.lookAndFeel=Look And Feel ! ! connection.dialog.title=Connect to a naming server ! connection.dialog.text.description=Choose a naming profile ! connection.text.untitled=Untitled ! connection.text.prefix=JNDI ! ! title.information.defaultFactory.queue=Default QueueConnectionFactory Selection ! title.information.defaultFactory.topic=Default TopicConnectionFactory Selection ! title.question.defaultFactory.queue=Default QueueConnectionFactory Selection ! title.question.defaultFactory.topic=Default TopicConnectionFactory Selection ! ! text.information.noDefaultFactory.queue=There is no registered QueueConnectionFactory ! text.information.noDefaultFactory.topic=There is no registered TopicConnectionFactory ! text.question.defaultFactory.queue=Choose the default QueueConnectionFactory ! text.question.defaultFactory.topic=Choose the default TopicConnectionFactory ! ! text.jms.message.name=Msg. ! ! ! # Text for open/save dialog box ! file.dialog.title.load=Load Workspace ! file.dialog.title.save=Save Workspace ! ! ! # Options Menu ! action.options=Options ! action.options.mnemonic=79 ! ! # Options Menu Items ! action.options.selectQueueFactory=Set Default QueueConnectionFactory ! action.options.selectTopicFactory=Set Default TopicConnectionFactory Index: Resources_fr_FR.properties =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/resources/org/ejtools/jndi/browser/Resources_fr_FR.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Resources_fr_FR.properties 21 Feb 2003 22:20:47 -0000 1.1 --- Resources_fr_FR.properties 27 Nov 2003 01:30:30 -0000 1.2 *************** *** 1,43 **** ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Title for Frame, Dialog, etc ! application.title=EJTools JNDI Browser ! ! about.dialog.title=About JNDI Browser ! about.dialog.text.application=The Enterprise Java Tools ! about.dialog.text.javaVersion=Java Version ! about.dialog.text.virtualMachine=Virtual Machine ! ! connection.dialog.title=Connexion à un serveur de nommage ! connection.dialog.text.description=Choisissez un profil de nommage ! connection.text.untitled=Sans Nom ! connection.text.prefix=JNDI ! ! title.information.defaultFactory.queue=Sélection du QueueConnectionFactory par défaut ! title.information.defaultFactory.topic=Sélection du TopicConnectionFactory par défaut ! title.question.defaultFactory.queue=Sélection du QueueConnectionFactory par défaut ! title.question.defaultFactory.topic=Sélection du TopicConnectionFactory par défaut ! ! text.information.noDefaultFactory.queue=Pas de QueueConnectionFactory référencé ! text.information.noDefaultFactory.topic=Pas de TopicConnectionFactory référencé ! text.question.defaultFactory.queue=Choisissze le QueueConnectionFactory par défaut ! text.question.defaultFactory.topic=Choisissze le TopicConnectionFactory par défaut ! ! text.jms.message.name=Msg. ! ! # Options Menu ! action.options=Options ! action.options.mnemonic=79 ! ! # Options Menu Items ! action.options.selectQueueFactory=QueueConnectionFactory par défaut ! action.options.selectTopicFactory=TopicConnectionFactory par défaut --- 1,49 ---- ! # ------------------------------------------------------------ ! # ! # EJTools, the Enterprise Java Tools ! # ! # Distributable under LGPL license. ! # See terms of license at www.gnu.org. ! # ! # Feedback and support at http://sourceforge.net/project/ejtools ! # ! # ------------------------------------------------------------ ! ! # Title for Frame, Dialog, etc ! application.title=EJTools JNDI Browser ! ! about.dialog.title=About JNDI Browser ! about.dialog.text.application=The Enterprise Java Tools ! about.dialog.text.javaVersion=Java Version ! about.dialog.text.virtualMachine=Virtual Machine ! about.dialog.text.lookAndFeel=Look And Feel ! ! connection.dialog.title=Connexion à un serveur de nommage ! connection.dialog.text.description=Choisissez un profil de nommage ! connection.text.untitled=Sans Nom ! connection.text.prefix=JNDI ! ! title.information.defaultFactory.queue=S�lection du QueueConnectionFactory par défaut ! title.information.defaultFactory.topic=S�lection du TopicConnectionFactory par défaut ! title.question.defaultFactory.queue=S�lection du QueueConnectionFactory par défaut ! title.question.defaultFactory.topic=S�lection du TopicConnectionFactory par défaut ! ! text.information.noDefaultFactory.queue=Pas de QueueConnectionFactory référencé ! text.information.noDefaultFactory.topic=Pas de TopicConnectionFactory référencé ! text.question.defaultFactory.queue=Choisissze le QueueConnectionFactory par défaut ! text.question.defaultFactory.topic=Choisissze le TopicConnectionFactory par défaut ! ! text.jms.message.name=Msg. ! ! # Text for open/save dialog box ! file.dialog.title.load=Ouvrir Configuration ! file.dialog.title.save=Save Configuration ! ! ! # Options Menu ! action.options=Options ! action.options.mnemonic=79 ! ! # Options Menu Items ! action.options.selectQueueFactory=QueueConnectionFactory par défaut ! action.options.selectTopicFactory=TopicConnectionFactory par défaut |
From: <let...@us...> - 2003-11-27 01:30:34
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/webapp/merge In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/webapp/merge Modified Files: servlet-mappings.xml servlets.xml welcomefiles.xml Log Message: Address Todo #755528 Address Todo #800902 Index: servlet-mappings.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/merge/servlet-mappings.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** servlet-mappings.xml 18 Dec 2002 22:23:49 -0000 1.2 --- servlet-mappings.xml 27 Nov 2003 01:30:30 -0000 1.3 *************** *** 1,17 **** ! <!-- Standard Action Servlet Mapping --> ! <servlet-mapping> ! <servlet-name>action</servlet-name> ! <url-pattern>*.do</url-pattern> ! </servlet-mapping> ! ! <!-- Precompiled JSP overmapping --> ! <!-- ! <servlet-mapping> ! <servlet-name>DETAIL.JSP</servlet-name> ! <url-pattern>/detail.jsp</url-pattern> ! </servlet-mapping> ! <servlet-mapping> ! <servlet-name>INDEX.JSP</servlet-name> ! <url-pattern>/index.jsp</url-pattern> ! </servlet-mapping> --> --- 1,17 ---- ! <!-- Standard Action Servlet Mapping --> ! <servlet-mapping> ! <servlet-name>action</servlet-name> ! <url-pattern>*.do</url-pattern> ! </servlet-mapping> ! ! <!-- Precompiled JSP overmapping --> ! <!-- ! <servlet-mapping> ! <servlet-name>DETAIL.JSP</servlet-name> ! <url-pattern>/detail.jsp</url-pattern> ! </servlet-mapping> ! <servlet-mapping> ! <servlet-name>INDEX.JSP</servlet-name> ! <url-pattern>/index.jsp</url-pattern> ! </servlet-mapping> --> Index: servlets.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/merge/servlets.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** servlets.xml 8 Jan 2003 22:24:19 -0000 1.3 --- servlets.xml 27 Nov 2003 01:30:30 -0000 1.4 *************** *** 1,39 **** ! <!-- Standard Action Servlet Configuration (with debugging) --> ! <servlet> ! <servlet-name>action</servlet-name> ! <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> ! <init-param> ! <param-name>application</param-name> ! <param-value>JNDIBrowser_WebResources</param-value> ! </init-param> ! <init-param> ! <param-name>config</param-name> ! <param-value>/WEB-INF/struts-config.xml</param-value> ! </init-param> ! <init-param> ! <param-name>debug</param-name> ! <param-value>0</param-value> ! </init-param> ! <init-param> ! <param-name>detail</param-name> ! <param-value>0</param-value> ! </init-param> ! <init-param> ! <param-name>validate</param-name> ! <param-value>true</param-value> ! </init-param> ! <load-on-startup>2</load-on-startup> ! </servlet> ! <!-- Precompiled JSP --> ! <!-- ! <servlet> ! <servlet-name>DETAIL.JSP</servlet-name> ! <servlet-class>detail</servlet-class> ! <load-on-startup>10</load-on-startup> ! </servlet> ! <servlet> ! <servlet-name>INDEX.JSP</servlet-name> ! <servlet-class>index</servlet-class> ! <load-on-startup>10</load-on-startup> ! </servlet> ! --> --- 1,39 ---- ! <!-- Standard Action Servlet Configuration (with debugging) --> ! <servlet> ! <servlet-name>action</servlet-name> ! <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> ! <init-param> ! <param-name>application</param-name> ! <param-value>JNDIBrowser_WebResources</param-value> ! </init-param> ! <init-param> ! <param-name>config</param-name> ! <param-value>/WEB-INF/struts-config.xml</param-value> ! </init-param> ! <init-param> ! <param-name>debug</param-name> ! <param-value>0</param-value> ! </init-param> ! <init-param> ! <param-name>detail</param-name> ! <param-value>0</param-value> ! </init-param> ! <init-param> ! <param-name>validate</param-name> ! <param-value>true</param-value> ! </init-param> ! <load-on-startup>2</load-on-startup> ! </servlet> ! <!-- Precompiled JSP --> ! <!-- ! <servlet> ! <servlet-name>DETAIL.JSP</servlet-name> ! <servlet-class>detail</servlet-class> ! <load-on-startup>10</load-on-startup> ! </servlet> ! <servlet> ! <servlet-name>INDEX.JSP</servlet-name> ! <servlet-class>index</servlet-class> ! <load-on-startup>10</load-on-startup> ! </servlet> ! --> Index: welcomefiles.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/merge/welcomefiles.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** welcomefiles.xml 13 Jun 2002 20:53:11 -0000 1.1 --- welcomefiles.xml 27 Nov 2003 01:30:30 -0000 1.2 *************** *** 1,5 **** ! <!-- The Usual Welcome File List --> ! <welcome-file-list> ! <welcome-file>index.jsp</welcome-file> ! <welcome-file>index.html</welcome-file> ! </welcome-file-list> --- 1,5 ---- ! <!-- The Usual Welcome File List --> ! <welcome-file-list> ! <welcome-file>index.jsp</welcome-file> ! <welcome-file>index.html</welcome-file> ! </welcome-file-list> |
From: <let...@us...> - 2003-11-27 01:30:34
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms Modified Files: BytesMessageProxy.java ConnectionFactoryProxy.java DeliveryModeEditor.java MapMessageProxy.java MessageProxy.java ObjectMessageProxy.java QueueProxy.java StreamMessageProxy.java TextMessageProxy.java TopicProxy.java Log Message: Address Todo #755528 Address Todo #800902 Index: BytesMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/BytesMessageProxy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BytesMessageProxy.java 10 Feb 2003 21:17:09 -0000 1.1 --- BytesMessageProxy.java 27 Nov 2003 01:30:29 -0000 1.2 *************** *** 1,69 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Bytes Message" ! * shortDescription="JMS Bytes Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class BytesMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public BytesMessageProxy(Message message) ! { ! super(message); ! } ! } ! --- 1,69 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Bytes Message" ! * shortDescription="JMS Bytes Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class BytesMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public BytesMessageProxy(Message message) ! { ! super(message); ! } ! } ! Index: ConnectionFactoryProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/ConnectionFactoryProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ConnectionFactoryProxy.java 24 Feb 2003 22:32:14 -0000 1.3 --- ConnectionFactoryProxy.java 27 Nov 2003 01:30:29 -0000 1.4 *************** *** 1,190 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.beans.beancontext.BeanContextServiceRevokedEvent; ! import java.beans.beancontext.BeanContextServices; ! ! import javax.jms.QueueConnectionFactory; ! import javax.jms.TopicConnectionFactory; ! import javax.naming.Context; ! import javax.rmi.PortableRemoteObject; ! ! import org.apache.log4j.Logger; ! import org.ejtools.jndi.browser.model.JNDIEntry; ! import org.ejtools.jndi.browser.model.service.JMSConnectionService; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @todo Add log4j logs ! * @todo Review the exception raised ! * @javabean:class displayName="Connection Factory" ! * shortDescription="Connection Factory" ! * @javabean:icons color16="/toolbarButtonGraphics/development/JMSResource16.gif" ! * @javabean:property name="name" ! * class="java.lang.String" ! * displayName="Name" ! * shortDescription="Name of the Connection Factory" ! * @javabean:property name="className" ! * class="java.lang.String" ! * displayName="Class" ! * shortDescription="Class of the Connection Factory" ! * @javabean:property name="queueConnectionFactory" ! * class="boolean" ! * displayName="Can Create QueueConnection" ! * shortDescription="Ability to create QueueConnection objects" ! * @javabean:property name="topicConnectionFactory" ! * class="boolean" ! * displayName="Can Create TopicConnection" ! * shortDescription="Ability to create TopicConnection objects" ! */ ! public class ConnectionFactoryProxy extends JNDIEntry ! { ! /** Description of the Field */ ! protected boolean isDefault = false; ! /** Description of the Field */ ! protected boolean isQueueConnectionFactory = false; ! /** Description of the Field */ ! protected boolean isTopicConnectionFactory = false; ! /** Description of the Field */ ! protected QueueConnectionFactory queueConnectionFactory = null; ! /** Description of the Field */ ! protected TopicConnectionFactory topicConnectionFactory = null; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ConnectionFactoryProxy.class); ! ! ! /** ! * Constructor for the JMSQueue object ! * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter ! * @exception Exception Description of Exception ! */ ! public ConnectionFactoryProxy(Context context, String jndiName) ! throws Exception ! { ! // Try to narrow to an EJBHome class ! Object o = context.lookup(jndiName); ! ! setName(jndiName); ! setClassName(o.getClass().getName()); ! ! if (o instanceof QueueConnectionFactory) ! { ! this.queueConnectionFactory = (QueueConnectionFactory) PortableRemoteObject.narrow(o, QueueConnectionFactory.class); ! this.isQueueConnectionFactory = true; ! } ! if (o instanceof TopicConnectionFactory) ! { ! this.topicConnectionFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(o, TopicConnectionFactory.class); ! this.isTopicConnectionFactory = true; ! } ! if (!(this.isQueueConnectionFactory || this.isTopicConnectionFactory)) ! { ! throw new Exception("Not Available"); ! } ! } ! ! ! /** ! * Getter for the queueConnectionFactory attribute ! * ! * @return The value of queueConnectionFactory attribute ! */ ! public QueueConnectionFactory getQueueConnectionFactory() ! { ! return this.queueConnectionFactory; ! } ! ! ! /** ! * Getter for the topicConnectionFactory attribute ! * ! * @return The value of topicConnectionFactory attribute ! */ ! public TopicConnectionFactory getTopicConnectionFactory() ! { ! return this.topicConnectionFactory; ! } ! ! ! /** ! * Gets the count attribute of the JMSQueue object ! * ! * @return The count value ! */ ! public boolean isQueueConnectionFactory() ! { ! return this.isQueueConnectionFactory; ! } ! ! ! /** ! * Getter for the topicConnectionFactory attribute ! * ! * @return The value ! */ ! public boolean isTopicConnectionFactory() ! { ! return this.isTopicConnectionFactory; ! } ! ! ! /** ! * Description of the Method ! * ! * @param bcsre Description of Parameter ! */ ! public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) ! { ! try ! { ! BeanContextServices context = (BeanContextServices) getBeanContext(); ! context.releaseService(this, this, JMSConnectionService.class); ! } ! catch (Exception e) ! { ! logger.error("Error during release of service ConnectionService (" + e.getMessage() + ")"); ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return name == null ? "Undefined" : name; ! } ! ! ! /** Description of the Method */ ! protected void initializeBeanContextResources() ! { ! BeanContextServices context = (BeanContextServices) getBeanContext(); ! if (context.hasService(JMSConnectionService.class)) ! { ! try ! { ! JMSConnectionService service = (JMSConnectionService) context.getService(this, this, JMSConnectionService.class, this, this); ! } ! catch (Exception e) ! { ! logger.error("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); ! } ! } ! } ! } ! --- 1,190 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.beans.beancontext.BeanContextServiceRevokedEvent; ! import java.beans.beancontext.BeanContextServices; ! ! import javax.jms.QueueConnectionFactory; ! import javax.jms.TopicConnectionFactory; ! import javax.naming.Context; ! import javax.rmi.PortableRemoteObject; ! ! import org.apache.log4j.Logger; ! import org.ejtools.jndi.browser.model.JNDIEntry; ! import org.ejtools.jndi.browser.model.service.JMSConnectionService; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @todo Add log4j logs ! * @todo Review the exception raised ! * @javabean:class displayName="Connection Factory" ! * shortDescription="Connection Factory" ! * @javabean:icons color16="/toolbarButtonGraphics/development/JMSResource16.gif" ! * @javabean:property name="name" ! * class="java.lang.String" ! * displayName="Name" ! * shortDescription="Name of the Connection Factory" ! * @javabean:property name="className" ! * class="java.lang.String" ! * displayName="Class" ! * shortDescription="Class of the Connection Factory" ! * @javabean:property name="queueConnectionFactory" ! * class="boolean" ! * displayName="Can Create QueueConnection" ! * shortDescription="Ability to create QueueConnection objects" ! * @javabean:property name="topicConnectionFactory" ! * class="boolean" ! * displayName="Can Create TopicConnection" ! * shortDescription="Ability to create TopicConnection objects" ! */ ! public class ConnectionFactoryProxy extends JNDIEntry ! { ! /** Description of the Field */ ! protected boolean isDefault = false; ! /** Description of the Field */ ! protected boolean isQueueConnectionFactory = false; ! /** Description of the Field */ ! protected boolean isTopicConnectionFactory = false; ! /** Description of the Field */ ! protected QueueConnectionFactory queueConnectionFactory = null; ! /** Description of the Field */ ! protected TopicConnectionFactory topicConnectionFactory = null; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ConnectionFactoryProxy.class); ! ! ! /** ! * Constructor for the JMSQueue object ! * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter ! * @exception Exception Description of Exception ! */ ! public ConnectionFactoryProxy(Context context, String jndiName) ! throws Exception ! { ! // Try to narrow to an EJBHome class ! Object o = context.lookup(jndiName); ! ! setName(jndiName); ! setClassName(o.getClass().getName()); ! ! if (o instanceof QueueConnectionFactory) ! { ! this.queueConnectionFactory = (QueueConnectionFactory) PortableRemoteObject.narrow(o, QueueConnectionFactory.class); ! this.isQueueConnectionFactory = true; ! } ! if (o instanceof TopicConnectionFactory) ! { ! this.topicConnectionFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(o, TopicConnectionFactory.class); ! this.isTopicConnectionFactory = true; ! } ! if (!(this.isQueueConnectionFactory || this.isTopicConnectionFactory)) ! { ! throw new Exception("Not Available"); ! } ! } ! ! ! /** ! * Getter for the queueConnectionFactory attribute ! * ! * @return The value of queueConnectionFactory attribute ! */ ! public QueueConnectionFactory getQueueConnectionFactory() ! { ! return this.queueConnectionFactory; ! } ! ! ! /** ! * Getter for the topicConnectionFactory attribute ! * ! * @return The value of topicConnectionFactory attribute ! */ ! public TopicConnectionFactory getTopicConnectionFactory() ! { ! return this.topicConnectionFactory; ! } ! ! ! /** ! * Gets the count attribute of the JMSQueue object ! * ! * @return The count value ! */ ! public boolean isQueueConnectionFactory() ! { ! return this.isQueueConnectionFactory; ! } ! ! ! /** ! * Getter for the topicConnectionFactory attribute ! * ! * @return The value ! */ ! public boolean isTopicConnectionFactory() ! { ! return this.isTopicConnectionFactory; ! } ! ! ! /** ! * Description of the Method ! * ! * @param bcsre Description of Parameter ! */ ! public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) ! { ! try ! { ! BeanContextServices context = (BeanContextServices) getBeanContext(); ! context.releaseService(this, this, JMSConnectionService.class); ! } ! catch (Exception e) ! { ! logger.error("Error during release of service ConnectionService (" + e.getMessage() + ")"); ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return name == null ? "Undefined" : name; ! } ! ! ! /** Description of the Method */ ! protected void initializeBeanContextResources() ! { ! BeanContextServices context = (BeanContextServices) getBeanContext(); ! if (context.hasService(JMSConnectionService.class)) ! { ! try ! { ! JMSConnectionService service = (JMSConnectionService) context.getService(this, this, JMSConnectionService.class, this, this); ! } ! catch (Exception e) ! { ! logger.error("Error during utilisation of service ConnectionService (" + e.getMessage() + ")"); ! } ! } ! } ! } ! Index: DeliveryModeEditor.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/DeliveryModeEditor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DeliveryModeEditor.java 10 Feb 2003 21:17:19 -0000 1.1 --- DeliveryModeEditor.java 27 Nov 2003 01:30:29 -0000 1.2 *************** *** 1,35 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.util.ResourceBundle; ! ! import javax.jms.DeliveryMode; ! ! import com.dreambean.awt.editors.TagsEditor; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 2 janvier 2002 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class DeliveryModeEditor extends TagsEditor ! { ! /** Bundle for I18N */ ! private final static ResourceBundle resources = ResourceBundle.getBundle("JNDIBrowser_Resources"); ! ! ! /** Constructor for the DimensionEditor object */ ! public DeliveryModeEditor() ! { ! super(new String[]{"Persistent", "Non Persistent"}, ! new Object[]{new Integer(DeliveryMode.PERSISTENT), new Integer(DeliveryMode.NON_PERSISTENT)}); ! } ! } --- 1,35 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.util.ResourceBundle; ! ! import javax.jms.DeliveryMode; ! ! import com.dreambean.awt.editors.TagsEditor; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 2 janvier 2002 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class DeliveryModeEditor extends TagsEditor ! { ! /** Bundle for I18N */ ! private final static ResourceBundle resources = ResourceBundle.getBundle("JNDIBrowser_Resources"); ! ! ! /** Constructor for the DimensionEditor object */ ! public DeliveryModeEditor() ! { ! super(new String[]{"Persistent", "Non Persistent"}, ! new Object[]{new Integer(DeliveryMode.PERSISTENT), new Integer(DeliveryMode.NON_PERSISTENT)}); ! } ! } Index: MapMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/MapMessageProxy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MapMessageProxy.java 10 Feb 2003 21:17:06 -0000 1.1 --- MapMessageProxy.java 27 Nov 2003 01:30:29 -0000 1.2 *************** *** 1,68 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Map Message" shortDescription="JMS Map Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class MapMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public MapMessageProxy(Message message) ! { ! super(message); ! } ! } ! --- 1,68 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Map Message" shortDescription="JMS Map Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class MapMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public MapMessageProxy(Message message) ! { ! super(message); ! } ! } ! Index: MessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/MessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MessageProxy.java 24 Feb 2003 22:32:12 -0000 1.3 --- MessageProxy.java 27 Nov 2003 01:30:29 -0000 1.4 *************** *** 1,282 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.lang.reflect.Constructor; ! import java.util.Date; ! import java.util.Enumeration; ! import java.util.Hashtable; ! import java.util.ResourceBundle; ! ! import javax.jms.Destination; ! import javax.jms.JMSException; ! import javax.jms.Message; ! ! import org.apache.log4j.Logger; ! import org.ejtools.jndi.browser.model.JNDIEntry; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Exceptions to detail ! * @todo Javadoc to complete ! * @todo Add log4j logs ! * @javabean:class displayName="JMS Message" shortDescription="JMS Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class MessageProxy extends JNDIEntry ! { ! /** Description of the Field */ ! protected Message message = null; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(MessageProxy.class); ! /** Description of the Field */ ! private static Hashtable proxies = new Hashtable(); ! /** Bundle for I18N */ ! private final static ResourceBundle resources = ResourceBundle.getBundle("JNDIBrowser_Resources"); ! ! ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! * @todo I18N to complete ! */ ! public MessageProxy(Message message) ! { ! this.message = message; ! this.name = resources.getString("text.jms.message.name"); ! ! try ! { ! this.name = this.name + " " + getTimestamp().getTime(); ! } ! catch (Exception e) ! { ! // Ignore it ! } ! } ! ! ! /** ! * 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(); ! } ! ! ! /** ! * 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 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 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 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 redelivered attribute of the MessageProxy object ! * ! * @return The redelivered value ! * @exception JMSException Description of Exception ! */ ! public boolean isRedelivered() ! throws JMSException ! { ! return message.getJMSRedelivered(); ! } ! ! ! /** ! * Description of the Method ! * ! * @param message Description of Parameter ! * @return Description of the Returned Value ! */ ! public static MessageProxy createMessageProxy(Message message) ! { ! logger.debug("Message " + message); ! ! Class clazz = null; ! Enumeration enum = proxies.keys(); ! while ((enum.hasMoreElements()) && (clazz == null)) ! { ! Class i = (Class) enum.nextElement(); ! if (i.isAssignableFrom(message.getClass())) ! { ! clazz = (Class) proxies.get(i); ! } ! } ! ! if (clazz == null) ! { ! clazz = javax.jms.Message.class; ! } ! ! try ! { ! Constructor constructor = clazz.getConstructor(new Class[]{javax.jms.Message.class}); ! MessageProxy proxy = (MessageProxy) constructor.newInstance(new Object[]{message}); ! return proxy; ! } ! catch (Exception e) ! { ! // Ignore it ! } ! ! return new MessageProxy(message); ! } ! ! /** Load the list of proxies to create */ ! static ! { ! proxies.put(javax.jms.BytesMessage.class, BytesMessageProxy.class); ! proxies.put(javax.jms.MapMessage.class, MapMessageProxy.class); ! proxies.put(javax.jms.ObjectMessage.class, ObjectMessageProxy.class); ! proxies.put(javax.jms.StreamMessage.class, StreamMessageProxy.class); ! proxies.put(javax.jms.TextMessage.class, TextMessageProxy.class); ! } ! } --- 1,282 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import java.lang.reflect.Constructor; ! import java.util.Date; ! import java.util.Enumeration; ! import java.util.Hashtable; ! import java.util.ResourceBundle; ! ! import javax.jms.Destination; ! import javax.jms.JMSException; ! import javax.jms.Message; ! ! import org.apache.log4j.Logger; ! import org.ejtools.jndi.browser.model.JNDIEntry; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Exceptions to detail ! * @todo Javadoc to complete ! * @todo Add log4j logs ! * @javabean:class displayName="JMS Message" shortDescription="JMS Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class MessageProxy extends JNDIEntry ! { ! /** Description of the Field */ ! protected Message message = null; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(MessageProxy.class); ! /** Description of the Field */ ! private static Hashtable proxies = new Hashtable(); ! /** Bundle for I18N */ ! private final static ResourceBundle resources = ResourceBundle.getBundle("JNDIBrowser_Resources"); ! ! ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! * @todo I18N to complete ! */ ! public MessageProxy(Message message) ! { ! this.message = message; ! this.name = resources.getString("text.jms.message.name"); ! ! try ! { ! this.name = this.name + " " + getTimestamp().getTime(); ! } ! catch (Exception e) ! { ! // Ignore it ! } ! } ! ! ! /** ! * 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(); ! } ! ! ! /** ! * 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 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 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 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 redelivered attribute of the MessageProxy object ! * ! * @return The redelivered value ! * @exception JMSException Description of Exception ! */ ! public boolean isRedelivered() ! throws JMSException ! { ! return message.getJMSRedelivered(); ! } ! ! ! /** ! * Description of the Method ! * ! * @param message Description of Parameter ! * @return Description of the Returned Value ! */ ! public static MessageProxy createMessageProxy(Message message) ! { ! logger.debug("Message " + message); ! ! Class clazz = null; ! Enumeration enum = proxies.keys(); ! while ((enum.hasMoreElements()) && (clazz == null)) ! { ! Class i = (Class) enum.nextElement(); ! if (i.isAssignableFrom(message.getClass())) ! { ! clazz = (Class) proxies.get(i); ! } ! } ! ! if (clazz == null) ! { ! clazz = MessageProxy.class; ! } ! ! try ! { ! Constructor constructor = clazz.getConstructor(new Class[]{javax.jms.Message.class}); ! MessageProxy proxy = (MessageProxy) constructor.newInstance(new Object[]{message}); ! return proxy; ! } ! catch (Exception e) ! { ! // Ignore it ! } ! ! return new MessageProxy(message); ! } ! ! /** Load the list of proxies to create */ ! static ! { ! proxies.put(javax.jms.BytesMessage.class, BytesMessageProxy.class); ! proxies.put(javax.jms.MapMessage.class, MapMessageProxy.class); ! proxies.put(javax.jms.ObjectMessage.class, ObjectMessageProxy.class); ! proxies.put(javax.jms.StreamMessage.class, StreamMessageProxy.class); ! proxies.put(javax.jms.TextMessage.class, TextMessageProxy.class); ! } ! } Index: ObjectMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/ObjectMessageProxy.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ObjectMessageProxy.java 10 Feb 2003 21:17:09 -0000 1.1 --- ObjectMessageProxy.java 27 Nov 2003 01:30:29 -0000 1.2 *************** *** 1,68 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Object Message" shortDescription="JMS Object Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class ObjectMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public ObjectMessageProxy(Message message) ! { ! super(message); ! } ! } ! --- 1,68 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! import javax.jms.Message; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! * @javabean:class displayName="JMS Object Message" shortDescription="JMS Object Message" ! * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif" ! * @javabean:property name="correlationId" ! * class="java.lang.String" ! * displayName="Correlation Id" ! * shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" ! * class="int" ! * displayName="Delivery Mode" ! * shortDescription="Delivery Mode" ! * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" ! * class="long" ! * displayName="Expiration" ! * shortDescription="Expiration" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" ! * class="java.lang.String" ! * displayName="Message Id" ! * shortDescription="Message Id" ! * @javabean:property name="priority" ! * class="int" ! * displayName="Priority" ! * shortDescription="Priority" ! * @javabean:property name="redelivered" ! * class="boolean" ! * displayName="Is redelivered" ! * shortDescription="Is redelivered" ! * @javabean:property name="timestamp" ! * class="java.util.Date" ! * displayName="TimeStamp" ! * shortDescription="TimeStamp" ! * propertyEditor="org.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" ! * class="java.lang.String" ! * displayName="Type" ! * shortDescription="Type" ! */ ! public class ObjectMessageProxy extends MessageProxy ! { ! /** ! * Constructor for the MessageProxy object ! * ! * @param message Description of Parameter ! */ ! public ObjectMessageProxy(Message message) ! { ! super(message); ! } ! } ! Index: QueueProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/model/jms/QueueProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** QueueProxy.java 24 Feb 2003 22:32:14 -0000 1.3 --- QueueProxy.java 27 Nov 2003 01:30:29 -0000 1.4 *************** *** 1,337 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.model.jms; ! ! 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.rmi.PortableRemoteObject; ! ! import org.apache.log4j.Logger; ! import org.ejtools.beans.Sort; ! import org.ejtools.jndi.browser.model.JNDIEntry; ! import org.ejtools.jndi.browser.model.service.JMSConnectionService; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @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 ! * @javabean:class displayName="JMS Queue" ! * shortDescription="JMS Queue" ! * @javabean:icons color16="/toolbarButtonGraphics/development/JMSQueue16.gif" ! * @javabean:property name="name" ! * class="java.lang.String" ! * displayName="Name" ! * shortDescription="Name of the entry" ! * @javabean:property name="className" ! * class="java.lang.String" ! * displayName="Class" ! * shortDescription="Class of the entry" ! * @javabean:property name="count" ! * class="int" ! * displayName="Message(s)" ! * shortDescription="Number of messages in Queue" ! */ ! public class QueueProxy extends JNDIEntry ! { ! /** Description of the Field */ ! private int count = 0; ! /** Description of the Field */ ! private Queue queue = null; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(QueueProxy.class); ! ! ! /** ! * Constructor for the JMSQueue object ! * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter ! * @exception Exception Description of Exception ! */ ! public QueueProxy(Context context, String jndiName) ! throws Exception ! { ! // Try to narrow to an Queue class ! Object o = context.lookup(jndiName); ! ! setName(jndiName); ! setClassName(o.getClass().getName()); ! ! this.queue = (Queue) PortableRemoteObject.narrow(o, Queue.class); ! } ! ! ! /** ! * Description of the Method ! * ! * @todo Add Log4j log ! * @javabean:method name="browse" displayName="Browse" shortDescription="Browse the queue" ! */ ! public void browse() ! { ! logger.debug("Cleaning 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(); ! ! while (enum.hasMoreElements()) ! { ! message = (Message) enum.nextElement(); ! MessageProxy newMessage = MessageProxy.createMessageProxy(message); ! ! count++; ! ! add(newMessage); ! } ! ! firePropertyChange("count", new Integer(oldCount), new Integer(count)); ! ! queueBrowser.close(); ! queueSession.close(); ! } ! catch (Exception e) ! { ! logger.warn("Exception occurred: " + e.toString()); ! } ! finally ! { ! if (queueConnection != null) ! { ! try ! { ! queueConnection.close(); ! } ! catch (JMSException e) ! { ! // Ignore it ! } ! } ! } ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @javabean:method name="createMessage" displayName="Create Message" shortDescription="Create a simple message" ! */ ! public void createMessage() ! { ! // Get a connection on the default factory ! QueueConnection queueConnection = getQueueConnection(); ! if (queueConnection != null) ! { ! try ! { ! Message message = null; ! ! QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); ! QueueSender queueSender = queueSession.createSender(queue); ! ! message = queueSession.createMessage(); ! queueSender.send(message); ! ! queueSession.close(); ! } ! catch (JMSException e) ! { ! logger.warn("Exception occurred: " + e.toString()); ! } ! finally ! { ! if (queueConnection != null) ! { ! try ! { ! queueConnection.close(); ! } ! catch (JMSException e) ! { ! } ! } ! } ! ! // Browse the content ! this.browse(); ! } ! } ! ! ! /** ! * Description of the Method ! * ! * @param text Description of Parameter ! * @javabean:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" ! * @javabean:param name="text" displayName="Text" ! */ ! 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) ! { ! logger.warn("Exception occurred: " + e.toString()); ! } ! finally ! { ! if (queueConnection != null) ! { ! try ! { ! queueConnection.close(); ! } ! catch (JMSException e) ! { ! } ! } ! } ! ! // Browse the content ! this.browse(); ! } ! } ! ! ! /** ! * Gets the count attribute of the JMSQueue object ! * ! * @return The count value ! */ ! public int getCount() ! { ! return count; ! } ! ! ! /** ! * Return the message of this queue as an iterator ! * ! * @return The sorted iterator by name ! */ ! public Iterator iterator() ! { ! return Sort.sortByName(super.iterator()); ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return name == null ? "Undefined" : (name + " (" + count + ")"); ! } ! ! ! ! /** ! * 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) ! { ! logger.warn("No Connection: " + e.toString()); ! } ! } ! ! return queueConnection; ! } ! ! ! /** ! * Getter for the queueConnectionFactory attribute ! * ! * @return The value ! * @todo Add Log4j log ! */ ! protected QueueConnectionFactory getQ... [truncated message content] |
From: <let...@us...> - 2003-11-27 01:30:33
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/state In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/state Added Files: WorkbenchState.java WorkbenchStoreVisitor.java Log Message: Address Todo #755528 Address Todo #800902 --- NEW FILE: WorkbenchState.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package org.ejtools.jndi.browser.state; import java.beans.beancontext.BeanContext; import java.io.File; import java.net.URL; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.ejtools.jndi.browser.Browser; import org.ejtools.jndi.browser.frame.ServerInternalFrame; import org.ejtools.jndi.browser.model.Server; import org.ejtools.jndi.browser.state.rules.ServerInternalFrameRule; import org.ejtools.jndi.browser.state.rules.ServerRule; import org.ejtools.util.service.ProfileRule; import org.ejtools.util.state.LoadHandler; import org.ejtools.util.state.StoreVisitor; import org.w3c.dom.Document; /** * @author Laurent Etiemble * @created 3 juin 2003 * @version $Revision: 1.1 $ */ public class WorkbenchState { /** Description of the Field */ private BeanContext context; /** Description of the Field */ private Document document; /** Description of the Field */ private URL workbenchURL; /** *Constructor for the FilePersistenceStore object * * @param context Description of the Parameter */ public WorkbenchState(BeanContext context) { this.context = context; } /** * Gets the workbenchFile attribute of the WorkbenchStore object * * @return The workbenchFile value */ public URL getWorkbenchURL() { return this.workbenchURL; } /** Description of the Method */ public void load() { // Check that the URL is not null andthat URL is a file if ((this.workbenchURL == null) && (!this.workbenchURL.getProtocol().equals("file"))) { return; } try { LoadHandler handler = new LoadHandler(); handler.getContext().put("CONTAINER", this.context); handler.addRule("/workbench/jndi-frame", new ServerInternalFrameRule()); handler.addRule("/workbench/jndi-frame/profile", new ProfileRule()); handler.addRule("/workbench/jndi-frame/profile/property", new ProfileRule.ProfilePropertyRule()); handler.addRule("/workbench/jndi-frame/jmx-server", new ServerRule()); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); File file = new File(this.workbenchURL.getFile()); parser.parse(file, handler); } catch (Exception e) { e.printStackTrace(); } } /** * Sets the workbenchFile attribute of the WorkbenchStore object * * @param workbenchURL The new workbenchURL value */ public void setWorkbenchURL(URL workbenchURL) { this.workbenchURL = workbenchURL; } /** Description of the Method */ public void store() { // Check that the URL is not null andthat URL is a file if ((this.workbenchURL == null) && (!this.workbenchURL.getProtocol().equals("file"))) { return; } try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = dbFactory.newDocumentBuilder(); this.document = builder.newDocument(); StoreVisitor visitor = new WorkbenchStoreVisitor(this.document); visitor.registerForPersistence(Browser.class); visitor.registerForPersistence(ServerInternalFrame.class); visitor.registerForPersistence(Server.class); visitor.persist(this.context); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); transformer.setOutputProperty("indent", "true"); Source source = new DOMSource(this.document); File file = new File(this.workbenchURL.getFile()); Result result = new StreamResult(file); transformer.transform(source, result); } catch (Exception e) { e.printStackTrace(); } } } --- NEW FILE: WorkbenchStoreVisitor.java --- /* * ianRR, is a new RR * * Distributable under LGPL license. * See terms at http://opensource.org/licenses/lgpl-license.php */ package org.ejtools.jndi.browser.state; import java.util.Iterator; import org.apache.log4j.Logger; import org.ejtools.beans.Sort; import org.ejtools.jndi.browser.Browser; import org.ejtools.jndi.browser.frame.ServerInternalFrame; import org.ejtools.jndi.browser.model.Server; import org.ejtools.util.service.Profile; import org.ejtools.util.state.DefaultStoreVisitor; import org.w3c.dom.Document; import org.w3c.dom.Element; /** * @version $Revision: 1.1 $ * @author Laurent Etiemble * @created 3 juin 2003 */ public class WorkbenchStoreVisitor extends DefaultStoreVisitor { private Document document; private static Logger logger = Logger.getLogger(WorkbenchStoreVisitor.class); /** * Constructor for the WorkbenchStoreVisitor object * * @param document Description of the Parameter */ public WorkbenchStoreVisitor(Document document) { this.document = document; this.pushCurrentNode(this.document); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(ServerInternalFrame o) { logger.debug("ServerInternalFrame"); Element eFrame = this.document.createElement("jndi-frame"); eFrame.setAttribute("title", o.getTitle()); Element eProfile = this.document.createElement("profile"); eFrame.appendChild(eProfile); Profile profile = o.getProfile(); for (Iterator iterator = profile.keySet().iterator(); iterator.hasNext(); ) { String key = (String) iterator.next(); Element property = this.document.createElement("property"); property.setAttribute("key", key); property.appendChild(this.document.createTextNode(profile.getProperty(key))); eProfile.appendChild(property); } this.peekCurrentNode().appendChild(eFrame); this.pushCurrentNode(eFrame); this.persist(o.iterator()); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(Server o) { logger.debug("Server"); Element server = this.document.createElement("jndi-server"); server.setAttribute("name", o.getName()); this.peekCurrentNode().appendChild(server); this.pushCurrentNode(server); this.persist(o.iterator()); this.popCurrentNode(); } /** * Description of the Method * * @param o Description of the Parameter */ public void persist(Browser o) { logger.debug("Browser"); Element workbench = this.document.createElement("workbench"); this.peekCurrentNode().appendChild(workbench); this.pushCurrentNode(workbench); this.persist(Sort.getChildrenByClass(o.iterator(), ServerInternalFrame.class)); this.popCurrentNode(); } } |
From: <let...@us...> - 2003-11-27 01:30:33
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/web/action In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/web/action Modified Files: RefreshAction.java ViewAction.java Log Message: Address Todo #755528 Address Todo #800902 Index: RefreshAction.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/web/action/RefreshAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RefreshAction.java 5 Aug 2003 22:47:21 -0000 1.4 --- RefreshAction.java 27 Nov 2003 01:30:30 -0000 1.5 *************** *** 68,72 **** */ public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) ! throws IOException, ServletException { // Extract attributes we will need --- 68,72 ---- */ public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) ! throws IOException, ServletException { // Extract attributes we will need *************** *** 146,210 **** while (iterator.hasNext()) { ! ObjectName module = (ObjectName) iterator.next(); ! logger.debug("module=" + module); ! ! String moduleName = ""; ! ! String moduleURL = (String) module.getKeyProperty("url"); ! if (moduleURL != null) ! { ! moduleName = moduleURL; ! } ! else { ! String moduleId = (String) module.getKeyProperty("module"); String moduleUid = (String) module.getKeyProperty("uid"); - - moduleName = moduleId; if ((moduleUid != null) && (!"".equals(moduleUid))) { moduleName = moduleName + " (" + moduleUid + ")"; } ! } ! ! moduleNames.add(ResponseUtils.filter(moduleName)); ! logger.debug("moduleName=" + moduleName); ! // Get the containes from the module ! Vector containers = (Vector) moduleTrees.get(moduleName); ! if (containers == null) ! { ! containers = new Vector(); ! } ! Vector newContainers = new Vector(); ! // Create a search table ! Hashtable ejbTable = new Hashtable(); ! for (Iterator it = containers.iterator(); it.hasNext(); ) ! { ! JNDIContainer container = (JNDIContainer) it.next(); ! ejbTable.put(container.getName(), container); ! } ! Collection moduleContainers = (Collection) server.getAttribute(module, "Containers"); ! for (Iterator iter = moduleContainers.iterator(); iter.hasNext(); ) ! { ! Container ejbContainer = (Container) iter.next(); ! String ejbName = ejbContainer.getBeanMetaData().getEjbName(); ! JNDIContainer container = (JNDIContainer) ejbTable.get(ejbName); ! logger.debug("container=" + container); ! if (container == null) { ! container = new JNDIContainer(); ! container.setName(ejbName); ! container.setClassLoader(ejbContainer.getClassLoader()); ! container.setContext("java:/comp"); } ! logger.debug("refresh container"); ! newContainers.add(container); ! container.refresh(); } - newModuleTrees.put(ResponseUtils.filter(moduleName), newContainers); - containers.clear(); } context.setAttribute(Constants.EJBMODULE_NAMES, moduleNames); --- 146,203 ---- while (iterator.hasNext()) { ! try { ! ObjectName module = (ObjectName) iterator.next(); ! logger.debug("module=" + module); ! String moduleName = (String) module.getKeyProperty("module"); String moduleUid = (String) module.getKeyProperty("uid"); if ((moduleUid != null) && (!"".equals(moduleUid))) { moduleName = moduleName + " (" + moduleUid + ")"; } ! moduleNames.add(ResponseUtils.filter(moduleName)); ! logger.debug("moduleName=" + moduleName); ! // Get the containes from the module ! Vector containers = (Vector) moduleTrees.get(moduleName); ! if (containers == null) ! { ! containers = new Vector(); ! } ! Vector newContainers = new Vector(); ! // Create a search table ! Hashtable ejbTable = new Hashtable(); ! for (Iterator it = containers.iterator(); it.hasNext(); ) ! { ! JNDIContainer container = (JNDIContainer) it.next(); ! ejbTable.put(container.getName(), container); ! } ! Collection moduleContainers = (Collection) server.getAttribute(module, "Containers"); ! for (Iterator iter = moduleContainers.iterator(); iter.hasNext(); ) { ! Container ejbContainer = (Container) iter.next(); ! String ejbName = ejbContainer.getBeanMetaData().getEjbName(); ! JNDIContainer container = (JNDIContainer) ejbTable.get(ejbName); ! logger.debug("container=" + container); ! if (container == null) ! { ! container = new JNDIContainer(); ! container.setName(ejbName); ! container.setClassLoader(ejbContainer.getClassLoader()); ! container.setContext("java:/comp"); ! } ! logger.debug("refresh container"); ! newContainers.add(container); ! container.refresh(); } ! newModuleTrees.put(ResponseUtils.filter(moduleName), newContainers); ! containers.clear(); ! } ! catch (Exception e) ! { ! logger.error("Error while refreshing getting module", e); } } context.setAttribute(Constants.EJBMODULE_NAMES, moduleNames); Index: ViewAction.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/web/action/ViewAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ViewAction.java 24 Feb 2003 22:32:21 -0000 1.3 --- ViewAction.java 27 Nov 2003 01:30:30 -0000 1.4 *************** *** 1,137 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.web.action; ! ! import java.io.IOException; ! import java.util.Collection; ! import java.util.Hashtable; ! import java.util.Iterator; ! import java.util.Locale; ! import java.util.Vector; ! ! import javax.servlet.ServletContext; ! import javax.servlet.ServletException; ! import javax.servlet.http.HttpServletRequest; ! import javax.servlet.http.HttpServletResponse; ! ! import org.apache.log4j.Logger; ! import org.apache.struts.action.Action; ! import org.apache.struts.action.ActionError; ! import org.apache.struts.action.ActionErrors; ! import org.apache.struts.action.ActionForm; ! import org.apache.struts.action.ActionForward; ! import org.apache.struts.action.ActionMapping; ! import org.apache.struts.util.MessageResources; ! import org.ejtools.jndi.browser.web.Constants; ! import org.ejtools.jndi.browser.web.JNDIContainer; ! import org.ejtools.jndi.browser.web.form.ViewForm; ! ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 12 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class ViewAction extends Action ! { ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ViewAction.class); ! ! ! /** Constructor for the ViewAction object */ ! public ViewAction() { } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of Parameter ! * @param form Description of Parameter ! * @param request Description of Parameter ! * @param response Description of Parameter ! * @return Description of the Returned Value ! * @exception IOException Description of Exception ! * @exception ServletException Description of Exception ! */ ! public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) ! throws IOException, ServletException ! { ! String name = null; ! String type = null; ! ! // Extract attributes we will need ! Locale locale = getLocale(request); ! MessageResources messages = getResources(); ! ! // Validate the request parameters specified by the user ! ActionErrors errors = new ActionErrors(); ! ! if (form instanceof ViewForm) ! { ! name = ((ViewForm) form).getName(); ! type = ((ViewForm) form).getType(); ! } ! else ! { ! errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("web.index.title")); ! } ! ! // Report any errors we have discovered back to the original form ! if (!errors.empty()) ! { ! this.saveErrors(request, errors); ! return (new ActionForward(mapping.getInput())); ! } ! ! ServletContext context = this.getServlet().getServletContext(); ! ! if ("ejbmodule".equals(type)) ! { ! Hashtable moduleTrees = (Hashtable) context.getAttribute(Constants.EJBMODULE_TREES); ! logger.debug("Viewing JNDI for " + moduleTrees); ! if (moduleTrees == null) ! { ! moduleTrees = new Hashtable(); ! } ! ! Collection containers = (Collection) moduleTrees.get(name); ! logger.debug("Viewing JNDI for " + containers); ! if (containers != null) ! { ! context.setAttribute(Constants.EJBMODULE_TREE, containers); ! } ! } ! if ("webapp".equals(type)) ! { ! Vector applications = (Vector) context.getAttribute(Constants.WEBAPP_TREES); ! if (applications == null) ! { ! applications = new Vector(); ! } ! ! // Create a search table ! Hashtable table = new Hashtable(); ! for (Iterator it = applications.iterator(); it.hasNext(); ) ! { ! JNDIContainer container = (JNDIContainer) it.next(); ! table.put(container.getName(), container); ! } ! ! JNDIContainer container = (JNDIContainer) table.get(name); ! if (container != null) ! { ! context.setAttribute(Constants.WEBAPP_TREE, container); ! } ! } ! ! return (mapping.findForward("view")); ! } ! } ! --- 1,137 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.web.action; ! ! import java.io.IOException; ! import java.util.Collection; ! import java.util.Hashtable; ! import java.util.Iterator; ! import java.util.Locale; ! import java.util.Vector; ! ! import javax.servlet.ServletContext; ! import javax.servlet.ServletException; ! import javax.servlet.http.HttpServletRequest; ! import javax.servlet.http.HttpServletResponse; ! ! import org.apache.log4j.Logger; ! import org.apache.struts.action.Action; ! import org.apache.struts.action.ActionError; ! import org.apache.struts.action.ActionErrors; ! import org.apache.struts.action.ActionForm; ! import org.apache.struts.action.ActionForward; ! import org.apache.struts.action.ActionMapping; ! import org.apache.struts.util.MessageResources; ! import org.ejtools.jndi.browser.web.Constants; ! import org.ejtools.jndi.browser.web.JNDIContainer; ! import org.ejtools.jndi.browser.web.form.ViewForm; ! ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 12 novembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class ViewAction extends Action ! { ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ViewAction.class); ! ! ! /** Constructor for the ViewAction object */ ! public ViewAction() { } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of Parameter ! * @param form Description of Parameter ! * @param request Description of Parameter ! * @param response Description of Parameter ! * @return Description of the Returned Value ! * @exception IOException Description of Exception ! * @exception ServletException Description of Exception ! */ ! public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) ! throws IOException, ServletException ! { ! String name = null; ! String type = null; ! ! // Extract attributes we will need ! Locale locale = getLocale(request); ! MessageResources messages = getResources(); ! ! // Validate the request parameters specified by the user ! ActionErrors errors = new ActionErrors(); ! ! if (form instanceof ViewForm) ! { ! name = ((ViewForm) form).getName(); ! type = ((ViewForm) form).getType(); ! } ! else ! { ! errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("web.index.title")); ! } ! ! // Report any errors we have discovered back to the original form ! if (!errors.empty()) ! { ! this.saveErrors(request, errors); ! return (new ActionForward(mapping.getInput())); ! } ! ! ServletContext context = this.getServlet().getServletContext(); ! ! if ("ejbmodule".equals(type)) ! { ! Hashtable moduleTrees = (Hashtable) context.getAttribute(Constants.EJBMODULE_TREES); ! logger.debug("Viewing JNDI for " + moduleTrees); ! if (moduleTrees == null) ! { ! moduleTrees = new Hashtable(); ! } ! ! Collection containers = (Collection) moduleTrees.get(name); ! logger.debug("Viewing JNDI for " + containers); ! if (containers != null) ! { ! context.setAttribute(Constants.EJBMODULE_TREE, containers); ! } ! } ! if ("webapp".equals(type)) ! { ! Vector applications = (Vector) context.getAttribute(Constants.WEBAPP_TREES); ! if (applications == null) ! { ! applications = new Vector(); ! } ! ! // Create a search table ! Hashtable table = new Hashtable(); ! for (Iterator it = applications.iterator(); it.hasNext(); ) ! { ! JNDIContainer container = (JNDIContainer) it.next(); ! table.put(container.getName(), container); ! } ! ! JNDIContainer container = (JNDIContainer) table.get(name); ! if (container != null) ! { ! context.setAttribute(Constants.WEBAPP_TREE, container); ! } ! } ! ! return (mapping.findForward("view")); ! } ! } ! |
From: <let...@us...> - 2003-11-27 01:30:33
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/web/form In directory sc8-pr-cvs1:/tmp/cvs-serv17169/jndi.browser/src/main/org/ejtools/jndi/browser/web/form Modified Files: ViewForm.java Log Message: Address Todo #755528 Address Todo #800902 Index: ViewForm.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/org/ejtools/jndi/browser/web/form/ViewForm.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ViewForm.java 24 Feb 2003 22:32:30 -0000 1.3 --- ViewForm.java 27 Nov 2003 01:30:30 -0000 1.4 *************** *** 1,100 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.web.form; ! ! import javax.servlet.http.HttpServletRequest; ! ! import org.apache.struts.action.ActionErrors; ! import org.apache.struts.action.ActionForm; ! import org.apache.struts.action.ActionMapping; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 février 2002 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class ViewForm extends ActionForm ! { ! /** Description of the Field */ ! protected String name = null; ! /** Description of the Field */ ! protected String type = null; ! ! ! /** Constructor for the ViewForm object */ ! public ViewForm() { } ! ! ! /** ! * Returns the name. ! * ! * @return String ! */ ! public String getName() ! { ! return name; ! } ! ! ! /** ! * Returns the type. ! * ! * @return String ! */ ! public String getType() ! { ! return type; ! } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of the Parameter ! * @param request Description of the Parameter ! */ ! public void reset(ActionMapping mapping, HttpServletRequest request) { } ! ! ! /** ! * Sets the name. ! * ! * @param name The name to set ! */ ! public void setName(String name) ! { ! this.name = name; ! } ! ! ! /** ! * Sets the type. ! * ! * @param type The type to set ! */ ! public void setType(String type) ! { ! this.type = type; ! } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of the Parameter ! * @param request Description of the Parameter ! * @return Description of the Return Value ! */ ! public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) ! { ! return new ActionErrors(); ! } ! } ! --- 1,100 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jndi.browser.web.form; ! ! import javax.servlet.http.HttpServletRequest; ! ! import org.apache.struts.action.ActionErrors; ! import org.apache.struts.action.ActionForm; ! import org.apache.struts.action.ActionMapping; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 février 2002 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public class ViewForm extends ActionForm ! { ! /** Description of the Field */ ! protected String name = null; ! /** Description of the Field */ ! protected String type = null; ! ! ! /** Constructor for the ViewForm object */ ! public ViewForm() { } ! ! ! /** ! * Returns the name. ! * ! * @return String ! */ ! public String getName() ! { ! return name; ! } ! ! ! /** ! * Returns the type. ! * ! * @return String ! */ ! public String getType() ! { ! return type; ! } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of the Parameter ! * @param request Description of the Parameter ! */ ! public void reset(ActionMapping mapping, HttpServletRequest request) { } ! ! ! /** ! * Sets the name. ! * ! * @param name The name to set ! */ ! public void setName(String name) ! { ! this.name = name; ! } ! ! ! /** ! * Sets the type. ! * ! * @param type The type to set ! */ ! public void setType(String type) ! { ! this.type = type; ! } ! ! ! /** ! * Description of the Method ! * ! * @param mapping Description of the Parameter ! * @param request Description of the Parameter ! * @return Description of the Return Value ! */ ! public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) ! { ! return new ActionErrors(); ! } ! } ! |