[JBoss-dev] [ jboss-Change Notes-416575 ] fixed race in TxCapsule
Change Notes item #416575, was updated on 2001-04-16 18:46 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416575&group_id=22866 Category: None Group: v2.2.1 Status: Open Priority: 5 Submitted By: Dan Christopherson (danch) Assigned to: Nobody/Anonymous (nobody) Summary: fixed race in TxCapsule Initial Comment: refer to bug 416377 (now closed) -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416575&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Change Notes-416576 ] fixed race in TxCapsule
Change Notes item #416576, was updated on 2001-04-16 18:47 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416576&group_id=22866 Category: None Group: v2.2.1 Status: Open Priority: 5 Submitted By: Dan Christopherson (danch) Assigned to: Nobody/Anonymous (nobody) Summary: fixed race in TxCapsule Initial Comment: refer to bug 416377 (now closed) -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416576&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/tm TxCapsule.java
User: danch Date: 01/04/16 18:29:06 Modified:src/main/org/jboss/tm TxCapsule.java Log: prevent race condition and lock contention Revision ChangesPath 1.25 +9 -4 jboss/src/main/org/jboss/tm/TxCapsule.java Index: TxCapsule.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/tm/TxCapsule.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- TxCapsule.java2001/02/09 18:56:17 1.24 +++ TxCapsule.java2001/04/17 01:29:06 1.25 @@ -48,7 +48,7 @@ * @author mailto:[EMAIL PROTECTED]">Marc Fleury * @author mailto:[EMAIL PROTECTED]">Ole Husgaard * - * @version $Revision: 1.24 $ + * @version $Revision: 1.25 $ */ class TxCapsule implements TimeoutTarget { @@ -380,6 +380,10 @@ } finally { unlock(); + +// This instance is now ready for reuse (when we release the lock). +if (done) + releaseInstance(this); } } @@ -425,6 +429,10 @@ } } finally { unlock(); + +// This instance is now ready for reuse (when we release the lock). +if (done) + releaseInstance(this); } } @@ -1383,9 +1391,6 @@ // If using a special class, second constructor argument is now useless. if (xidConstructor != null) xidConstructorArgs[1] = null; // This now needs initializing - - // This instance is now ready for reuse (when we release the lock). - releaseInstance(this); } /** ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/tm TxCapsule.java
User: danch Date: 01/04/16 18:28:41 Modified:src/main/org/jboss/tm Tag: Branch_2_2 TxCapsule.java Log: prevent race condition and lock contention Revision ChangesPath No revision No revision 1.24.2.1 +9 -4 jboss/src/main/org/jboss/tm/TxCapsule.java Index: TxCapsule.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/tm/TxCapsule.java,v retrieving revision 1.24 retrieving revision 1.24.2.1 diff -u -r1.24 -r1.24.2.1 --- TxCapsule.java2001/02/09 18:56:17 1.24 +++ TxCapsule.java2001/04/17 01:28:41 1.24.2.1 @@ -48,7 +48,7 @@ * @author mailto:[EMAIL PROTECTED]">Marc Fleury * @author mailto:[EMAIL PROTECTED]">Ole Husgaard * - * @version $Revision: 1.24 $ + * @version $Revision: 1.24.2.1 $ */ class TxCapsule implements TimeoutTarget { @@ -380,6 +380,10 @@ } finally { unlock(); + +// This instance is now ready for reuse (when we release the lock). +if (done) + releaseInstance(this); } } @@ -425,6 +429,10 @@ } } finally { unlock(); + +// This instance is now ready for reuse (when we release the lock). +if (done) + releaseInstance(this); } } @@ -1383,9 +1391,6 @@ // If using a special class, second constructor argument is now useless. if (xidConstructor != null) xidConstructorArgs[1] = null; // This now needs initializing - - // This instance is now ready for reuse (when we release the lock). - releaseInstance(this); } /** ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] DependencyManager & jboss.dependencies
I think that I have finished moving the openjms specific fluff outside of the main jboss module. I was able to run the mdbtest.sh script against the JBossMQ provider, though I have not even tried to test the OpenJMS provider classes. They are mostly unmodified, so I would expect them to continue working as before. Is there any documentation that might need to be updated that is OpenJMS specific? I can not seem to recall anywhere in the online docs where any OpenJMS provider classes were mentioned explicitly, but I can't recall at the moment. The changes to the jboss module are mostly removed files, and I have verified that the current config works and runs the mdbtest.sh with no errors. Any preferences on how to continue? My bias would be to commit these changes soon, so I can move on to other bits. This will effect OpenJMS users, so we should probably add that to a release note also. --jason > On Sat, 14 Apr 2001, Jason Dillon wrote: > > > Just to clarify, I should talk to Peter about adding a openjms contrib > > module. > > Yes, he knows the code. > > > And for the tests, this is from the jbosstest module... perhaps > > the bin/mdbtest.sh script? > > Yep. > > > Is there more documentation on this anywhere? > > No, just the source I think. > > -- Juha > > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor BeanCacheStatsView.java
User: juhalindfors Date: 01/04/16 15:45:49 Added: src/org/jboss/admin/monitor BeanCacheStatsView.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.1 admin/src/org/jboss/admin/monitor/BeanCacheStatsView.java Index: BeanCacheStatsView.java === package org.jboss.admin.monitor; // standard imports import java.awt.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.util.Locale; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; // non-standard class dependencies import org.jboss.admin.monitor.event.GraphModelListener; import org.jboss.admin.monitor.event.GraphModelEvent; import org.hs.jfc.FormPanel; import org.gjt.lindfors.util.LocalizationSupport; /** * ... * * @author mailto:[EMAIL PROTECTED]">Juha Lindfors */ public class BeanCacheStatsView extends JPanel implements GraphModelListener, MonitorResourceConstants { // superclass implements Serializable /** * Support class for localization. Used for loading language resource bundles * and retrieving localized info. * * Initialized in the constructor. */ private transient LocalizationSupport lang = null; private JLabel cacheSize = new JLabel("0"); private JLabel cacheCapacity = new JLabel("0"); /* * * * CONSTRUCTORS * * */ /* * Default constructor */ public BeanCacheStatsView() { super(new FlowLayout(FlowLayout.LEFT)); //setLocale(getParent().getLocale()); lang = new LocalizationSupport(LANG_PKG, Locale.getDefault()); add(createLayout()); } /* * * * IMPLEMENTS GRAPH_MODEL_LISTENER INTERFACE * * */ public void valueAppended(GraphModelEvent evt) { int value = (int)evt.getValue(); cacheSize.setText(String.valueOf(value)); cacheSize.repaint(); } public void limitChanged(GraphModelEvent evt) { int value = (int)evt.getValue(); if (evt.getTarget() == MAX_VERTICAL_LIMIT) { cacheCapacity.setText(String.valueOf(value)); cacheCapacity.repaint(); } } /* * * * PRIVATE INSTANCE METHODS * * */ private JComponent createLayout() { FormPanel p = new FormPanel(); JLabel size = new JLabel(lang.getLabel(CACHE_SIZE) + ":"); JLabel capacity = new JLabel(lang.getLabel(CACHE_CAPACITY) + ":"); p.add(size, cacheSize, 1, 1); // row 1, col 1 p.add(capacity, cacheCapacity, 2, 1); return p; } } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/graph BeanCacheGraphModel.java
User: juhalindfors Date: 01/04/16 15:45:49 Added: src/org/jboss/admin/monitor/graph BeanCacheGraphModel.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.1 admin/src/org/jboss/admin/monitor/graph/BeanCacheGraphModel.java Index: BeanCacheGraphModel.java === package org.jboss.admin.monitor.graph; // standard imports import java.util.Map; import java.util.List; import java.util.Collections; import java.util.Collection; import java.util.HashMap; import java.util.ArrayList; // non-standard class dependencies import org.jboss.admin.dataholder.BeanCacheEntry; import org.gjt.lindfors.util.BoundBuffer; /** * * * @author mailto:[EMAIL PROTECTED]">Juha Lindfors */ public class BeanCacheGraphModel extends DefaultGraphModel implements Runnable { private List resultList = Collections.synchronizedList(new ArrayList()); private Long previousValue = new Long(0); private Thread updateThread = null; private boolean running = true; private int delay = 3000; /* * * * CONSTRUCTORS * * */ public BeanCacheGraphModel() {} /* * * * PUBLIC INSTANCE METHODS * * */ public void appendBeanCacheEntry(BeanCacheEntry entry) { if (entry.getSize() > 0) { resultList.add(new Long(entry.getSize())); } if (entry.getCapacity() > 0) { setVerticalMax(entry.getCapacity()); } } public void startContinuousUpdate() { running = true; updateThread = new Thread(this); updateThread.setName("BeanCache Update Thread"); updateThread.setDaemon(true); updateThread.start(); } public void stopContinuousUpdate() { running = false; updateThread.interrupt(); } public int getUpdateInterva() { return delay; } public void setUpdateInterval(int delay) { if (delay < 0) throw new IllegalArgumentException("negative delay not allowed"); this.delay = delay; } /* * * * THREAD IMPLEMENTATION * * */ /* * timer to update the graph within given delay */ public void run() { while (running) { try { updateModel(); Thread.sleep(delay); } catch (InterruptedException e) { running = false; } } } /* * This is just for the timer thread to call * other threads stay away */ private void updateModel() { Object[] results = null; synchronized (resultList) { if (resultList.size() == 0) { resultList.add(previousValue); } results = resultList.toArray(); resultList.clear(); } long sum = 0; for (int i = 0; i < results.length; ++i) sum += ((Long)results[i]).longValue(); Long value = new Long(sum / results.length); append(value); previousValue = value; } } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/systemlog SystemLog.java
User: juhalindfors Date: 01/04/16 15:00:02 Modified:src/org/jboss/admin/systemlog SystemLog.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.2 +3 -3 admin/src/org/jboss/admin/systemlog/SystemLog.java Index: SystemLog.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/systemlog/SystemLog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SystemLog.java2001/02/18 20:41:09 1.1 +++ SystemLog.java2001/04/16 22:00:02 1.2 @@ -18,7 +18,7 @@ * Boston, MA 02111-1307, USA. * * This package and its source code is available at www.jboss.org - * $Id: SystemLog.java,v 1.1 2001/02/18 20:41:09 juha Exp $ + * $Id: SystemLog.java,v 1.2 2001/04/16 22:00:02 juhalindfors Exp $ */ package org.jboss.admin.systemlog; @@ -81,11 +81,11 @@ public void onMessage(Message msg) { try { -if (msg.getStringProperty(TYPE).equals(THREAD_MONITOR)) { +if (msg.getStringProperty("TYPE").equals(THREAD_MONITOR)) { ThreadMonitorEntry entry = new ThreadMonitorEntry(msg); System.out.println(entry); } -else if (msg.getStringProperty(TYPE).equals(MEMORY_MONITOR)) { +else if (msg.getStringProperty("TYPE").equals(MEMORY_MONITOR)) { MemoryMonitorEntry entry = new MemoryMonitorEntry(msg); System.out.println(entry); } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/resources/images Method16.gif
User: juhalindfors Date: 01/04/16 14:57:05 Modified:src/resources/images Method16.gif Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.2 +2 -2 admin/src/resources/images/Method16.gif <> ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/event GraphModelEvent.java GraphModelListener.java
User: juhalindfors Date: 01/04/16 14:55:19 Modified:src/org/jboss/admin/monitor/event GraphModelEvent.java GraphModelListener.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.2 +13 -0 admin/src/org/jboss/admin/monitor/event/GraphModelEvent.java Index: GraphModelEvent.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/event/GraphModelEvent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GraphModelEvent.java 2000/12/17 20:11:22 1.1 +++ GraphModelEvent.java 2001/04/16 21:55:19 1.2 @@ -12,6 +12,7 @@ /* initialized in the constructor */ private double value; +private int target = GraphModelListener.PLOT_POINT; public GraphModelEvent(Object source, double value) { super(source); @@ -19,8 +20,20 @@ this.value = value; } +/* + * @param target target constant from GraphModelListener interface + */ +public GraphModelEvent(Object source, double value, int target) { +this(source, value); +this.target = target; +} + public double getValue() { return value; +} + +public int getTarget() { +return target; } } 1.2 +8 -1 admin/src/org/jboss/admin/monitor/event/GraphModelListener.java Index: GraphModelListener.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/event/GraphModelListener.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GraphModelListener.java 2000/12/17 20:11:22 1.1 +++ GraphModelListener.java 2001/04/16 21:55:19 1.2 @@ -11,7 +11,14 @@ */ public interface GraphModelListener extends EventListener { +// Constants -- +final static int MAX_VERTICAL_LIMIT = 0x1; +final static int MIN_VERTICAL_LIMIT = 0x2; +final static int MAX_HORIZONTAL_LIMIT = 0x4; +final static int MIN_HORIZONTAL_LIMIT = 0x8; +final static int PLOT_POINT = 0x1000; + void valueAppended(GraphModelEvent evt); - +void limitChanged(GraphModelEvent evt); } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/graph DefaultGraphModel.java DefaultGraphRenderer.java GraphModel.java InvocationTimeGraphModel.java
User: juhalindfors Date: 01/04/16 14:55:20 Modified:src/org/jboss/admin/monitor/graph DefaultGraphModel.java DefaultGraphRenderer.java GraphModel.java InvocationTimeGraphModel.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.3 +79 -2 admin/src/org/jboss/admin/monitor/graph/DefaultGraphModel.java Index: DefaultGraphModel.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/graph/DefaultGraphModel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DefaultGraphModel.java2001/02/18 20:31:01 1.2 +++ DefaultGraphModel.java2001/04/16 21:55:20 1.3 @@ -27,10 +27,59 @@ protected EventListenerList listenerList = new EventListenerList(); +protected double max = 1.0; +protected double min = 0.0; + /* lazy create */ // hmm?protected GraphModelEvent graphModelEvent = null; +/* + * + * + * PUBLIC INSTANCE METHODS + * + * + */ + +/* + * note that cannot max < min + */ +public void setVerticalMax(double max) { +this.max = max; + +fireLimitChanged(max, GraphModelListener.MAX_VERTICAL_LIMIT); + +if (max < min) +setVerticalMin(max); +} + +public double getVerticalMax() { +return max; +} + +/* + * note that cannot min > max + */ +public void setVerticalMin(double min) { +this.min = min; + +fireLimitChanged(min, GraphModelListener.MIN_VERTICAL_LIMIT); + +if (min > max) +setVerticalMax(min); +} + +public double getVerticalMin() { +return min; +} + +public double getHorizontalMin() { +throw new Error("NYI"); +} +public double getHorizontalMax() { +throw new Error("NYI"); +} /* * * @@ -41,11 +90,16 @@ /* * append is synchronized + * will automatically set max */ public void append(Number number) { xAxis.add(number); +double value = number.doubleValue(); -fireValueAppended(number.doubleValue()); +if (value > getVerticalMax()) +setVerticalMax(value); + +fireValueAppended(value); } public Collection getPlotPoints() { @@ -97,6 +151,29 @@ } } } - + +/* + * Notify all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created using the parameters passed into + * the fire method. + */ +protected void fireLimitChanged(double value, int target) { +// Guaranteed to return a non-null array +Object[] listeners = listenerList.getListenerList(); + +// Process the listeners last to first, notifying +// those that are interested in this event +for (int i = listeners.length-2; i >= 0; i -= 2) { + +if (listeners[i] == GraphModelListener.class) { + +GraphModelEvent evt = new GraphModelEvent(this, value, target); + +((GraphModelListener)listeners[i+1]).limitChanged(evt); +} +} +} + } 1.4 +68 -40 admin/src/org/jboss/admin/monitor/graph/DefaultGraphRenderer.java Index: DefaultGraphRenderer.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/graph/DefaultGraphRenderer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DefaultGraphRenderer.java 2001/02/18 20:31:01 1.3 +++ DefaultGraphRenderer.java 2001/04/16 21:55:20 1.4 @@ -54,9 +54,11 @@ private ArrayList points= new ArrayList(); - -GraphController controller = new GraphController(GraphController.VERTICAL); - +private boolean autoScale = true; + +private GraphController controller = new GraphController(GraphController.VERTICAL); + +private GraphView parent = null; /* * * @@ -71,10 +73,28 @@ setOpaque(true); // set bevel border around the graph (not the contr
[JBoss-dev] CVS update: admin/src/org/jboss/admin/dataholder BeanCacheEntry.java MemoryMonitorEntry.java ThreadMonitorEntry.java
User: juhalindfors Date: 01/04/16 14:55:19 Modified:src/org/jboss/admin/dataholder BeanCacheEntry.java MemoryMonitorEntry.java ThreadMonitorEntry.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.2 +76 -0 admin/src/org/jboss/admin/dataholder/BeanCacheEntry.java Index: BeanCacheEntry.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/dataholder/BeanCacheEntry.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BeanCacheEntry.java 2001/02/18 20:10:36 1.1 +++ BeanCacheEntry.java 2001/04/16 21:55:19 1.2 @@ -17,7 +17,11 @@ private String application = ""; private String bean= ""; private String type= ""; +private String activity= ""; private long time= 0; +private intsize= 0; +private intcapacity= 0; +private intoldCapacity = 0; /* * @@ -44,6 +48,44 @@ setBean(msg.getStringProperty("BEAN")); setType(msg.getStringProperty("TYPE")); setTime(msg.getLongProperty("TIME")); + +if (getType().equals("RESIZER")) { +setOldCapacity(msg.getIntProperty("OLD_CAPACITY")); +setCapacity(msg.getIntProperty("NEW_CAPACITY")); +setSize(msg.getIntProperty("SIZE")); +} + +if (getType().equals("PASSIVATION")) { +setActivity(msg.getStringProperty("ACTIVITY")); +} + +if (getType().equals("ACTIVATION")) { +// no additional information +} + +if (getType().equals("OVERAGER")) { +setSize(msg.getIntProperty("SIZE")); +} + +if (getType().equals("CACHE")) { +setActivity(msg.getStringProperty("ACTIVITY")); + +if (getActivity().equals("REMOVE")) { +setCapacity(msg.getIntProperty("CAPACITY")); +setSize(msg.getIntProperty("SIZE")); +} + +if (getActivity().equals("ADD")) { +setCapacity(msg.getIntProperty("CAPACITY")); +setSize(msg.getIntProperty("SIZE")); +} + +if (getActivity().equals("CAPACITY")) { +setOldCapacity(msg.getIntProperty("OLD_CAPACITY")); +setCapacity(msg.getIntProperty("NEW_CAPACITY")); +setSize(msg.getIntProperty("SIZE")); +} +} } /* @@ -95,6 +137,40 @@ return time; } +public int getCapacity() { +return capacity; +} + +public void setCapacity(int capacity) { + +System.out.println("entry cap: " + capacity); + +this.capacity = capacity; +} + +public int getOldCapacity() { +return oldCapacity; +} + +public void setOldCapacity(int capacity) { +this.oldCapacity = capacity; +} + +public int getSize() { +return size; +} + +public void setSize(int size) { +this.size = size; +} + +public void setActivity(String activity) { +this.activity = activity; +} + +public String getActivity() { +return activity; +} /* * * 1.2 +2 -2 admin/src/org/jboss/admin/dataholder/MemoryMonitorEntry.java Index: MemoryMonitorEntry.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/dataholder/MemoryMonitorEntry.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MemoryMonitorEntry.java 2001/02/18 20:10:36 1.1 +++ MemoryMonitorEntry.java 2001/04/16 21:55:19 1.2 @@ -18,7 +18,7 @@ * Boston, MA 02111-1307, USA. * * This package and its source code is available at www.jboss.org - * $Id: MemoryMonitorEntry.java,v 1.1 2001/02/18 20:10:36 juha Exp $ + * $Id: MemoryMonitorEntry.java,v 1.2 2001/04/16 21:55:19 juhalindfors Exp $ */ package org.jboss.admin.dataholder; @@ -61,7 +61,7 @@ } public MemoryMonitorEntry(Message msg) throws JMSException { -setType(msg.getStringProperty(TYPE)); +setType(msg.getStringProperty("TYPE")); setTime(msg.getJMSTimestamp()); setFreeMem(msg.getLongProperty("FreeMem")); setTotalMem(msg.getLongProperty("TotalMem")); 1.2 +2 -2 admin/src/org/jboss/admin/dataholder/T
[JBoss-dev] CVS update: admin/src/resources/lang MonitorBundle.properties
User: juhalindfors Date: 01/04/16 14:57:05 Modified:src/resources/lang MonitorBundle.properties Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.3 +3 -0 admin/src/resources/lang/MonitorBundle.properties Index: MonitorBundle.properties === RCS file: /cvsroot/jboss/admin/src/resources/lang/MonitorBundle.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MonitorBundle.properties 2001/01/23 18:47:40 1.2 +++ MonitorBundle.properties 2001/04/16 21:57:05 1.3 @@ -29,6 +29,7 @@ # border labels label.border.invocation.graph = Invocation Time History label.border.invocation.stats = Invocation Statistics +label.border.cache.stats= Cache Statistics # status bar message msg.connect.jndi= Connecting to name service... @@ -37,4 +38,6 @@ # stats view entries label.stats.invocation.avg_time= Avg. Invocation Time label.stats.invocation.total = Number of Invocations +label.stats.cache.size = Active Instances +label.stats.cache.capacity = Cache Capacity ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor/tree ApplicationTreeModel.java BeanCacheTreeNode.java BeanTreeNode.java MethodTreeNode.java
User: juhalindfors Date: 01/04/16 14:55:20 Modified:src/org/jboss/admin/monitor/tree ApplicationTreeModel.java BeanCacheTreeNode.java BeanTreeNode.java MethodTreeNode.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.3 +6 -0 admin/src/org/jboss/admin/monitor/tree/ApplicationTreeModel.java Index: ApplicationTreeModel.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/ApplicationTreeModel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ApplicationTreeModel.java 2001/02/18 20:27:38 1.2 +++ ApplicationTreeModel.java 2001/04/16 21:55:20 1.3 @@ -13,6 +13,7 @@ import org.jboss.admin.dataholder.InvocationEntry; import org.jboss.admin.dataholder.BeanCacheEntry; import org.jboss.admin.monitor.graph.InvocationTimeGraphModel; +import org.jboss.admin.monitor.graph.BeanCacheGraphModel; /** @@ -90,6 +91,11 @@ ApplicationTreeNode appNode = root.addApplication(applicationName); BeanTreeNode beanNode = appNode.addBean(beanName); BeanCacheTreeNode cacheNode = beanNode.addBeanCache(); + +// Add the bean cache entry to the graph model associated with +// the bean cache node +BeanCacheGraphModel graphModel = cacheNode.getGraphModel(); +graphModel.appendBeanCacheEntry(entry); } } 1.2 +20 -11admin/src/org/jboss/admin/monitor/tree/BeanCacheTreeNode.java Index: BeanCacheTreeNode.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/BeanCacheTreeNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BeanCacheTreeNode.java2001/02/18 20:27:38 1.1 +++ BeanCacheTreeNode.java2001/04/16 21:55:20 1.2 @@ -1,13 +1,15 @@ package org.jboss.admin.monitor.tree; // standard imports +import javax.swing.JComponent; import javax.swing.tree.DefaultMutableTreeNode; import java.util.Vector; // non-standard class dependencies -//import org.jboss.admin.monitor.graph.InvocationTimeGraphModel; +import org.jboss.admin.monitor.graph.BeanCacheGraphModel; +import org.jboss.admin.monitor.BeanCacheStatsView; +import org.jboss.admin.monitor.event.GraphModelListener; - /** * * @author mailto:[EMAIL PROTECTED]">Juha Lindfors @@ -19,13 +21,12 @@ private final static boolean ALLOW_CHILDREN = false; /* - * each node contains a reference to the graph model that visualizes - * the data received as TxEntries from metrics invocation layer + * ... * * initialized in the constructor */ -//private InvocationTimeGraphModel graphModel = null; - +private BeanCacheGraphModel graphModel = null; +private JComponent statsView = null; /* * @@ -45,9 +46,13 @@ // superclass creates children collection lazily but I want it // to be around right after construction to avoid making NPE checks children = new Vector(); + +// initialize the graph model and stats view for this node +graphModel = new BeanCacheGraphModel(); +statsView = new BeanCacheStatsView(); -// initialize the graph model for this node -//graphModel = new InvocationTimeGraphModel(); +// have the stats view listen to the model +graphModel.addGraphModelListener((GraphModelListener)statsView); } /* @@ -62,9 +67,13 @@ * each method node contains a reference to a graph model that represents * the data from the metrics invocation layer */ -//public InvocationTimeGraphModel getGraphModel() { -// return graphModel; -//} +public BeanCacheGraphModel getGraphModel() { + return graphModel; +} + +public JComponent getStatsView() { +return statsView; +} /* * 1.3 +12 -2 admin/src/org/jboss/admin/monitor/tree/BeanTreeNode.java Index: BeanTreeNode.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/tree/BeanTreeNode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- BeanTreeNode.java 2001/02/18 20:27:38 1.2 +++ BeanTreeNode.java 2001/04/16 21:55:20 1.3 @@ -83,7 +83,12 @@ add(node); -((RootNode)getRoot()).getTreeModel().nodeStruct
[JBoss-dev] CVS update: admin/src/org/jboss/admin/monitor GraphView.java MonitorFrame.java MonitorPane.java MonitorResourceConstants.java StatsView.java
User: juhalindfors Date: 01/04/16 14:55:19 Modified:src/org/jboss/admin/monitor GraphView.java MonitorFrame.java MonitorPane.java MonitorResourceConstants.java StatsView.java Log: initial cache monitoring + a bunch of other stuff Revision ChangesPath 1.3 +20 -7 admin/src/org/jboss/admin/monitor/GraphView.java Index: GraphView.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/GraphView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- GraphView.java2001/02/18 20:37:31 1.2 +++ GraphView.java2001/04/16 21:55:19 1.3 @@ -73,7 +73,8 @@ if (graphRenderer == null) return; -remove((Component)renderer); +//remove((Component)renderer); +removeAll(); this.renderer = graphRenderer; @@ -94,19 +95,31 @@ return; model.removeGraphModelListener(renderer); -//remove((Component)renderer); -setGraphRenderer(renderer); this.model = graphModel; - -//add(renderer.getGraphRendererObject(this), BorderLayout.CENTER); model.addGraphModelListener(renderer); - -revalidate(); + +setGraphRenderer(renderer); } public GraphModel getModel() { return model; +} + +public double getVerticalMax() { +return getModel().getVerticalMax(); +} + +public double getVerticalMin() { +return getModel().getVerticalMin(); +} + +public double getHorizontalMax() { +return getModel().getHorizontalMax(); +} + +public double getHorizontalMin() { +return getModel().getHorizontalMin(); } } 1.3 +19 -6 admin/src/org/jboss/admin/monitor/MonitorFrame.java Index: MonitorFrame.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/monitor/MonitorFrame.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MonitorFrame.java 2001/02/18 20:37:31 1.2 +++ MonitorFrame.java 2001/04/16 21:55:19 1.3 @@ -28,8 +28,11 @@ import org.jboss.admin.dataholder.InvocationEntry; import org.jboss.admin.dataholder.BeanCacheEntry; import org.jboss.admin.MetricsConnector; +import org.jboss.admin.monitor.graph.GraphModel; import org.jboss.admin.monitor.graph.DefaultGraphModel; import org.jboss.admin.monitor.tree.MethodTreeNode; +import org.jboss.admin.monitor.tree.BeanCacheTreeNode; +import org.jboss.admin.monitor.event.GraphModelListener; import org.jboss.monitor.MetricsConstants; import org.gjt.lindfors.util.LocalizationSupport; @@ -125,6 +128,7 @@ * */ +// [TODO] get rid of this and create a locale singleton public LocalizationSupport getLanguagePackage() { return lang; } @@ -152,21 +156,30 @@ if (node.isLeaf() && (node instanceof MethodTreeNode)) { -// ATM all leaves are methodnode instances MethodTreeNode methodNode = (MethodTreeNode)node; monitor.setGraphModel(methodNode.getGraphModel()); monitor.repaint(); } + +else if (node.isLeaf() && (node instanceof BeanCacheTreeNode)) { + +BeanCacheTreeNode cacheNode = (BeanCacheTreeNode)node; +monitor.setGraphModel(cacheNode.getGraphModel()); +monitor.setStatsView((GraphModelListener)cacheNode.getStatsView()); +monitor.repaint(); +} // right just display empty stats for all branches // will do "summary" displays later else { -monitor.setGraphModel(new DefaultGraphModel()); +monitor.setGraphModel(emptyGraphModel); monitor.repaint(); } } +private GraphModel emptyGraphModel = new DefaultGraphModel(); + /* * * @@ -219,9 +232,9 @@ private class ConnectorThread implements Runnable, MessageListener { -final static String TOPIC = "topic/metrics"; -final static String SELECTOR = -"JMSType = 'Invocation' OR JMSType = 'BeanCache'"; +final String TOPIC = "topic/metrics"; +final String SELECTOR = null; +//"JMSType = 'Invocation' OR JMSType = 'BeanCache'"; public void run() { /
[JBoss-dev] CVS update: admin/build build.xml
User: juhalindfors Date: 01/04/16 14:52:36 Modified:buildbuild.xml Log: Updated build. Revision ChangesPath 1.5 +24 -8 admin/build/build.xml Index: build.xml === RCS file: /cvsroot/jboss/admin/build/build.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- build.xml 2001/03/07 22:34:29 1.4 +++ build.xml 2001/04/16 21:52:36 1.5 @@ -3,7 +3,7 @@ Build scripts for org.jboss.admin package. Author: Juha Lindfors -Revision: $Id: build.xml,v 1.4 2001/03/07 22:34:29 juha Exp $ +Revision: $Id: build.xml,v 1.5 2001/04/16 21:52:36 juhalindfors Exp $ Since:Ant 1.1 = --> @@ -34,19 +34,21 @@ + + + + - - + - @@ -68,9 +70,6 @@ - - - @@ -140,7 +146,16 @@ - + + + + + + + ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/lib jaas.jar jbosssx-client.jar ejbdoclet.jar jboss-client.jar jboss-util.jar jbossmq-client.jar metadata.jar verifier.jar
User: juhalindfors Date: 01/04/16 14:47:56 Modified:lib ejbdoclet.jar jboss-client.jar jboss-util.jar jbossmq-client.jar metadata.jar verifier.jar Added: lib jaas.jar jbosssx-client.jar Log: some initial sketches for the management model Revision ChangesPath 1.2 +91 -86admin/lib/ejbdoclet.jar <> 1.2 +141 -148 admin/lib/jboss-client.jar <> 1.3 +24 -24admin/lib/jboss-util.jar <> 1.2 +279 -284 admin/lib/jbossmq-client.jar <> 1.2 +72 -60admin/lib/metadata.jar <> 1.2 +35 -37admin/lib/verifier.jar <> 1.1 admin/lib/jaas.jar <> 1.1 admin/lib/jbosssx-client.jar <> ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin AdminLogin.java
User: juhalindfors Date: 01/04/16 14:47:55 Added: src/org/jboss/admin AdminLogin.java Log: some initial sketches for the management model Revision ChangesPath 1.1 admin/src/org/jboss/admin/AdminLogin.java Index: AdminLogin.java === package org.jboss.admin; // standard imports import java.io.IOException; import javax.naming.InitialContext; import javax.security.auth.login.LoginContext; import javax.security.auth.login.LoginException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.PasswordCallback; import javax.security.auth.callback.NameCallback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.UnsupportedCallbackException; // JBoss Admin imports import org.jboss.admin.interfaces.AdminServer; import org.jboss.admin.interfaces.AdminServerHome; /** * ... * * @author mailto:[EMAIL PROTECTED]">Juha Lindfors * @version $Revision: 1.1 $ */ public class AdminLogin implements CallbackHandler { char[] password; String user; /* * * * IMPLEMENTS CALLBACK_HANDLER INTERFACE * * */ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (int i = 0; i < callbacks.length; ++i) { if (callbacks[i] instanceof NameCallback) { NameCallback callback = (NameCallback)callbacks[i]; callback.setName(user); } if (callbacks[i] instanceof PasswordCallback) { PasswordCallback callback = (PasswordCallback)callbacks[i]; callback.setPassword(password); } } } /* * * * MAIN METHOD * * */ public static void main(String[] args) { try { AdminLogin login = new AdminLogin(); login.user = "jboss"; login.password = "jboss".toCharArray(); LoginContext loginCtx = new LoginContext("Admin Login", login); loginCtx.login(); InitialContext initCtx = new InitialContext(); Object ref = initCtx.lookup("AdminServer"); AdminServerHome home = (AdminServerHome)ref; AdminServer server = home.create(); server.isAdminServerEnabled(); } catch (Exception e) { e.printStackTrace(); } } } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/src/org/jboss/admin/beans AdminServerBean.java NoRootException.java
User: juhalindfors Date: 01/04/16 14:47:56 Added: src/org/jboss/admin/beans AdminServerBean.java NoRootException.java Log: some initial sketches for the management model Revision ChangesPath 1.1 admin/src/org/jboss/admin/beans/AdminServerBean.java Index: AdminServerBean.java === /* * Class AdminServerBean.java * Copyright (C) 2001 Juha Lindfors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * This package and its source code is available at www.jboss.org * $Id: AdminServerBean.java,v 1.1 2001/04/16 21:47:56 juhalindfors Exp $ */ package org.jboss.admin.beans; // standard imports import javax.ejb.CreateException; import javax.ejb.SessionBean; import javax.ejb.SessionContext; import javax.management.MalformedObjectNameException; // JBoss classes import org.jboss.util.MBeanProxy; import org.jboss.admin.mbean.AdminServerMBean; /** * ... * * @ejb-name AdminServer * The EJB name for this bean. Used in both ejb-jar.xml and jboss.xml * descriptors. * * @security-role-ref new_install temp * @stateful-session * * @author mailto:[EMAIL PROTECTED]">Juha Lindfors * @version $Revision: 1.1 $ */ public class AdminServerBean implements SessionBean { /** Security role reference used to identify a newly installed server instance */ private final static String NEW_INSTALL = "new_install"; // serializable fields (for passivation) private SessionContext ctx = null; private AdminServerMBean admin = null; /* * * * PUBLIC INSTANCE METHODS * * */ /** * @create-method * @permission root * */ public void ejbCreate() throws CreateException { try { admin = createAdminProxy(); } catch (MalformedObjectNameException e) { throw new CreateException("Unable to create an MBean proxy to " + AdminServerMBean.OBJECT_NAME + " due to malformed object name."); } } /** * @create-method * @permission temp */ public void ejbCreate(String user, char[] password) throws CreateException { try { admin = createAdminProxy(); admin.createRoot(user, password); // User root = admin.createUser(user, password); // Role role = admin.createRole("root"); // this constructor should be accessible only once // admin.deleteUser("jboss"); // admin.deleteRole("temp"); } catch (MalformedObjectNameException e) { throw new CreateException("Unable to create an MBean proxy to " + AdminServerMBean.OBJECT_NAME + " due to malformed object name."); } } /** * @remote-method * @permission root * @permission temp */ public boolean isAdminServerEnabled() throws NoRootException { if (ctx.isCallerInRole(NEW_INSTALL)) throw new NoRootException("Root not installed"); return true; } /* * * * IMPLEMENTS SESSION_BEAN INTERFACE * * */ /** * Stores the session context upon creation. * * @param ctx session context object */ public void setSessionContext(SessionContext ctx) { this.ctx = ctx; } public void ejbActivate() {} public void ejbPassivate() {} public void ejbRemove() { } /* * * * PRIVATE INSTANCE METHODS * ***
[JBoss-dev] CVS update: admin/src/org/jboss/admin/mbean AdminServer.java AdminServerMBean.java SystemMonitor.java
User: juhalindfors Date: 01/04/16 14:47:56 Modified:src/org/jboss/admin/mbean SystemMonitor.java Added: src/org/jboss/admin/mbean AdminServer.java AdminServerMBean.java Log: some initial sketches for the management model Revision ChangesPath 1.2 +3 -3 admin/src/org/jboss/admin/mbean/SystemMonitor.java Index: SystemMonitor.java === RCS file: /cvsroot/jboss/admin/src/org/jboss/admin/mbean/SystemMonitor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SystemMonitor.java2001/02/04 00:18:31 1.1 +++ SystemMonitor.java2001/04/16 21:47:56 1.2 @@ -29,7 +29,7 @@ * ... * * @author Juha Lindfors ([EMAIL PROTECTED]) - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ */ public class SystemMonitor extends ServiceMBeanSupport implements SystemMonitorMBean, MetricsConstants { @@ -254,7 +254,7 @@ try { Message msg = session.createMessage(); msg.setJMSType(SYSTEM_METRICS); -msg.setStringProperty(TYPE, "MemoryMonitor"); +msg.setStringProperty("TYPE", "MemoryMonitor"); msg.setLongProperty("FreeMem", getFreeMemory()); msg.setLongProperty("TotalMem", getTotalMemory()); } @@ -293,7 +293,7 @@ try { Message msg = session.createMessage(); msg.setJMSType(SYSTEM_METRICS); -msg.setStringProperty(TYPE, "ThreadMonitor"); +msg.setStringProperty("TYPE", "ThreadMonitor"); msg.setIntProperty("ThreadCount", getThreadCount()); pub.publish(msg); 1.1 admin/src/org/jboss/admin/mbean/AdminServer.java Index: AdminServer.java === /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.admin.mbean; // standard imports // JBoss imports import org.jboss.util.ServiceMBeanSupport; /** * ... * * @author Juha Lindfors ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ */ public class AdminServer extends ServiceMBeanSupport implements AdminServerMBean { // Constructors -- public AdminServer() {} // Method Overrides -- public String getName() { return "Admin Server"; } public void startService() { } public void stopService() { } public void destroyService() { } // Management Interface -- public void createRoot(String user, char[] pw) { } } 1.1 admin/src/org/jboss/admin/mbean/AdminServerMBean.java Index: AdminServerMBean.java === /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.admin.mbean; // JBoss imports import org.jboss.util.ServiceMBean; /** * ... * * @author Juha Lindfors ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ */ public interface AdminServerMBean extends ServiceMBean { public static final String OBJECT_NAME = "Admin:name=AdminServer"; public void createRoot(String user, char[] pw); } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: admin/etc AdminServerBootstrap-jboss.xml adminlogin.bat auth.conf roles.properties users.properties
User: juhalindfors Date: 01/04/16 14:47:56 Added: etc AdminServerBootstrap-jboss.xml adminlogin.bat auth.conf roles.properties users.properties Log: some initial sketches for the management model Revision ChangesPath 1.1 admin/etc/AdminServerBootstrap-jboss.xml Index: AdminServerBootstrap-jboss.xml === java:/jaas/other Standard Stateful SessionBean java:/jaas/admin 1.1 admin/etc/adminlogin.bat Index: adminlogin.bat === java -classpath .;..\lib\ejb.jar;..\lib\jboss-client.jar;..\lib\jbosssx-client.jar;..\lib\jnp-client.jar;..\classes;..\lib\jaas.jar -Djava.security.auth.login.config=auth.conf org.jboss.admin.AdminLogin 1.1 admin/etc/auth.conf Index: auth.conf === srp { // Example client auth.conf for using the SRPLoginModule org.jboss.srp.jaas.SRPLoginModule required password-stacking="useFirstPass" principalClassName="org.jboss.security.SimplePrincipal" srpServerJndiName="SRPServerInterface" debug=true ; // jBoss LoginModule org.jboss.security.ClientLoginModule required password-stacking="useFirstPass" ; // Put your login modules that need jBoss here }; other { // Put your login modules that work without jBoss here // jBoss LoginModule org.jboss.security.ClientLoginModule required; // Put your login modules that need jBoss here }; 1.1 admin/etc/roles.properties Index: roles.properties === jboss=temp 1.1 admin/etc/users.properties Index: users.properties === jboss=jboss ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Wed 2.2.1 bug fix release
I moved the Rel_2_2_1 tag on src/lib/ext/idb.jar from 1.2 to 1.3. Version 3.26 of InstantDB has a deadlock fix. ++Jeff Scott M Stark wrote: > I'm planning on a 2.2.1 bug fix release for APR 18 now. It seems like > only Dan and myself have fixes to incorporate. If you have a fix you > want in this release let me know. > > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-development > > > ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Patches-416523 ] JDBCDataSourceLoader fix
Patches item #416523, was updated on 2001-04-16 14:00 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=416523&group_id=22866 Category: JBossServer Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: JDBCDataSourceLoader fix Initial Comment: Here are two responses to a problem that I posted to JBoss-user regarding a NullPointerException when trying to create a JDBCDataSource. >From Toby Allsopp [[EMAIL PROTECTED]] It seems that JDBCDataSourceLoader is borked. Can you please try adding the initialisation of source to the no args constructor and see if that works? If that fixes it, please post a patch in the SourceForge patch tracker and I'll commit it. Thanks for the report, Toby. >From Tim Taylor [[EMAIL PROTECTED]] I just tried initializing the source variable in the no-args constructor. It works, but you also have to add a setPoolName/getPoolName pair to JDBCDataSourceLoader and JDBCDataSourceLoaderMBean. After that, JDBCDataSourceLoader works just like XADataSourceLoader from jboss.jcml. One minor difference is that there is no DataSourceClass attribute to set... Tim I made the above suggested changes along with a change to getProperties() and I was able to define a JDBCDataSource without errors. It was created and bound to JNDI but I couldn't test it with my application because I am having trouble getting the latest jboss build to work with the latest tomcat 4.0 build. See attached file for the patch of JDBCDataSourceLoader.java and JDBCDataSourceLoaderMBean.java See "need JDBCDataSourceLoader example" thread in JBoss-User. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=416523&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Wed 2.2.1 bug fix release
I'm planning on a 2.2.1 bug fix release for APR 18 now. It seems like only Dan and myself have fixes to incorporate. If you have a fix you want in this release let me know. ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jboss/src/build build.xml
> > What does "marked for edit" mean? > If you have CVSREAD=1 in your environment, then all files are checked out as read-only. To change a file you need to say `cvs edit someFile`, which will change the permissions of the file, and create a state file in 'CVS/Base/someFile'. I like this more as it makes it more explicit which files I have modified and such. There are some other notify options that can be useful too, but I don't care for that much. > > I can not seem to reproduce this behavior with the current build system/ant > > version, so I am going to change packages to "org.jboss.*". > > Does that wildcard pick up all of org.jboss, org.jboss.foo and > org.jboss.foo.bar? If so, cool. Sure does. This will catch all packages under 'org.jboss'. The above problem can be caused by a poor file scanner, which is what is used to find all of the *.java files under a given path (and extract a list of package names from them). If the scanner does not ignore everything under CVS/* then javadoc will get confused about a class being defined in more than one file. --jason ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jboss/src/build build.xml
On Mon, Apr 16, 2001 at 12:39:52PM -0700, Jason Dillon wrote: > That would be my preference as well, though I have run into some problems > with ANT and CVS, where file that were marked for edit would cause the > building of javadocs to fail. What does "marked for edit" mean? > I can not seem to reproduce this behavior with the current build system/ant > version, so I am going to change packages to "org.jboss.*". Does that wildcard pick up all of org.jboss, org.jboss.foo and org.jboss.foo.bar? If so, cool. Toby. ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/build build.xml
User: user57 Date: 01/04/16 12:31:11 Modified:src/build build.xml Log: o Changed the value of "packages" to "org.jboss.*" so that the build system is more maintainable with respect to building javadocs. Revision ChangesPath 1.62 +1 -1 jboss/src/build/build.xml Index: build.xml === RCS file: /cvsroot/jboss/jboss/src/build/build.xml,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- build.xml 2001/04/15 05:41:20 1.61 +++ build.xml 2001/04/16 19:31:11 1.62 @@ -43,7 +43,7 @@ - + ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jboss/src/build build.xml
That would be my preference as well, though I have run into some problems with ANT and CVS, where file that were marked for edit would cause the building of javadocs to fail. I can not seem to reproduce this behavior with the current build system/ant version, so I am going to change packages to "org.jboss.*". --jason On Mon, 16 Apr 2001, Toby Allsopp wrote: > Jason Dillon wrote: > > > Is there any reason why we aren't specifying "org.jboss.*", for the > > packagenames attribute value? > > Well, my excuse is that I didn't read the docs for the Ant javadoc task. > Using wildcards seems like a maintainability win to me. I say go right > ahead. > > Toby. > > > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-development > ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] src/build
Just curious, why the build scripts and control files are listed under src/build? And not at a higher level (outside of src)? --jason ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] ANN: first release of HA for Stateless Session Beans
>> Here is the first release of HA for SLSB. Excellent! Jay ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] ANN: first release of HA for Stateless Session Beans
Hello, Here is the first release of HA for SLSB. Before commiting anything, I would prefer some of you test it so we can correct/modify/improve/... it first. Instructions, download, ... are located here : http://194.38.95.241/jboss/ (or here for direct download : http://194.38.95.241/jboss/JBossHA.zip) I will take time to write more detailed documentation (about the implementation itself for example) when this code is accepted in the JBoss core (do not want to write dead doco! ;) ) In short, this "patch" provide HA and load balancing features for SLSB (remote and home proxies) thanks to dynamic proxies and the JavaGroups framework. HA Proxies load-balance calls sequentially to any known target and when a target fails, silentely attempt to bind another target. Furthermore, proxies will attempt to asynchronously refresh their knowledge of available targets from a JBoss server (to take in account newly started nodes for example). A test bean and GUI is provided (GUI must be started from a computer running a node). The output may be too verbose as the code may have some System.out.println remaining ;) Feedback welcome. Cheers, Sacha P.S.: "easy" improvments include: - nodes settings replicated (instead of manually setting them on each node) - more independant from the JNDI location/properties Other improvment could be: - HA descriptors in the beans read at runtime - dynamically created sub-MBEAN for each HA-Bean (so we can modify it personnaly through JMX) - ... - - - - - - - - - - - - - - - - - - - - - - Sacha Labourey Cogito Informatique Ing. Inf. Dipl. EPF4, Verger l'Ecuyer Tél +41 32 754 36 41 CH - 2068 Hauterive http://cogito-info.ch/ Fax +41 32 754 36 42 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Change Notes-416438 ] Threading in HelloEJB (bug 416376)
Change Notes item #416438, was updated on 2001-04-16 07:13 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416438&group_id=22866 Category: None Group: v2.2.1 Status: Open Priority: 5 Submitted By: Dan Christopherson (danch) Assigned to: Nobody/Anonymous (nobody) Summary: Threading in HelloEJB (bug 416376) Initial Comment: The HelloEJB servlet (for tomcat integration test) was not threadsafe. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=381174&aid=416438&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] fix in contrib/tomcat for release 2.2.1?
I've made a small fix in the contrib module that should go in release 2.2.1, if possible. I've tagged the modified file with the Rel_2_2_1 tag, although the rest of the contrib module is untagged. For what it's worth, I'll also have changes to the main jboss module this evening. Can we hold off on a release until tommorrow? thanks, danch ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/tomcat/src/main/org/jboss/test/tomcat/servlet HelloEJB.java
User: danch Date: 01/04/16 06:52:39 Modified:tomcat/src/main/org/jboss/test/tomcat/servlet HelloEJB.java Log: make servlet threadsafe (bug 416376) Revision ChangesPath 1.3 +4 -5 contrib/tomcat/src/main/org/jboss/test/tomcat/servlet/HelloEJB.java Index: HelloEJB.java === RCS file: /cvsroot/jboss/contrib/tomcat/src/main/org/jboss/test/tomcat/servlet/HelloEJB.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- HelloEJB.java 2001/02/20 15:27:54 1.2 +++ HelloEJB.java 2001/04/16 13:52:39 1.3 @@ -13,14 +13,13 @@ public class HelloEJB extends HttpServlet { Context ctx; - PrintWriter out; public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); - out = response.getWriter(); + PrintWriter out = response.getWriter(); out.println(""); out.println(""); @@ -36,8 +35,8 @@ ctx = new InitialContext(); boolean speedTest = "speed".equals(request.getQueryString()); - testBean("NonOptimized", speedTest); - testBean("Optimized", speedTest); + testBean("NonOptimized", speedTest, out); + testBean("Optimized", speedTest, out); } catch (Exception e) { @@ -52,7 +51,7 @@ } - private void testBean(String jndiName, boolean speedTest) { + private void testBean(String jndiName, boolean speedTest, PrintWriter out) { try { StatelessSessionHome home = (StatelessSessionHome)ctx.lookup(jndiName); ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Successfully tested the sample ejb (Classpath problem solved)
Hi all , Thanks for the sincere help provided. I am able to successfully test the sample InterestBean on jBoss2.2 (Windows 2000). I ran the following bat script to run the client. java -classpath .;C:\jBoss\jboss-tomcat-2.2\jboss-2.2\client\jboss-client.jar;C:\jBoss\jboss -tomcat-2.2\jboss-2.2\client\jbosssx-client.jar;C:\jBoss\jboss-tomcat-2.2\jb oss-2.2\client\jnp-client.jar;C:\jBoss\jbossinterestEjb\interest\interest.ja r;C:\jdk1.3\lib\tools.jar;C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\jre\lib\i18n.ja r;C:\jBoss\jbossinterestEjb\interest\interest.jar InterestClient rem .;C:\jBoss\jboss-tomcat-2.2\jboss-2.2\client\jboss-client.jar;C:\jBoss\jboss -tomcat-2.2\jboss-2.2\client\jbosssx-client.jar;C:\jBoss\jboss-tomcat-2.2\jb oss-2.2\client\jnp-client.jar;C:\jBoss\jbossinterestEjb\interest\interest.ja r;C:\jdk1.3\lib\tools.jar;C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\jre\lib\i18n.ja r; rem .;C:\jBoss\jboss-tomcat-2.2\jboss-2.2\client\jboss-client.jar;C:\jBoss\jboss -tomcat-2.2\jboss-2.2\client\jbosssx-client.jar;C:\jBoss\jboss-tomcat-2.2\jb oss-2.2\client\jnp-client.jar;C:\jdk1.3\lib\tools.jar;C:\jdk1.3\jre\lib\rt.j ar C:\jBoss\jbossinterestEjb\interest\InterestClient Regards Harish ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: manual/src/docs howtojca.xml
User: tobyallsopp Date: 01/04/16 01:59:48 Modified:src/docs howtojca.xml Log: Updated JBossCX docs. Revision ChangesPath 1.5 +130 -135 manual/src/docs/howtojca.xml Index: howtojca.xml === RCS file: /cvsroot/jboss/manual/src/docs/howtojca.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- howtojca.xml 2001/04/08 03:32:58 1.4 +++ howtojca.xml 2001/04/16 08:59:48 1.5 @@ -1,5 +1,5 @@ - + @@ -37,38 +37,35 @@ components through JNDI. + Contents - Terminology + - - JBoss Configuration + - - Example - Black Box Example Adapter -from Sun + - - Implementation Status + - - -Terminology + + +Terminology Terminology @@ -124,8 +121,8 @@ - -JBoss Configuration + +JBoss Configuration There are two steps that must be performed to provide access to a connection factory in JBoss: @@ -133,7 +130,8 @@ -Configure a connection factory in jboss.jcml +Configure a connection factory in + jboss.jcml Deploy the resource adapter @@ -145,9 +143,10 @@ Connection factories are created by the -ConnectionFactoryLoader MBean, so an +ConnectionFactoryLoader MBean, so an + section must be added +to jboss.jcml for each connection factory +that is required. The format for this entry is as follows. deployment descriptor element +the name given in the resource adapter's + +deployment descriptor element @@ -200,8 +200,9 @@ The properties to set on the resource adapter to configure it to connect to a particular resource -instance. This is in java.util.Properties.load format -(essentially one property per line, name=value) +instance. This is in +java.util.Properties.load +format (essentially one property per line, name=value) @@ -209,138 +210,131 @@ The name of the connection manager factory to use. This is the name given in a previously defined -ConnectionManagerFactoryLoader MBean. Currently there -are two choices: MinervaSharedLocalCMFactory and -MinervaXACMFactory. The former should be used for -resource adapters that support local transactions and -the latter for those that support XA transactions. +ConnectionManagerFactoryLoader +MBean. Currently there are two choices: +MinervaSharedLocalCMFactory and +MinervaXACMFactory. The former +should be used for resource adapters that support +local transactions and the latter for those that +support XA transactions. ConnectionManagerProperties -The properties (in java.util.Properties.load format) -to set on the connection manager for this connection -factory. These properties control things such as -connection pooling parameters. The example connection -factory in jboss.jcml shows the possible properties -for the Minerva connection managers +The properties (in +java.util.Properties.load +format) to set on the connection manager for this +connection factory. These properties control things +such as connection pooling parameters. The example +connection factory in jboss.jcml +shows the possible properties for the Minerva +connection managers - - - Security Attributes - TBD - no interesting options yet + +Security Attributes + + + + Name + Description + + + + +
[JBoss-dev] [ jboss-Bugs-416402 ] CFLoader should trim attribute values
Bugs item #416402, was updated on 2001-04-16 01:51 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=416402&group_id=22866 Category: JBossCX Group: v2.2 (stable) Status: Open Priority: 5 Submitted By: Toby Allsopp (tobyallsopp) Assigned to: Toby Allsopp (tobyallsopp) Summary: CFLoader should trim attribute values Initial Comment: Some attributes, such as class names, should be trimmed by ConnectionFactoryLoader so that they can be arranged more nicely in jboss.jcml. E.g. this should work: org.jboss.resource.foo.Bar -- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=416402&group_id=22866 ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development