[JBoss-user] [Management, JMX/JBoss] - Re: How to push data to JMX components?
this is the solution i've found: my stateless session bean: | public class CounterBean implements SessionBean { | |public static MovementsMgr myMBean=null; | |public void ejbCreate() throws CreateException { | if (myMBean == null){ | myMBean= new com.alblab.management.MovementsMgr(); | MBeanServerLocator.locateJBoss().registerMBean(myMBean,new bjectName(xxx:name=movements)); | System.out.println(MovementsMgrMBean registered); | } |} | |. |. |. |// my Ejb remote business method |public String putMoney(int amount) { | myMBean.setInbound(amount); //my method on MovementsMgr not exposed in the MBean Interface | . | . |} | } MBean interface: | public interface MovementsMgrMBean extends ServiceMBean{ | public int getInbound(); | . | . | . | } MBean Implementation: public class MovementsMgr extends ServiceMBeanSupport implements MovementsMgrMBean { | | private int inbound; | public MovementsMgr(){ | inbound=0; | } | | . | . | . | | public int getInbound() { | return inbound; | } | | //not exposed in the MBean interface | public void setInbound(int amount){ | inbound=inbound+amount; | } | } Is this a right way to do it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938125#3938125 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938125 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to push data to JMX components?
There is an issue with the lifecycle with the mbean, i.e. how it gets destroyed/deregistered? My initial idea would be to have an mbean service deployed together with the ejb as an embedded .sar The mean would be a frond-end to a data object (pojo) holding the actual metrics. The mbean would register this pojo to the internal jndi, so the ejb can look it up and update it. You need to synchronize access to that pojo, as it will be accessed by many threads (there maybe a performance issue there). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938134#3938134 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938134 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Class not found on
Who can help me? I have checked ejb-jar.xml, jboss.xml the clases are in the jar file. The other beans are working fine. anonymous wrote : | Bean : ShoppingCartEJB | Section: 22.2 | Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element. | Info : Class not found on 'com.sun.j2ee.blueprints.cart.ejb.ShoppingCartLocalEJB': No ClassLoaders found for: com.sun.j2ee.blueprints.cart.ejb.ShoppingCartLocalEJB | | | 2006-04-19 14:50:53,207 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/C:/Programme/JBoss/server/default/tmp/deploy/tmp7568petstore.ear-contents/petstore.jar | org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy36.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy6.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:504) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:218) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:197) | 2006-04-19 14:50:53,207 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: [EMAIL PROTECTED] url=file:/C:/Programme/JBoss/server/default/deploy/petstore.ear, deployedLastModified=1145450794441 } | org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at
[JBoss-user] [Management, JMX/JBoss] - Re: How to push data to JMX components?
I like the idea but I've a question about. Does it work in a clustered evironment? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938146#3938146 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938146 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to push data to JMX components?
Clustering has nothing to do with this, or I don't get you? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938173#3938173 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938173 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - A bug in logging
Servus all, I have found a bug in jboss logging, but I didn't find the appropriate forum, so I post it here. The class org.jboss.logging.filter.TCLFilter is implemented returning either Filter.ACCEPT xor Filter.DENY. Well, in case the filter matches, AcceptOnMatch shall decide whether ACCEPT or DENY is returned. In every other case that the filter doesn't match, it should return Filter.NEUTRAL ! Somebody can fix that for upcoming releases? Greetz, Manuel PS: I'd love to contribute code. It would not be much ... but just in cases like this one, I think that I could easily fix the problem. How to get a CVS write access? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938198#3938198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938198 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Class not found on
Well, I guess your com.sun.j2ee.blueprints.cart.ejb.ShoppingCartLocalEJB is missing :) it needs to be in the petstore.jar file you can open .jar files with a zip program (e.g. W*nZ*p) make sure that you have a path _in_ the jar file that goes 'com/sun/j2ee/blueprints/cart/ejb/' holding the 'ShoppingCartLocalEJB.class' if it is already there, then I guess the class loader has serious problems finding it ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938200#3938200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938200 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Class not found on
Thanks for Your answer It was a misstyping, I was so hyper active, it did not recognize it. It has to be com.sun.j2ee.blueprints.cart.ejb.ShoppingCartEJB View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938208#3938208 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938208 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: A bug in logging
If you are very sure about the bug, open a JIRA case with a detailed explanation, and preferrably a test case that replicates the problem, along with your patch, and someone will review it. http://jira.jboss.com/jira/browse/JBAS View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938228#3938228 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938228 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Extending JSR77 stats
I am trying to find the cleanest way to extend the JSR77 stats provided by JBoss to include the timestamp the stat was collected and possibly dump/persist these stats out at some interval so I can later report on the stats. Ultimately I would like to graph the elapsed time for an ejb method over time and view this graph at the end of the day. I am currently running JBoss3.2.3 / JDK1.4.2 Is extending JSR77 stats the way to go or should I write a custom interceptor to do this for me (seems like this has to have already been done). Thanks, Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938244#3938244 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938244 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Extending JSR77 stats
Also, where are the status currently being set in the server? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938245#3938245 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938245 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - EAR Deployment Notification
Hello, please excuse my English ... i'm french ! Fisrt of all, i'm using JBoss 4.02 ! I'm having trouble in catching EarDeployer Notifications. Here is my developpemen status : I have an MBean which is notified when a .ear archive is deployed in the start state of notification. This work properly. Then i try to instantiate the ObjectName that represent then MBean created during the .ear deployment. This MBean is named this way : J2EEServer=Local,j2eeType=J2EEApplication,name=MyAppli.ear. This also work properly. To finish, I get, through an MBeanServer instance, the attribute deploymentDescriptor on the new MBean, like this : server.invoke(mbean, deploymentDescriptor) (or something like this !!!). The deploymentDescriptor should contain the content of the application.xml file of the new deployed .ear archive ! This is where things turn bad ... 50% of the time the deploymentDescriptor is empty, 50% of the time it is OK ... anyway when i look this attribute through the JMX Console it is always OK ... Is this the good way for getting the application deployment descriptor when it is deployed ? is there a bug in JBoss 4.02 ? Thanks for your help ... Thibault. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938267#3938267 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938267 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Securing Twiddle
I am trying to secure the twiddle command line tool. I was able to successfully secure the j-console using the follwing parameters: -Dcom.sun.management.jmxremote.port=9002 \ -Dcom.sun.management.jmxremote.authenticate=true \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.password.file=XXX \ -Dcom.sun.management.jmxremote.access.file=XXX \ What am I missing to get twiddle to use a username and password. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937957#3937957 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937957 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Server Info listThreadCpuUtilization();
I'm using ServerInfo listThreadCpuUtilization() (the Total value) to calculate the %CPU utilization of the Jboss server. I'm also taking in to account the no of CPUs while calculating this value. The problem is, I'm getting absurd values for CPU usage like 170% etc. The formula I'm using is: (Total CPU usage of all threads in millisecs in elapsed time interval / (elapsed time interval in milliseconds * no of cpus)) * 100 Is the Total thread cpu utilization value from SeverInfo accurate enough to calculate %CPU utilization of the Jboss process? Environment: --- OS verison: fedora core (2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux) Jboss Version: 4.0.3SP1 I also read some Jira comment that -- I don't think this (ServerInfo) MBean is working correctly on Linux 2.6 kernels with the NPTL. . Could the inaccuracy be because of the 2.6 kernel that i'm using? I'm trying to get this tested out on Solaris. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937743#3937743 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937743 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Deployment Error
Hi, a strange error is happening to me, if I deploy a Jmx Service when I have the AS running, an exception is thrown and the deployment fails. It throws the typical: | Class does not expose a management interface: java.lang.Object) | If I re-start the server, then the service is recognized and it works. Does anyone knows what the problem is? Best Regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937744#3937744 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937744 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Server Info listThreadCpuUtilization();
The total is just the sum of what gets reported by http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/ThreadMXBean.html#getThreadCpuTime(long) for each running thread, so the accuracy depends on the jdk implementation. Do you count the elapsed time interval between 2 calls? I don't know also if xCPU is a correct assumption. My take is the value of this information is to help you see how jboss spends internally its time, i.e. which threads are doing most of the work. If you want information on jboss as a process, you better take this from the operating system. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937753#3937753 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937753 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Server Info listThreadCpuUtilization();
Thanks for the reply. Yeah, I count the elapsed time interval between the 2 calls and the total cpu usage in this time interval. The no of CPUs is as reported by the jboss web-console, home page (Hardware section) The JVM i'm using is java version 1.5.0_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing) For example for a particular 2 minute interval the values I get are as follows total thread cpu usage in 2 mins --298760 ms, elapsed cpu time--120,000 * 2 (no of cpus) = 24 ms that results in (298760 / 24 ) * 100 = 124% I thought of making this monitoring OS independent, and so looked for a method to get the cpu usage from the JVM. I guess there's no other way to acquire the cpu usage from the JVM directly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937768#3937768 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937768 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Reggie as an mbean
Is there a way to run the reggie lookup service as a JBoss MBean service? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937778#3937778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937778 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Mbean Attribute decription
Is there any documentation available for Attributes, Mbeans expsoed by JBoss?. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937363#3937363 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937363 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Mbean Attribute decription
There is no Users Guide for that, however you may find documentation for individual subsystems if you look in the related sections in the admin-development guide http://docs.jboss.org/admin-devel/AdminDevelTOC.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937365#3937365 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937365 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - how to dynamical tune parameters through jmx-console
In JBoss ,there are many parameters about performance.In order to improve performance of jboss application server.,some parameters could be dynamically tuned without shutting down JBoss Application Server .who could tell me a list of detailed parameters for on-line performance tuning ? whether could these parameters be on-line tuned through jmx-console. thank in advance ! wang View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937486#3937486 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937486 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How to push data to JMX components?
There is a way to use a method of a class that implements an MBean interface but not for that particular method? This is the case: I want to push data from a stateless session bean into a management component I've developed, so that I can see the total amount of a parameter passed to the slsb at the end of the day. The problem is that the management component should expose only readonly properties and no methods through the MBean interface, so I cannot use the usual invoke any idea? bye View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937128#3937128 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937128 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - LoggingMonitor mbean dependencies
I'm running JBOSS 3.2.7 and I've added the LoggingMonitor jar. I'm currently getting this error message during bootup: 2006-04-13 20:27:28,275 WARN [org.jboss.services.loggingmonitor.LoggingMonitor] Unable to log attributes for mbean: jboss.web:type=ThreadPool,name=jk-8009 javax.management.InstanceNotFoundException: jboss.web:type=ThreadPool,name=jk-8009 is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:454) at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:433) at org.jboss.services.loggingmonitor.MonitoredMBean.logAttributes(MonitoredMBean.java:101) at org.jboss.services.loggingmonitor.LoggingMonitorTimerTask.run(LoggingMonitorTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) I realize this is because the LoggingMonitor mbean starts before the mbean that I'm trying to monitor. I think need to setup a dependency in the LoggingMonitor mbean but this doesn't work for jboss.web:type=ThreadPool,name=jk-8009 because it is not a service mbean. So... Is there a way I can set the LoggingMonitor to load last? Is there something that loads at the end of the boot process that I can make it depend on? Any help would be appreciated. thanks, Tim View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937275#3937275 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937275 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: LoggingMonitor mbean dependencies
mtihepner wrote : Is there a way I can set the LoggingMonitor to load last? In your server configuration's deploy directory, add a deploy.last directory and place your LoggingMonitor MBean descriptor in that directory. Then, it will get deployed last, but since the MBean you are monitoring deals with Tomcat's connectors (which get loaded after JBoss starts), I am not sure this will work. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937277#3937277 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937277 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: LoggingMonitor mbean dependencies
I should have added that this issue is solved by the JBoss Barrier Controller service in JBoss 3.2.8+/4.0.2+, which was written to solve problems just like this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937280#3937280 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937280 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: LoggingMonitor mbean dependencies
Adding my LoggingMonitor MBean descriptor into a deploy.last directory delayed the warning on jboss.web:type=ThreadPool,name=jk-8009 but it didn't prevent them. I was having the same issue other mbeans and this did resolve those problems. If this is problem resolved in later version of jboss I can control the warnings with log4j and wait until we can upgrade. thanks for your fast response. -tim View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937283#3937283 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937283 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - managing remote resources
What is the standard proceedure for managing remote resources (Using JMX) that are part of your system? Say you have a web server on one machine, an application server (JBoss AS) on another, and a database server on a third. Would you have each service have their own jmx server, or would you create remote MBeans that register themselves on the JBoss JMX server on the application server for centralized management? Will View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936378#3936378 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936378 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Accessing JBoss MBeans from jdk1.5
Can we access jboss mbeans directly from our code running under jdk1.5? I am not planning to put any jboss specific jar files (e.g jbossall-client.jar) in the classpath.Since jboss is jmx compliant so i guess all the standard jmx jars present in the jdk1.5 would be sufficient to access the standard mbeans of jboss 4.0.2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935775#3935775 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935775 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Accessing JBoss MBeans from jdk1.5
Not so if you are accessing the server remotely. You'll need a connector and also classes for this like attribute values. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935794#3935794 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935794 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - SAR creation
Hi I'm new to JBoss and I'm trying to make a JMX service that will run in JBoss. I've read in docs that my app should be delivered as a sar file and I wonder if exists an ant task to do this or how could I do it ? Also, my service should read a file with settings (will start an ActiveMQ broker) and I wonder how could I set a relative path to Jboss to read activemq config file (i suppose should exist a JBoss context or something in that way). Thanks in advance J View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935029#3935029 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935029 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: SAR creation
sar = jar + META-INF/jboss-sevice.xml with .sar extension. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935202#3935202 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935202 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How do we monitor the number of hits for an appliaction?
Put all the statistics work to servlet-filter that is invoked on /* . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934626#3934626 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934626 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How to add a MBean method description and Param description
Hi, How do we add a description of a method for an MBean in Jboss 4.0.2. Also how to add the param description. I want to achieve this without making the MBean an XmBean. Thanks in advance. Himadri View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934723#3934723 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934723 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to add a MBean method description and Param descript
You must either implement a Dynamic MBean or a Model MBean and provide the description metadata programmatically. Read the JMX spec. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934775#3934775 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934775 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problems with MBeanServerConnection in Context
Hi, im just write about a possible error getting connections using Context.lookup. Right now i have 2 environments, both configured with jboss-3.2.5 one over a windows 2000 and the other one over debian. Well, here is the code with strange behavior.. Hashtable props = new Hashtable(); props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); props.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); props.put(Context.PROVIDER_URL, jnp:// +server+ 1099); Context ctx = new InitialContext(props); MBeanServerConnection server = (MBeanServerConnection) ctx.lookup(jmx/invoker/RMIAdaptor); When server match the following servername. (. at the end)... whell over windows the connection and context work fine, but over linux an exception is thrown. Anyone can tell me why the context and connection works over linux but not over windows systems? Thanks . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934845#3934845 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934845 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Create method is not called on Service bean
I have a service bean Special that depends on service bean Core. The special bean loads and the core bean is injected without a hiccup. I have print statements that show the create and start methods of Special are called. Core create and start methods are not called. Special is definitely there. Works just fine. It's just that its life-cycle methods are not called. Is that the way dependent beans are supposed to work? TIA | | Independent service: | | @Service(objectName=acme:service=core) @Management(CoreService.class) public class CoreServiceBean implements CoreService | | ... | | Special service depends on core service | @Service(objectName=acme:service=special) @Management(SpecialService.class) public class SpecialServiceBean implements SpecialService | @Depends(acme:service=core) public void setCoreService(CoreService coreService) | | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934913#3934913 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934913 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How do we monitor the number of hits for an appliaction?
Thanks Peter. But I'm not using a EJB application. Mine is a plain struts application with pojos. I was able to see an option at jms console which shows only count for jsp, servlets as a whole. My requirement is i need to count for each click on any link on the home page to track which link os most used. Is there option with jboss portal ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934256#3934256 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934256 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How can i get Servlet Detail for web-console.war in JBoss4.0
hi, how can i get web-console.war's Servlets detail in Jboss4.0.2 . i can get this detail in Jboss4.0.0 but in Jboss4.0.2 it won't allow on Jmx-console also. Another thing is in Jboss4.0.2 it deployed as 'console-mgr.sar' and not as 'web-console.war'. how can i get the list of Servlet attribute of console-mgr.sar. lbrd. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3934366#3934366 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934366 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Schedule Problems
Hi everybody, I'm writing this message to know if has anyone had this same kind of problem of mine... I have 11 classes that implements Schedule and run under jboss-3.2.6. They work fine on developer environment, but not on client environment. These services has a regularity time to execute, defined on jboss-service.xml file. The problem is that some services are being stopped by something, on different times. I can verify this through the log. I log all actions since perform method is called, but at some times, log simply doens't show any log message, and the services stops. Have anyone ever had this same problema? Or, does anyone know what can be happining??? Thank you LISS View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933674#3933674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933674 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How can i configure JBoss 4.0.2 in order to work with MBeans
Hi, Could somebody help me with this: I was working with my mbeans in JBoss3.2.3 perfectly, but i need to migrate to JBoss4.0.2. I am trying but in the deployment of de service.xml, it doesn´t bound a class, but the point is that 10 lines above it has the deployment of the same class. i have heard that is really difficult to do this migration. Thanks a lot. Nicolas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933433#3933433 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933433 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How can i configure JBoss 4.0.2 in order to work with MB
The migration is as easy as falling off a log. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933495#3933495 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933495 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
I mean +-- META-INF | +--- jboss.service.xml (similar to the one you provided) | +--- MANIFEST.MF +-- test | +-- MyTestMbean.class | +-- MyTest.class View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933035#3933035 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933035 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
I'm so fed up with this thread that I just extended the example with a hellombean2.zip that contains a standard mbean with no JBoss class/interface dependencies. http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933054#3933054 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933054 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
Thanks for your answer, but I do confirm that the file name is well jboss-service.xml and that classes are in the test directory. I tried to deploy it in several servers but the problem persists. I put my SAR in this address in order to allow you to test it: http://s58.yousendit.com/d.aspx?id=1B7H7D685VG381DMHJ4O90PCF2 Thanks for your feed-back. Can somebody send me a working example ? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933109#3933109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933109 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
Thank you, Dimitris, I found the problem in my SAR. It was my fault. I wrote Mytest as class name instead MyTest like a newbee. I read the jboss-service.xml file a hundred times and I never realized my big mistake. Thanks for your patience to all you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933119#3933119 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933119 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to stop an MBean properly
bump. I would have thought this would be an easy question to answer for anyone with any experience with using the MBeanServer... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932778#3932778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932778 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - how do i check if JBoss is started?
i mean completely started... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932898#3932898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932898 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: how do i check if JBoss is started?
See http://wiki.jboss.org/wiki/Wiki.jsp?page=StartupAndDeploymentCheck for more information. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932901#3932901 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932901 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How do we monitor the number of hits for an appliaction?
For any given EJB, there will be a corresponding mbean with the name (all one big string without spaces, I reformatted it to make it easier to read): jboss.management.local: EJBModule=.jar, J2EEApplication=Y.ear, J2EEServer=Local, j2eeType=StatelessSessionBean, name=Z where the X is the name of the jar file that contains the EJBs, Y is the name of the ear file that contains the EJB jar file, and Z is the name of the remote interface. (At least, this is what the mbean looks like for one of my EJBs, there could be other variations.) The above mbean contains a 'stats' property that contains such things as the number of times each method in the ejb was called, and the min and max response times. You can check this data out via the jmx-console. You can also get the stats property value via twiddle, but you first have to change the classpath to include the jboss-management.jar file (not sure how kosher that is, but it works). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932988#3932988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932988 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problem with @management in Ejb3 jboss 4.0.3
While using @Management annotation in the MBean class an error called Cannot find value method is fired. my code is given below. the error is fired at place mentioned in BOLD. package trail.jmx; import org.jboss.annotation.ejb.Service; import org.jboss.annotation.ejb.Management; import javax.ejb.Stateful; @Service (objectName=trail:service=calculator) @Management(Calculator.class) public class CalculatorMBean implements Calculator { double growthrate; public void setGrowthrate (double growthrate) { this.growthrate = growthrate; } public double getGrowthrate () { return growthrate; } public double calculate (int start, int end, double saving) { double tmp = Math.pow(1. + growthrate / 12., 12. * (end - start) + 1); return saving * 12. * (tmp - 1) / growthrate; } // Lifecycle methods public void create() throws Exception { growthrate = 0.08; System.out.println(Calculator - Creating); } public void destroy() { System.out.println(Calculator - Destroying); } } package trail.jmx; import org.jboss.annotation.ejb.Management; @Management public interface Calculator { public void setGrowthrate (double g); public double getGrowthrate (); // The management method public double calculate (int start, int end, double saving); // Life cycle method public void create () throws Exception; public void destroy () throws Exception; } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933010#3933010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933010 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
The jboss testsuite if full of standard mbean examples not extending jboss classes. And it's a piece of cake to make the http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService example, not using jboss classes, i.e.: a) HelloWorldServiceMBean should not extend ServiceMBean b) HelloWorldService should not extend ServiceMBeanSupport Optional c) If you want to receive lifecycle callbacks you should add to HelloWorldServiceMBean interface: void start() throws Exception; void stop(); and on HelloWorldService rename startService to start() and stopService() to stop (and make them public). The classloading errors you get are due to bad packaging, so what's in MyTest.jar and what's in you jboss-service.xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932343#3932343 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932343 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How to stop an MBean properly
Hi, I have a MDB called FileMessage. I have to make a simple servlet for the admins to be able to start and stop the MDB easily (i.e. not having to learn to use the JMX console). To do this I've made the code below. I feel there must be a better way to start and stop MBeans at random. For instance, I have to use queryNames() to get the uniqueIdentifier for the MDB as it has a hashcode appended to it to make it impossible to hardcode. This also returns 3 ObjectNames as well: jboss.j2ee:jndiName=local/[EMAIL PROTECTED],plugin=pool,service=EJB jboss.j2ee:binding=message-driven-bean,jndiName=local/[EMAIL PROTECTED],plugin=invoker,service=EJB jboss.j2ee:jndiName=local/[EMAIL PROTECTED],service=EJB The last one seems to be the one I need to invoke the stop(). Ideally I want to be able to specify the ObjectName by hand. If anyone can see a way to improve the code below could you let me know please. Cheers, Joe. | MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); | java.util.Set s = | mbeanServer.queryNames(new ObjectName(), new ObjectName()); | java.util.Iterator iter = s.iterator(); | ObjectName ejbToStop = null; | while(iter.hasNext()) { | Object obj = iter.next(); | if( | (obj.toString().indexOf(FileMessage) -1) | obj.toString().endsWith(service=EJB)) { | ejbToStop = (ObjectName) obj; | } | } | | mbeanServer.invoke(ejbToStop, stop, new Object[0], new String[0]); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932398#3932398 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932398 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - web-console Invocation Statistics
Hi, with the web-console you can view all Invocation Statistics+Bean Statistics of all deployed ejb's. Is there a way to store this statistics to a log file at servershutdown? thanx florian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932409#3932409 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932409 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: web-console Invocation Statistics
No, the stats are not persisted. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932415#3932415 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932415 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problem with monitoring and notifications
Hello, I'm trying trouble with monitoring and notifications. I followed instructions found on jboss wikis to put a FreeMemory. jboss-monitoring.xlm looks like this: server | | mbean code=org.jboss.monitor.alerts.ConsoleAlertListener | name=jboss.alerts:service=ConsoleAlertListener | attribute name=MessageTemplate![CDATA[%(MONITOR_NAME) was triggered for attribute %(ATTRIBUTE).]]/attribute | attribute name=AlertNameConsole Alert/attribute | /mbean | | mbean code=org.jboss.monitor.ThresholdMonitor |name=jboss.monitor:service=FreeMemory | attribute name=MonitorNameFreeMemory Monitor/attribute | attribute name=ObservedObjectjboss.system:type=ServerInfo/attribute | attribute name=ObservedAttributeFreeMemory/attribute | attribute name=Threshold15000/attribute | attribute name=CompareTo1/attribute | attribute name=Period1000/attribute | attribute name=Enabledtrue/attribute | depends-list optional-attribute-name=AlertListeners | | depends-list-elementjboss.alerts:service=ConsoleAlertListener/depends-list-element | /depends-list | /mbean | | /server | I intentionally put an high value for the threshold so i'm sure the free memory will be lower for each check. The problem i have is that i receive only 1 notification at the first check , then i no more get any notifictation (in the console). Can someone tell me whats wrong pls? Jean Yves View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932416#3932416 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932416 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
My Interface: package test; | | public interface MyTestMBean { | public void start() throws Exception; | public void stop() throws Exception; | public String getMessage(); | public void setMessage(String message); | } Its implementation: package test; | | public class MyTest implements MyTestMBean { | private String message=Not initialized; | | public void start() throws Exception { | System.out.println( STARTED ! - + this.getMessage() ); | } | public void stop() { | System.out.println( STOPPED !); | } | public String getMessage() { | return message; | } | public void setMessage(String message){ | this.message = message; | } | } The jboss-service.xml file ?xml version=1.0 encoding=UTF-8? | | server | mbean code=test.Mytest name=test:service=HelloWorld | attribute name=MessageHello World/attribute | /mbean | /server It can't be simpler. I tried: - to put classes tree directly inside the SAR file root dir +-- META-INF | +--- jboss.service.xml (similar to the one you provided) | +--- MANIFEST.MF +-- test +-- MyTestMbean.class +-- MyTest.class - to put classes tree inside a jar file in the SAR file root dir +-- META-INF | +--- jboss.service.xml (similar to the one you provided) | +--- MANIFEST.MF +-- MyTest.jar Always the same error. Notate that the error is not a NotClassFound exception, but No ClassLoader found. This is the reason why I think that JBoss is not able to deploy MBean whitout using JBoss specific classes or XMbean tags. And once again, it is really extrange to listen everybody saying it works, just try it, but nobody is able to give me a simple working example like the one I wrote. This is like the Loch Ness monster, everybody says that it exists but nobody has never saw it. Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932455#3932455 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932455 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
asoleto wrote : I tried: | - to put classes tree directly inside the SAR file root dir | | +-- META-INF | | +--- jboss.service.xml (similar to the one you provided) | | +--- MANIFEST.MF | +-- test | +-- MyTestMbean.class | +-- MyTest.class | | - to put classes tree inside a jar file in the SAR file root dir | | +-- META-INF | | +--- jboss.service.xml (similar to the one you provided) | | +--- MANIFEST.MF | +-- MyTest.jar | | Always the same error. Notate that the error is not a NotClassFound exception, but No ClassLoader found. This is the reason why I think that JBoss is not able to deploy MBean whitout using JBoss specific classes or XMbean tags. | | ...snip... | | This is like the Loch Ness monster, everybody says that it exists but nobody has never saw it. Whether there is a Loch Ness monster or not, I can say in this case that I have deployed many, many custom written, non-JBoss dependent MBeans in this manner both with JAR files inside the SAR and class files inside the SAR. I have never had any trouble. Two things look problematic to me in the quoted part of your post. They may / may not be typos, but if they are really what you have, they will cause you trouble. #1: You appear to have named your jboss-service.xml file jboss.service.xml which is not correct. Make sure you really name it correctly. In trying to replicate your problem by doing this, I got a jboss-service.xml not found message type of message so this does not appear to be your issue. I'll assume it is a typo. #2: Could it be that you are not packaging your Java classes correctly? It appears (based on your post) that your Java classes are not in the test subdirectory. That could definately lead to the error you are seeing. Furthermore, it may be that the same thing is happening with your JAR file. That would explain why you have trouble using either method of getting your *.class files inside the SAR. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932466#3932466 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932466 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
Thanks for your answer. The example in the Wiki uses JBoss specific API. Every time I try to deploy a simple Standard MBean, I get the same error: org.jboss.deployment.DeploymentException: create operation failed for package file:/D:/apps/appserver/jboss-3.2.5/server/default/deploy/MyTest.sar; - nested throwable: (org.jboss.deployment.DeploymentException: No ClassLoaders found for: test.Mytest; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: test.Mytest)) My SAR looks like that: +-- META-INF |+--- jboss.service.xml (similar to the one you provided) |+--- MANIFEST.MF +-- MyTest.jar I also tried to put the jar file inside the META-INF directory but the same exception is thrown all the time. Whatever I do, always the same error. I don't understand. I wonder, if it is so simple, why nobody is able to post a simple example of a Standard MBean deployed within a SAR without using xmbeans ou JBoss classes? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932183#3932183 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932183 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: StatisticsCollector
I seem to be having the same problem.. I configure the StatisticsCollector, but the reports all show no activity. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932216#3932216 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932216 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
It is more than evident in the error message the you are looking for class test.MyTest, but you have packaged Mytest.class Also where is your MyTestMBean class??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932258#3932258 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932258 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - with minimal configuration want to start some services throu
hi can any one tell me how can i get MBeanServer instance with jboss minimal configuration. see i want to connect with JBoss JMX agent from outside the Jboss. i can do this with jboss all and default option but for minimal option it throws NamingService Not available exception. as per my knowledge jboss with minimal configuration it starts JNDI,LOGGING AND JMXMbeanServer but how can i get this MBeanServer instance ??? if we get this then may be... anyhow if we can start Naming Service at runtime ... because, I need some jboss version info at runtime. can anybody help me? thanks lirin. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931918#3931918 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931918 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
Do you have any example ? I mean, - I know how to deploy a simple Standard MBean by using xmbeans (jboss-service.xml file with tag xmbeans-dd pointing to my xmbean file describing my MBean interface) from a SAR. - I know how to write specific code to deploy a Standard MBean by using JSR-3 calls and call it from a servlet or a servlet context in my SAR. - I now how to create jboss specific MBean by using jboss proprietary code and setting the code tag. BUT I don't know if there is a magic tag in the jboss-service.xml file that allows me to deploy a custom Standard MBean without using the xmbean-dd tag. By reading your answer, it seems that it is possible. My concern is to use SAR without using xmbean or JBoss specific classes. I want to use just JSR-3. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931526#3931526 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931526 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
asoleto wrote : Do you have any example? | | ...snip... | | BUT I don't know if there is a magic tag in the jboss-service.xml file that allows me to deploy a custom Standard MBean without using the xmbean-dd tag. By reading your answer, it seems that it is possible. | | My concern is to use SAR without using xmbean or JBoss specific classes. I want to use just JSR-3. Take the JBoss Wiki-provided Hello MBean example *-service.xml descriptor: ?xml version=1.0 encoding=UTF-8? | | server | mbean code=com.acme.HelloWorldService name=acme.com:service=HelloWorld | attribute name=MessageHello World/attribute | /mbean | /server The format of this file does not use the XMBean stuff, and whether or not the MBean is written by extending JBoss classes or not is irrelevant. So long as com.acme.HelloWorldService follows JMX standards, and has a corresponding *MBean interface, this will deploy just fine whether in a SAR or deployed via an XML file alone. Have you actually tried any of this? You questions indicate that you have not. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931657#3931657 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931657 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Adding description to a schedulable class
Hi I know how to add description to properties in mbeans (xmbeans) however when i'm using a schedulable class i do want to add description to all the properties however i dont know how to do this, i tried to add an xmbean however then i receive nullpointerexception I have the following mbean class anonymous wrote : | public class LicenseManager implements Schedulable... | With the following mbean code: anonymous wrote : | mbean code=org.jboss.varia.scheduler.Scheduler name=MessagingAS:service=LicenseCheckScheduler xmbean-dd= | true | messaging_as.util.license.LicenseManager | | | HH:mm | 01:30 | 8640 | -1 | | | jboss:service=Naming | | MAS path related properties | messaging_as.util.license.LicenseManager | | StartAtStartup | | java.lang.Boolean | | | SchedulableClass | | java.lang.String | | | SchedulableArguments | | java.lang.String | | | SchedulableArgumentTypes | | java.lang.String | | | DateFormat | | java.lang.String | | | InitialStartDate | | java.lang.String | | | SchedulePeriod | | java.lang.Long | | | InitialRepetitions | | java.lang.Integer | | | | and this is the exception i get when i add to it xmbean descriptions anonymous wrote : | 17:35:06,384 INFO [ServiceConfigurator] Problem configuring service MessagingA | S:service=LicenseCheckScheduler | org.jboss.deployment.DeploymentException: Exception setting attribute javax.mana | [EMAIL PROTECTED] on mbean MessagingAS:service=LicenseCheckScheduler; - ne | sted throwable: (java.lang.NullPointerException) | at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator | .java:490) | at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja | va:315) | at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura | tor.java:160) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java | :114) | at org.jboss.system.ServiceController.install(ServiceController.java:198 | ) | at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher. | java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy4.install(Unknown Source) | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:204) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) | at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher. | java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at
[JBoss-user] [Management, JMX/JBoss] - Re: deploy mbean from code on runtime?
i used the following code to do this: | MBeanServer mbeanServer = MBeanServerLocator.locateJBoss(); | mbeanServer.registerMBean(new MyMBeanImpl(), MyMBeanImpl.OBJECT_NAME); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931188#3931188 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931188 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How to access secured JMX connection in JBoss from client? H
Hi, I am using JBoss 3.2.5 and I secured JMX access (jmx-invoker-adaptor-server.jar/META-INF/jboss-service.xml): !-- Uncomment to require authenticated users -- Problem: Now I get no more access to JBoss JMX. I Use the follwing code to access JMX. Without security I had no problem! props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); props.put(Context.PROVIDER_URL, url); props.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); // BEGIN: I've ADDED THIS, BUT CODE DOES NOT WORK. user/pass is a valid combination (is ok for jmx-console login!) props.put(Context.SECURITY_PRINCIPAL, user); props.put(Context.SECURITY_CREDENTIALS, pass); // END Context ctx = new InitialContext(props); RMIAdaptor rmiAdaptor = (RMIAdaptor) ctx.lookup(jmx/rmi/RMIAdaptor); RMIConnectorImpl impl = new RMIConnectorImpl(rmiAdaptor); conn = (MBeanServer) impl; ctx.close(); // ... Please Help, thx a lot Marcel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930701#3930701 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930701 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: deploy mbean from code on runtime?
Hi, have a look here: JSR-03 JavaTM Management http://jcp.org/aboutJava/communityprocess/final/jsr003/index3.html download jmx_1.2_spec.pdf page 122 Registration of MBeans or here: http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanServer.html ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException; sample code to get mbean server inside jboss (e.g. inside a stateless session bean, jboss has one and only one jmx server): List servers = MBeanServerFactory.findMBeanServer(null); if (servers.size() != 1) throw new EJBException(Not exactly one server found); MBeanServer mbeanServer = (MBeanServer) servers.get(0); hth, Marcel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930740#3930740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930740 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem in EJB Calling an MBean
hi, hint to scotts post: look here: http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanServer.html especially: use queryMBeans(null, null) to get all installed mbeans hth, marcel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930741#3930741 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930741 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: gui console
hi, javax/management/BadStringOperationException is part of core jmx since java 5: http://java.sun.com/j2se/1.5.0/docs/api/javax/management/BadStringOperationException.html I am getting the same exception. I use java 1.4, I wonder why I get this exception... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930750#3930750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930750 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: gui console
got it you have to add jboss-jmx.jar to your classpath! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930754#3930754 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930754 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to access secured JMX connection in JBoss from clien
Hm, with following piece of code it works. But why? could anyone please give me a link to a section where this is documented? props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); props.put(Context.PROVIDER_URL, url); props.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); // BEGIN SecurityAssociation.setPrincipal(new SimplePrincipal(user)); SecurityAssociation.setCredential(pass.toCharArray()); // END Context ctx = new InitialContext(props); RMIAdaptor rmiAdaptor = (RMIAdaptor) ctx.lookup(jmx/rmi/RMIAdaptor); RMIConnectorImpl impl = new RMIConnectorImpl(rmiAdaptor); conn = (MBeanServer) impl; ctx.close(); // ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930760#3930760 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930760 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - JBoss Server Response Time
hi can anybody tell me that how can i get the Server Response Time? for JBoss 4.x. is there any MBean which contain the Jboss average response time.? OR we need to start any service. lbrd. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930567#3930567 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930567 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Maybe a bug, maybe my mistake
This is only to comment you about a strange thing I have seen during some testing while accessing jBoss 4.03SP1 from an external client. When I use the jar: /client/jboss-common-client.jar (in the client classpath) I get a problem deserializing the class org.jboss.util.id.GUID because the version used by the server doesn't match the one used by the client. However using /client/jbossall-client.jar in the client classpath prevents this problem. So seems like a packaging problem, different versions for jarfiles: jboss-common-client.jar and jbossall-client.jar (UID class inside this packege seems to be the one used by the server) and the one used by the server... Regards. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930197#3930197 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930197 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: future of snmp-adaptor extensions JBoss MIB
Thanks for your reply Dimitris. I've never created a MIB definition file but, from what I understand, iit would require some involvement from JBoss to obtain an enterprise ID and help define the underlying OID structure. Is that correct? Mary View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929828#3929828 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929828 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: future of snmp-adaptor extensions JBoss MIB
Yes. For the OID structure I was hoping we can use the jsr77 mapping to snmp, at least for the standard part (modeling ejb, war, ear deployments, etc). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929836#3929836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929836 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Remote MBean access
Try using a more recent jboss version, 4.0.3SP1, 3.2.8SP1 are the latest. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929607#3929607 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929607 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: custom deployer
Look at the source for a custom deployer like the org.jboss.varia.deployment.BeanShellSubDeployer which is in the varia module of the source distribution as a starting point. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929618#3929618 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929618 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: deploy mbean from code on runtime?
Yes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929624#3929624 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929624 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem in EJB Calling an MBean
Try listing all values from the MBeanServerFactory.findMBeanServer(null) call as a hint. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929630#3929630 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929630 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: future of snmp-adaptor extensions JBoss MIB
It's a matter of resource availability really. If anyone has the time to contribute that would be great (of course :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929518#3929518 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929518 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
I'm not sure your example answers my question. It shous non standard JMX MBeans. I'm trying to deploy a simple Standard MBean on my JBoss by using a SAR file. It's a simple custom class implementing a simple custom interface. There is no org.jboss... heritage or implementation. No MBeanSupport extension or MBeanService implementation. Just a simple Standard MBean. I'm affraid the only solution is to embed hand-made deployment code in a servlet context. An hybrid alternative shoud be to use the xmbean-dd tag in the jboss-service.xml file. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929261#3929261 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929261 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Remote MBean access
After some more searching, I found a posting that referred to: http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall I was able to complete the instructions at the bottom of that page that fixed my previous problem, but now I am getting: java.lang.ClassCastException: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub From my remote client. I run the same client on the same machine the server is running and it works fine. Should I be casting to RMIAdaptorImpl_Stub instead of RMIAdaptor? Are there any implications to doing this? Thanx in advance. Norton View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929385#3929385 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929385 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Remote MBean access
So here's what I've done: I have JBoss 3.0.8 running on RedHat 7.3 with JDK 1.4.2_10. I have a client that connects to JBoss with the following code: Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); | props.put(Context.PROVIDER_URL, jnp://yeager:1099); | | System.out.println(In remote call); | InitialContext ic = new InitialContext(props); | System.out.println(ic: + ic); | Object obj = ic.lookup(jmx/rmi/RMIAdaptor); | System.out.println(obj: + obj.getClass().getName()); | org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub server = ( org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub) obj; | System.out.println(server: + server); | | ObjectName objName = new ObjectName(jboss.j2ee:jndiName= + name + ,service=EJB); | System.out.println(objName: + objName); | server.invoke(...); When the client runs on the same box as the JBoss server, everything works fine. When I move the client to a Windows XP box running JDK 1.4.2_10, I get the following output that ends in a ClassCastException: In remote call ic: [EMAIL PROTECTED] obj: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub As you can see, the object coming back from the InitialContext is an RMIAdaptorImpl_Stub and that's what I cast it to, but I still get the ClassCastException. What's going on here? Thanx in advance. Norton View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929405#3929405 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929405 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
asoleto wrote : As long as I now, only Model MBean, and more precisely XMBean, can be deployed by using a *-service.xml file into a SAR. My MBean implementation has to extend ServiceMBeanSupport and my MBean interface has to extend MBeanService. | | Can I deploy a simple Standard MBean (without extending or implementing jboss classes)? Yes, this is possible. Just write your standard implementation and *MBean interface. If your question is how do I get start and stop behavior without inheriting JBoss-specific classes, just put start and stop methods on your MBean interface. JBoss will recognize that they exist, and it will call them. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929465#3929465 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929465 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - future of snmp-adaptor extensions JBoss MIB
Hi, I'm using the snmp adaptor to send traps to hp's Network Node Manager. Everything seems to be working fine. However, it's not very useful in it's current state. After searching the forum, I found the reference to http://jira.jboss.com/jira/browse/JBAS-1454 and registered my vote. Can you tell me if any work has been done or is planned to extend the snmp-adaptor and create a JBoss MIB? Thanks, Mary View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929478#3929478 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929478 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problem in EJB Calling an MBean
Hi, I am using JBoss 3.2.7. I have created a helloworld JMX service and deployed the .sar. I am having an .ear from where I am trying to call this MBean. I tried in the following ways: ArrayList servers = MBeanServerFactory.findMBeanServer(null); if (servers == null){} else{ MBeanServer server = (MBeanServer)servers.get(0); ObjectName objName = new ObjectName(helloworld:service=HelloWorld); This gives an exception saying helloworld is not registered. Also, ctx = new InitialContext(); MBeanServerConnection server = (MBeanServerConnection)ctx.lookup(jmx/invoker/helloworld); This gives the exception saying helloworld not bound. I am able to see and change the attributes of the helloworld MBean via jmx-console. But I could not find this MBean in the JNDIViewer. Please help me finding out where am I doing wrong. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929024#3929024 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929024 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - deploy mbean from code on runtime?
is it possible? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929080#3929080 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929080 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Remote MBean access
Hi, I am trying to access an MBean from a remote client. From the wiki page: http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIClientConfiguration I was told to replace 'localhost' with my IP address to get an InitialContext connected to my JBoss server. So here's what I did in my code: Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); | props.put(Context.PROVIDER_URL, jnp://10.0.0.3:1099); | | InitialContext ic = new InitialContext(props); | RMIAdaptor server = (RMIAdaptor) ic.lookup(jmx/rmi/RMIAdaptor); | . | . | . but I get the following error when the lookup() is executed: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect] Did I do something wrong? Why is it still trying to connect to localhost? Thanx for your help. Norton View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929174#3929174 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929174 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - javax.naming.NameNotFoundException: ejb not bound
Hello help please I am using JBoss Application Server 4.0.3SP1 . I need an ejb which needs to connect to Oracle Containers for J2EE 10g (10.1.3.0.0) Developer's Preview 4 and get all the MBeans information from there. First I tried to connect through the basic Java Program given below, which needed a application-client.xml in META-INF directory to refer. That worked fine. import javax.management.j2ee.*; import javax.management.*; import javax.management.remote.*; import javax.ejb.*; import javax.naming.*; import javax.rmi.*; public class Main { public static void main(String[] args) throws Exception { Hashtable props = new Hashtable(); props.put(Context.PROVIDER_URL, ormi://trainingtest1:23791/default); props.put(Context.SECURITY_PRINCIPAL, oc4jadmin); props.put(Context.SECURITY_CREDENTIALS, welcome); props.put(Context.INITIAL_CONTEXT_FACTORY ,com.evermind.server.ApplicationClientInitialContextFactory); InitialContext ctx = new InitialContext(props); Object o = ctx.lookup(java:comp/env/ejb/mgmt/MEJB); ManagementHome home = (ManagementHome)PortableRemoteObject.narrow(o, ManagementHome.class); Management mejb = home.create(); } } The Same program when i tried to implement through EJB in JBoss it did not function. So I tried to implement in servlet first and then in EJB. And also i kept the application-client.xml file in META-INF directory inside classes folder. When i try to run the following servlet program by packagin to a ear file the below given exception is thrown. I cant come out the error. can any one please help me in comming out of this problem. the servlet program is import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import javax.naming.*; import javax.management.j2ee.*; import javax.management.*; import javax.management.remote.*; import javax.ejb.*; import javax.naming.*; import javax.rmi.*; import java.util.*; public class Test extends HttpServlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out=response.getWriter(); String msg=; try{ Hashtable props = new Hashtable(); props.put(Context.PROVIDER_URL, ormi://localhost:23791/default); props.put(Context.SECURITY_PRINCIPAL, oc4jadmin); props.put(Context.SECURITY_CREDENTIALS, welcome); props.put(Context.INITIAL_CONTEXT_FACTORY ,com.evermind.server.ApplicationClientInitialContextFactory); InitialContext ctx = new InitialContext(props); Object o = ctx.lookup(java:comp/env/ejb/mgmt/MEJB); ManagementHome home = (ManagementHome)PortableRemoteObject.narrow(o, ManagementHome.class); out.flush(); Management mejb = home.create(); }catch(Exception e){ e.printStackTrace(); } out.println(Done); out.close(); } public void destroy(){} } javax.naming.NameNotFoundException: ejb not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) at org.jnp.server.NamingServer.getObject(NamingServer.java:528) at org.jnp.server.NamingServer.lookup(NamingServer.java:252) at org.jnp.server.NamingServer.lookup(NamingServer.java:255) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) at javax.naming.InitialContext.lookup(InitialContext.java:351) at Test.doGet(Test.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilte r.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at
[JBoss-user] [Management, JMX/JBoss] - custom deployer
hi everybody. i am currently developing some kind of framework (which is not important) which has to be integrated into jboss. now with this framework an application can use it, but has to add information into its deployment. in my case this is some information in an xml file. now i wrote an mbean, which has to retrieve this information, but of course it should notice if a new application is deployed and check it, whether the appropriate xml file is present and then read and store the information. does anyone, have any idea how i should approach this problem? i dont need a thorough explanation, but any idea is appreciated since i have no clue how i could approach this. thnx to all readers and even more thnx to all replyers. joergipoeregi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928489#3928489 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928489 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Resource Pooling using JBoss
I want to use JBoss AS for my application. The application deals with the calling external telephone numbers using the GSM modems connected to the server. I want to use resource pooling facilities of JBoss. I want to know how to setup the resource pools for external entities like modems and access it via JMX. I searched through the net and I could not get the right information to start. Can anyone please help me by giving some links or information. Thanks in adv. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928661#3928661 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928661 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How Can I deploy a Standard MBean on JBoss by using a SAR ?
As long as I now, only Model MBean, and more precisely XMBean, can be deployed by using a *-service.xml file into a SAR. My MBean implementation has to extend ServiceMBeanSupport and my MBean interface has to extend MBeanService. Can I deploy a simple Standard MBean (without extending or implementing jboss classes)? I read in the Wiki that it is possible, but I don't see how. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928152#3928152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928152 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
A precision: My question is Can I use a SAR for deploying a Standard MBean that uses only standard JMX classes ?. I want to use a *-service.xml file to declare my Standard MBean. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928153#3928153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928153 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
The example I posted should be sufficient... http://www.jboss.com/index.html?module=bbop=viewtopict=78485 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928191#3928191 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928191 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - How can I find Tomcat Port
How can I find the Tomcat Http Port from the jmx-console? I searched in jboss.web but I cannot find Mbean with Port attribute. I dont want to use the Mbean name (name=http-0.0.0.0-8080,type=GlobalRequestProcessor ) to find the Http port. I want to Query a lot of jboss instances and find their Tomcat port so I need to find a generic Mbean (with standard ObjectName) who define the Http Port. My second Question is can I change the Tomcat Http Port Online with the jmx-console and if so how? thanx, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3928108#3928108 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928108 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: java.lang.LinkageError for org/w3c/dom/Node
You are correct and I am wrong -- bad .jar in the deployment. Thanks for the debugging tip, though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927948#3927948 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927948 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Need help with ServiceMBean
My opologies for the incomplete post. Don't know what I was thinking. At any rate, I got past the exception by manually creating the XML description file. For some reason XDoclet is ignoring those @param tags in the ServiceMBean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927808#3927808 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927808 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - java.lang.LinkageError for org/w3c/dom/Node
I have a set of XML-processing MBeans. The beans work properly under JBoss 4.0.2. Under 4.0.3 I get the following: 2006-03-03 11:19:38,125 INFO [STDOUT] java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class 2006-03-03 11:19:38,125 INFO [STDOUT] at com.cst.chetx.core.bean.parser.Parser.receiveData(Parser.java:185) Environment is WinXP (current patches), Sun Java 1.5.0_06-b05. The deployment file containing the beans is _identical_ for 4.0.2 and 4.0.3 and contains none of the org.w3c classes. I would have thought that the same classloader would be used for all of the XML/DOM classes, but (given this error) this appears to not be the case. Anybody have any suggestions? I will check the 4.0.4RC as well and post the results View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927817#3927817 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927817 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: java.lang.LinkageError for org/w3c/dom/Node
Same problem occurs under 4.0.4RC1, at the same place in the code. FYI, the error happens on a document.getDocumentElement() method call. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927845#3927845 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927845 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: java.lang.LinkageError for org/w3c/dom/Node
Start here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingOverview View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927853#3927853 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927853 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user