[JBoss-user] [Management, JMX/JBoss] - Re: JMX-console fails with mustang?
The issue is bigger than the jmx-console itself: http://jira.jboss.com/jira/browse/JBAS-3381 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956444#3956444 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956444 - 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: No login available for security service
I have the same issue ... if you find something let me know View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955419#3955419 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955419 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: No login available for security service
Have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955447#3955447 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955447 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] - SNMP get/set in JBoss 4.0.4 using adventnet mib browser
Hi, In jboss 4.0.4 default configuration the snmp-adaptor.sar service has mib2 system group attributes configured like sysDescr etc. I am able to do get/set of these attributes using the JMX console however if I try to execute snmp get/set using adventnet mib browser then sometimes i get a request timeout and sometimes the requests return values correctly. I think the problem is in the port that the built-in snmp agent runs on. Is it correct ? What is the solution for this problem. In jboss-service.xml the port is configured as 1161 so I sent the requests on port 1161 through the browser. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955476#3955476 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955476 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] - NotSerializableException using some MBeans with JConsole or
I try to invoke a MBeans method from a client application (a swing app outside of the application server). I ge the the following exception: java.io.NotSerializableException: org.jboss.system.ServiceController$ServiceProxy | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) | at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) | at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) | at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) | at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) | at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | at java.util.LinkedList.writeObject(LinkedList.java:755) | at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) | at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) | at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) | at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) | at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | at java.util.ArrayList.writeObject(ArrayList.java:569) | at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) | at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) | at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) | at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) | at java.rmi.MarshalledObject.init(MarshalledObject.java:92) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:424) | at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) | at sun.rmi.transport.Transport$1.run(Transport.java:153) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:149) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:595) | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) | at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) | at sun.rmi.server.UnicastRef.invoke(Unknown Source) | at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) | at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133) | at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:331) | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:194) | at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) | at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) | at $Proxy0.invoke(Unknown Source) | My source code is : | InitialContext ctx = new InitialContext(); | MBeanServerConnection s = (MBeanServerConnection) ctx | .lookup(jmx/invoker/RMIAdaptor); | ObjectName deployerMBeanName = new
[JBoss-user] [Management, JMX/JBoss] - Re: Creating a MBean
I just figured it out. I do not use the naming standard on MBeans (If the source class is named Serious, then the interface must be named SeriousMBean). A deep dive into the world of MBeans can be found here: http://www.oreilly.com/catalog/javamngext/chapter/ch02.pdf View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955188#3955188 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955188 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] - Calculation listenning host and port
Hello all, I'm developing applications in JBOss 4.0 (resource adapter and web application). I need to find out the listenning host and port of the JBoss instance in runtime. I've found following way to calculate the host: MBeanServer server = MBeanServerLocator.locateJBoss(); ObjectName serverInfoObjectName = new ObjectName(jboss.system:type=ServerInfo); host = (String)server.getAttribute(serverInfoObjectName, HostAddress); Is it a correct way? How can I calculate the listenning port? Thanks a lot. Victor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955208#3955208 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955208 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] - ServletStatsImpl in an MBEAN
Hello, i want to use ServletStatsImpl in an mbean but i have already 0 in these variable when i read attributes mbean with jmx-console : public void setServlet(boolean servlet) { System.out.println(J2EEManagedObject servlet : + servlet + \n); if(servlet !isServletStarted) { System.out.println(J2EEManagedObject debut collecte stats servlet \n); ServletStats = new ServletStatsImpl(); } if(!servlet isServletStarted) { System.out.println(J2EEManagedObject fin collecte stats servlet \n); ServletStats = null; ServletTimeServiceCount = 0; ServletTimeServiceMax = 0; ServletTimeServiceMin = 0; ServletTimeServiceTotal = 0; } this.isServletStarted = servlet; } private void refreshServlet() { ServletTimeServiceCount = ServletStats.getServiceTime().getCount(); ServletTimeServiceMax = ServletStats.getServiceTime().getMaxTime(); ServletTimeServiceMin = ServletStats.getServiceTime().getMinTime(); ServletTimeServiceTotal = ServletStats.getServiceTime().getTotalTime(); System.out.println(J2EEManagedObject servlet Count: + ServletTimeServiceCount + \n); System.out.println(J2EEManagedObject servlet Max: + ServletTimeServiceMax + \n); System.out.println(J2EEManagedObject servlet Min: + ServletTimeServiceMin + \n); System.out.println(J2EEManagedObject servlet Total: + ServletTimeServiceTotal + \n); } i make request to my jboss but attributes are always 0 value. why ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955291#3955291 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955291 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: Does JBoss allow PERSISTENT changes to MBean Attributes?
On a similar note. If you deploy an application via JMX it also disappears after a restart: We started of with this in our ant build: Had to move to a copy and sleep to preserve deployment after bounce View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954976#3954976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954976 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: Does JBoss allow PERSISTENT changes to MBean Attributes?
View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954978#3954978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954978 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: Does JBoss allow PERSISTENT changes to MBean Attributes?
View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954979#3954979 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954979 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: Creating a MBean
In frustration of not be able to create a general jmx bean, I tried extending the ServiceMBeanSupport explained in http://wiki.jboss.org/wiki/Wiki.jsp?page=ServiceMBeanSupport. However; the same error occurs: org.jboss.deployment.DeploymentException: Class does not expose a management interface: java.lang.Object; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178) | at org.jboss.system.ServiceController.install(ServiceController.java:215) | at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | | Caused by: javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object | at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:88) | Please help me!!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954980#3954980 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954980 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: Creating a MBean
Post your MBean code and the *-service.xml file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955181#3955181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955181 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] - Creating a MBean
I am trying to create a mbean, but I get a strange exception org.jboss.deployment.DeploymentException: Class does not expose a management interface: java.lang.Object; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178) | at org.jboss.system.ServiceController.install(ServiceController.java:215) | at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) I am using the code presented in the example from the wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService), using the general extention of the interface (not extends ServiceMBean). What might be wrong? I do not implement a management interface? I implement a interface containing the start() and stop() methods (like the example) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954895#3954895 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954895 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: JMX-console fails with mustang?
/usr/apps/jdk1.6/bin/java -server -Xms128m -Xmx128m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 -Dprogram.name=run.sh -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Dcom.sun.management.jmxremote -Djboss.platform.mbeanserver -Djava.endorsed.dirs=/opt/jboss40/lib/endorsed -classpath /opt/jboss40/bin/run.jar:/usr/apps/jdk1.6/lib/tools.jar org.jboss.Main -b 192.168.21.1 -c default java version 1.6.0-beta2 Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86) Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing) Please let me know, if you need more info (what?). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954620#3954620 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954620 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] - using twiddle to get a snapshot?
is it possible to use the twiddle script to get something like the snapshot feature of the web-console? I would be interested in reading out a row of values over some time, something like read the freememory attribute of mbean soandso every second, without having to restart twiddle every second... has anybody an idea of how to get information of this type? I am using JBoss 4.0.3 SP1, JDK 1.4.2_10. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954645#3954645 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954645 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: using twiddle to get a snapshot?
You can do this on the server side using the LoggingMonitorService http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossLoggingMonitor For twiddle this would be a new feature: http://jira.jboss.com/jira/browse/JBAS-3356 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954650#3954650 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954650 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: Does JBoss allow PERSISTENT changes to MBean Attributes?
There is some support for persisting attribute changes, put the mbean needs to be xmbeanized (see the XMBean section in the FAQ http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX) I guess with datasources that would be a little hard to do, since the mbean descriptor is generated by the -ds.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954652#3954652 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954652 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: using twiddle to get a snapshot?
wow, that was fast, thanks a lot!!! yes, this would really be a nice feature in twiddle... because starting a JVM for a single value every time is quite an overhead. and thank you also for the wiki link, this seems to be exactly what I was looking for! cool, keep on going like this! :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954673#3954673 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954673 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] - jboss snmp monitoring with mrtg
Hi all, i am trying to monitor jboss with mrtg by using the SNMPAdapter as described in http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSNMPAdapter i used the configurations , attributes.xml,managers.xml,notfication.xml as described in the link. Our jboss version ist 3.2.6 , java 1.4.2_10 . It seems that the adapter is correctly loaded 11:23:34,953 INFO [SnmpAgentService] SNMP agent going active but i receive no data. Did anyone set up jboss snmp monitoring with mrtg and can give me some hints ? i used also GetIf and IReasoning Mib Browser , but i found no oid´s on my system which could be used for jboss. Thanks in advance Frank View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954323#3954323 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954323 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] - Does JBoss allow PERSISTENT changes to MBean Attributes?
Hi On my first JBoss project after many years using WebLogic I changed the jboss.jca:name=DefaultDS,service=ManagedConnectionPool mBean object via the JMX console. When I bounced JBoss I noticed that I had lost my update! Is it possible to persist such changes via JMX using JBoss (which is the case with WebLogic) or do you need to also change the configuration file as well to persist such changes? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954384#3954384 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954384 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: Does JBoss allow PERSISTENT changes to MBean Attributes?
You have to change the configuration file. Changes made via JMX are not persisted. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954408#3954408 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954408 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: XMBean -- extending an existing xmbean.xml file
There should be a schema based version that allows for inheritance of attribute groups and the like to allow for this. Having to step outside of the xml features for this just does not seem worth it. We do have entities in the dtd for resuing commons ops/attributes. This is what would have to be used for the existing xml/dtd based version. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954524#3954524 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954524 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: JMX-console fails with mustang?
The jmx-console works fine for me under the current beta release. What are the details for the jdk and options that are causing the problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954526#3954526 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954526 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: JMX-console fails with mustang?
The 1.6.0-beta2 also works fine for me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954530#3954530 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954530 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] - How to register simple MBean to JBoss AS
Hello im new JBoss user i must migrate from Bea WebLogic 8.1 to JBoss but i have problem with MBeans. i have 1-2 simple MBeans and i want to register them to JBoss AS . how can i do that ? under Bea the things was like this i must implement class ApplicationLifecycleListener then i must predefine method called postStart(ApplicationLifecycleEvent evt) and in this metod i must register my mBeans this metod is executed when my domain starts . how can i do this on Jboss ? i found some parts of an XML tags like mbean but i dont know where to put them and how help me please thanks for listening me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953910#3953910 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953910 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 register simple MBean to JBoss AS
Have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953921#3953921 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953921 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 register simple MBean to JBoss AS
a :) 10x a lot :)) thanksss ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953946#3953946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953946 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] - XMBean -- extending an existing xmbean.xml file
I think it would be a useful feature to be able to specify in an xmbean.xml file that this file extends the attributes and operations in an other file. |!DOCTYPE mbean PUBLIC | -//JBoss//DTD JBOSS XMBEAN 1.2//EN | http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd; | | mbean |classorg.jboss.jms.server.plugin.JDBCChannelMapper/class |extendsJBossService-xmbean.xml/extends | Maybe extends isn't the correct word, perhaps include or something like that. And you'd be able to include more than one file, so it wouldn't work as an attribute. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954171#3954171 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954171 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: XMBean -- extending an existing xmbean.xml file
To explain the need: The obvious use case is of course the JBoss service one, where the lifecycle methods are used for pretty much every MBean. Addtionally, users may want to enhance existing services. Whereas with standard MBeans you simply extend the MBean interface, there's no equivalent for XMBeans. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954172#3954172 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954172 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] - JMX-console fails with mustang?
Not sure, what the real problem is, however, if I start Jboss 4.0.4GA with mustang instead of tiger, everything runs fine except the JMX console. Because of a com.sun.management:type=HotSpotDiagnostic is not registered exception the complete jmx-console is unusable. I made the following fix: --- jboss/varia/src/main/org/jboss/jmx/adaptor/control/Server.java.orig Sat Oct 29 07:06:40 2005 | +++ jboss/varia/src/main/org/jboss/jmx/adaptor/control/Server.java Thu Jun 29 00:09:52 2006 | @@ -30,6 +30,7 @@ | import java.util.TreeMap; | import javax.management.Attribute; | import javax.management.AttributeList; | +import javax.management.InstanceNotFoundException; | import javax.management.JMException; | import javax.management.MBeanInfo; | import javax.management.MBeanAttributeInfo; | @@ -75,7 +76,18 @@ | while( objectNamesIter.hasNext() ) | { | ObjectName name = (ObjectName) objectNamesIter.next(); | -MBeanInfo info = server.getMBeanInfo(name); | +MBeanInfo info = null; | +try { | + info = server.getMBeanInfo(name); | +} catch (InstanceNotFoundException inf) { | + log.warn(inf.getLocalizedMessage()); | + if (log.isDebugEnabled()) { | + log.debug(getDomainData, inf); | + } | +} | +if (info == null) { | + continue; | +} | String domainName = name.getDomain(); | MBeanData mbeanData = new MBeanData(name, info); | DomainData data = (DomainData) domainData.get(domainName); Is it possible to apply the patch to the main branch ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954212#3954212 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954212 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: Problem locating an MBeanServer
You cannot get a reference. Instead, all operations on an mbean must be done through the MBeanServerConnection instance. Thus, to make the example method call, you would write: ObjectName name = new ObjectName(--name of your 'world' mbean--); | mconn.invoke(name, tell, null, null); See http://java.sun.com/j2ee/1.4/docs/api/javax/management/MBeanServerConnection.html for the methods on MBeanServerConnection. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953466#3953466 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953466 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: Scheduler Issue on AS4.0.3RC1?
Anyone solve this? I am seeing it in 4.0.4.GA. How do I tell the scheduler the class in in my web app? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953586#3953586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953586 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: Problem locating an MBeanServer
ok, I get that now How would I be able to do something like: Beanname.methodxyz(); e.g.: world.tell(); i.e. How can I get a reference? Sorry if that is already explained and I'm just missing it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953169#3953169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953169 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: Problem locating an MBeanServer
Hi, executing if (System.getSecurityManager() == null) { | System.setSecurityManager(new RMISecurityManager()); | } | Hashtable env = new Hashtable(); | String factory = org.jnp.interfaces.NamingContextFactory; | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); | String url1 = jnp://localhost:1099; | env.put(Context.PROVIDER_URL, url1); | Context ctx = new InitialContext(env); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); | ObjectName name = new ObjectName(jboss.jca:name=ds/DefaultDS,service=ManagedConnectionPool); | Object val = mconn.getAttribute(name, InUseConnectionCount); | System.out.println(name + \n\tInUseConnectionCount= + val); leads to: anonymous wrote : javax.management.InstanceNotFoundException: jboss.jca:name=ds/DefaultDS,service=ManagedConnectionPool is not registered. | at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523) | at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:550) | 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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) | 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.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:108) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) | 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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) | 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) | at sun.rmi.transport.Transport$1.run(Transport.java:153) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:149) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:595) I'm not sure I made myself quite clear on what i want to do. I want to obtain a reference to a Bean of my own, deployed in JBoss named WorldMBean which extends the interface World. What exactly are the lines ObjectName name = new ObjectName(jboss.jca:name=ds/DefaultDS,service=ManagedConnectionPool); | Object val =
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
Oops, my instructions were not completely correct. The correct data source name is DefaultDS, not ds/DefaultDS. The easiest way to find out the name of the mbean you are looking for it to use the jmx-console: http://localhost:8080/jmx-console. Then you simple replace the object name text with the mbean name you want. As for the three lines of code you asked about: ObjectName name converts the string representation of the mbean name into an object. An mbean name consists of a namespace (jboss.jca), followed by a colon, and then followed by a comma-separated lists of name/value pairs that can appear in any order. What the name/value pairs are and mean depends on the writer of the mbean. Object val get the value of an attribute (InUseConnectionCount) from the mbean. System.out. of course prints out the mbean name and the value of the attribute. The code I provided works in a stand-alone client and can access a remote JBoss server instance, just change localhost in the url to the desired host name. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953022#3953022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953022 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: Using an MBean to spawn native Process with JBoss AS/4.0
Just as an update, I was able to find a solution to the problem. In order to spawn a native Process from an MBean required 3 threads and a signal handler. One thread handled the exec() and destroy() of the Process and implemented a signal handler to catch SIGTERM. The other two threads were typical stdout/stderr consumers to grab the output of the Process. The key to the resolution was the introduction of a signal handler. I thought JBoss AS would object, but it seemed to work fine. I can either call Process.destroy() and kill the spawned process without affecting JBoss, or externally just kill -9 the PID of the process without affecting JBoss. The signal handler for the thread which exec'd the Process catches the SIGTERM and my JBoss AS no longer exits with a sudden shutdown hook call. Thanks for the feedback. Regards, Keith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952625#3952625 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952625 All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 locating an MBeanServer
Thank you so much for pointing that out. One more problem remains: How do i get my stub? Currently I'm using the following code: (World being the ManagementInterface of the Bean I want to use) if (System.getSecurityManager() == null) { | System.setSecurityManager(new RMISecurityManager()); | } | Hashtable env = new Hashtable(); | String factory = org.jnp.interfaces.NamingContextFactory; | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); | String url1 = jnp://localhost:1099; | env.put(Context.PROVIDER_URL, url1); | Context ctx = new InitialContext(env); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); | | | world = (World) MBeanProxyExt.create( | World.class, | trail:service=world); which does not compile do to a MalformedObjectNameException. I would actually like to use the create methode that takes a third argument(an MBeanServer). Do you happen to know how I can get the MBeanServer from the MBeanServerConnection(which is actually a sub interface of the latter) How do you get acces to your Beans? Again, thank you so much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952751#3952751 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952751 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: Problem locating an MBeanServer
See http://www.jboss.com/index.html?module=bbop=viewtopict=84303 for a complete program. The mbean name I used was based on my data source, but you could subsistutue DefaultDS for ProductDS and it should work. Or pick a name from the jmx-console. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952785#3952785 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952785 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: Using an MBean to spawn native Process with JBoss AS/4.0
1. Not stricly spec compliant (if talking about EJBs), but Ok 2. Don't know. If you can have a look, for the jboss web project, mladen made a wrapper library on top of apr (apache portable runtime) which may have better process control. Let us know of your findings anyway. I'd be glad to incorporate a general purpose process handling mbean to jboss. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952247#3952247 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952247 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
@PeterJ: Executing your code leads to the following: anonymous wrote : javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no security manager: RMI class loader disabled)] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at trail.SE.client.Client.main(Client.java:37) | Caused by: java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no security manager: RMI class loader disabled) | at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531) | at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628) | at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294) | at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238) | at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) | at java.rmi.MarshalledObject.get(MarshalledObject.java:135) | at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652) | ... 3 more any ideas on how i could activate the security manager? anonymous wrote : It seems he's trying to locate the local mbeanserver, which doesn't exist. To be perfectly honest I'm not sure what exactly I should be trying to connect to. At the end of the day I want my client to be able to connect to a server running on a different machine, currently my JBoss Server runs on the same machine but in a different vm. The weird thing is SessionBeans in the client work immediately (looking them up via the InitialContext) Is there a difference in the client code between connecting on a local machine and to a remote machine? thx for your help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952286#3952286 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952286 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
This is all described in the FAQ: http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952294#3952294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952294 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: J2EEApplication=null when EJB redeployed using JMX
Yes, this is related to an embedded EJB in an EAR. Redeploying my EAR solves the problem, but that is not the intention at all. Since the EAR consists of tens of EJBs, we dont want to loose the other EJB services for that period. Is there any workaround for this? Regards Himadri View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952428#3952428 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952428 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
The no security manager error sure looked familiar, but it took me some time to find it. I ran into the same error when I wrote mbean client code that I ran on my Linux box attempting to connect to JBoss running on my Windows box. Here is what I did. I added the following lines before the code I posted: if (System.getSecurityManager() == null) { | System.setSecurityManager(new RMISecurityManager()); | } In addition, I changed the JAVA_HOME/jre/lib/security/java.policy file to read: grant { | permission java.security.AllPermission; | }; As you probably notice, this is not the correct way to set this, unless you don't care about security (it was fine for me, I only needed to demo a prototype after which I restored the original java.policy file). If you google RMISecurityManager you will get many hits that will tell you how to configure the security properly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952430#3952430 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952430 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
Here's my current code : try{ | | if (System.getSecurityManager() == null) { | System.setSecurityManager(new RMISecurityManager()); | } | Hashtable env = new Hashtable(); | String factory = org.jnp.interfaces.NamingContextFactory; | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); | String url1 = jnp://localhost:1099; | env.put(Context.PROVIDER_URL, url1); | Context ctx = new InitialContext(env); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); | } | catch(NamingException e){e.getMessage(); e.printStackTrace();} with the normal/default java.policy file i get the following error: anonymous wrote : javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: java.security.AccessControlException: access denied (java.net.SocketPermission 230.0.0.4 connect,accept,resolve) [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)]] | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at trail.SE.client.Client.main(Client.java:42) | Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)] | at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269) | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) | ... 4 more | Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) | at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) | at java.security.AccessController.checkPermission(AccessController.java:427) | at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) | at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) | at java.net.Socket.connect(Socket.java:501) | at java.net.Socket.connect(Socket.java:457) | at java.net.Socket.(Socket.java:365) | at java.net.Socket.(Socket.java:265) | at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84) | at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77) | at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239) | ... 5 more This seems to me to be a Problem in configuring the JBoss Server, as it seems to get the request and just deny access. Any ideas on how to configure that? switching to grant { | permission java.security.AllPermission; | }; I get : anonymous wrote : javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at trail.SE.client.Client.main(Client.java:42) | Caused by: java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName(Class.java:242) | at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707) | at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651) | at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588) | at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628) | at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294) | at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238) | at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494) | at
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
The org.jboss.jmx.adaptor.rmi.RMIAdaptor class is in these jar files, all found in jboss_home/client: * jbossall-client.jar * jbossjmx-ant.jar * jmx-invoker-adaptor-client.jar Include one of these in your classpath (I use jbossall-client). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952472#3952472 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952472 All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: J2EEApplication=null when EJB redeployed using JMX
I guess this is related to the embedded ejb jar redeployed independently of the .ear. Can you try redeploy the whole ear? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951893#3951893 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951893 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problem locating an MBeanServer
Hi, I have trouble with the following line of code: MBeanServer server = MBeanServerLocator.locate(); when executing the method it is in I get the following error: anonymous wrote : java.util.NoSuchElementException | at java.util.AbstractList$Itr.next(AbstractList.java:427) | at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:79) | at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:92) | at trail.SE.client.Client.main(Client.java:30) The result of the code would be used for getting a stub to a ServiceBean any help would be grealty appreciated, cheers deus machinarum View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952065#3952065 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952065 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
Are you trying to get the mbean server for JBoss? If so, I usually use the following code: Hashtable env = new Hashtable(); | String factory = org.jnp.interfaces.NamingContextFactory; | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); | String url1 = jnp://localhost:1099; | env.put(Context.PROVIDER_URL, url1); | Context ctx = new InitialContext(env); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952077#3952077 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952077 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem locating an MBeanServer
It seems he's trying to locate the local mbeanserver, which doesn't exist. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952093#3952093 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952093 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Using an MBean to spawn native Process with JBoss AS/4.03 an
Hi, I'm running JBoss AS 4.03 to perform some simulation work. I've got an MBean which spawns off various threads. Each thread in turn calls java.lang.Runtime.exec() to create a native process. Invocation of this works find. I can create processes all day long and interrupt my threads. However, if I call destroy() on a Process, which was created by a thread, held by the mbean, the JBoss AS shutdown hook is abruptly called and everything ends with: [exec] 15:45:50,433 INFO [Server] Runtime shutdown hook called, forceHalt: true [exec] 15:45:50,433 INFO [Server] JBoss SHUTDOWN: Undeploying all packages Questions: 1. Is is ok (or at least permitted) to spawn threads and native Process objects from an MBean? 2. How does one go about forcefully destroying a spawned Process without killing the application server? I would hate to move my process handling to a separate JVM outside of JBoss. Any suggestions? Thanks, Keith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3952137#3952137 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952137 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Concern over JBOSS / JMX removal
At JBossWorld in Vegas, Dimitris gave an excellent presentation on the JBoss POJO-based MicroContainer architecture and one of its prime benefits - the ability to run various components outside the app server. (Many of the other presentations reflected back on this fact also.) It would be worth checking out that presentation when it becomes avialable on the JBoss web site. But regardless of this fundamental change in the architecture, the fact is that the JBoss app server will continue to be Java EE certified, and thus any code you write to the Java EE specs will continue run. So as Scott said... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951726#3951726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951726 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Have you coded a cool MBean service you want to share?
Hi, Already posted but never got a reply ;( I want to run my SessionBean afte doing some functionality in Start() method of my MBean. But EJB just doesn't get deployed before MBean. I have tried with tag. y jboss-serv ice.xml looks like this: jboss.j2ee:service=EJB,jndiName=DrawResultsBean But when run getting this error: --- MBeans waiting for other MBeans --- ObjectName: com.gameteclabs.bizlogic.workflow:service=CheckForDraw State: CONFIGURED I Depend On: jboss.j2ee:service=EJB,jndiName=ejb/ADMDrawResults1Bean --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/DrawResultsBean State: NOTYETINSTALLED Depends On Me: com.gameteclabs.bizlogic.workflow:service=CheckForDraw Please help me in solving this error. I am stuck for last 4 days ;( Regards, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951452#3951452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951452 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - [deploymentinfo] and temporary files
I am having a problem with bean re-deployment. Jboss does not overwrite its temporary files, the message appears [DeploymentInfo] could not delete file (** see below **) restart will delete it. I am worried that Jboss is not cleaning up properly - is there a way to correct this ? ** (the file is in default/ tmp/ deploy/ test.jar) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951236#3951236 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951236 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: [deploymentinfo] and temporary files
This is not a problem. It only appear on Windows due to bugs in the jdk. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951243#3951243 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951243 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: [deploymentinfo] and temporary files
so can it be fixed ? it is a problem as the Home interface cannot be found next time you activate a jsp page refering to the updated bean unless you restart the server ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951246#3951246 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951246 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: [deploymentinfo] and temporary files
just to give a bit more info, unless i restart jboss, i get this error if i redeploy because it can't overwrite the temporary file java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.A1 com.A1Home.create() throws javax.ejb.CreateException,java.rmi.RemoteException View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951249#3951249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951249 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - J2EEApplication=null when EJB redeployed using JMX
Hi, I have written a EJB monitoring MBean service for handling Database failover scenarios. Basically this would redeploy the failed beans after the DB is up. I am trying to redeploy a failed EJB using the jboss.system:service=MainDeployer MBean by the redeploy(String url) method invocation. The deployment works fine, but after that the EJB MBean shows as jboss.management.local: EJBModule=,J2EEApplication=null,J2EEServer=Local, j2eeType=EntityBean,name= Pls note the MBean object key J2EEApplication=null. It should actually be J2EEApplication= Could somebody let me know if there's something else also that needs to be done to inform the JMX Microkernel aware of the EAR associated with the EJB Jar Regards Himadri View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951329#3951329 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951329 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: J2EEApplication=null when EJB redeployed using JMX
No, as far as I remember from the JSR-77 spec, it must be the 'null' string. Can you point otherwise in the spec? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951378#3951378 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951378 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: J2EEApplication=null when EJB redeployed using JMX
Hi Dimitris, Thanks for ur reply. The failed EJB is a part of an EAR. That is why i am expecting J2EEApplication=xxxearnamexxx In fact before the EJB is redeployed, the Object name reads: jboss.management.local: EJBModule=,J2EEApplication=xx.ear,J2EEServer=Local, j2eeType=EntityBean,name=abcEJB and after redeployment it reads : jboss.management.local: EJBModule=,J2EEApplication=null,J2EEServer=Local, j2eeType=EntityBean,name=abcEJB Is this ok? Regards Himadri View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951386#3951386 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951386 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Concern over JBOSS / JMX removal
http://www.regdeveloper.co.uk/2006/06/14/jboss_jmx/ I refer to the above article and potential removal of JMX MBEAN architecture. I am currently in the midst of an application suite which involves the use of session and entity beans and I perhaps need to understand the implications of this removal a little more. How will this impact CMP and entity beans and perhaps session beans ? Appreciate any advice that can be offered here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951069#3951069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951069 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Model MBeans
Hi team JBoss, I am facing a silly problem...Like i am confused as to how to deploy a Model MBean in the JBoss.I have been successful in deploying standard and dynamic MBean so far. I am not able to define the things in my jboss-server.xml for the same. So can u please tell me or refer me to a good(appropriate) link which mentions how to deploy a Model MBean in JBoss AS. Thanks, Srivathsa.K View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951078#3951078 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951078 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Concern over JBOSS / JMX removal
stop worrying about it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3951096#3951096 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951096 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - deploy order using depends in jboss-web.xml
jboss-web | context-root//context-root | virtual-hostvhost/virtual-host | dependsjboss.jca:service=ManagedConnectionPool,name=someDS/depends | /jboss-web | this does not seem to work. is there an error here? thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950882#3950882 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950882 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Not able to locate Session bean thru sar
Hi, I have a abc1.sar file which calls a POJO -- abc.java which inturns calls SessionBean. In jboss-service.xml I have an entry for abc.sar My problem is : If I deploy abc1.jar -- It calls session Bean it works fine But the moment I make abc1.sar deploys the application I get following error: javax.naming.NameNotFoundException: ejb not bound In short, when renamed as SAR file the way I want it, it is not able to locate Session Bean! Can you please help? Thanks, Ameeta View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950663#3950663 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950663 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Scheduler Jboss
I have a problem with the attribute InitialStartDate. It cannot be NOW in this specifically case. I would like to know how can I configure my scheduler-service to execute the SchedulableMBean: - everyday, 02 a.m - every JBoss startup, 5 minutes after the startup thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950517#3950517 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950517 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Make Hibernate ignore certain getter methods of an EntityBea
hi, we dont want to store the return value of a certain getter-method, but we dont know how to annotate this correctly... help needed and very much appreciated THX View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950308#3950308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950308 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Shutdown JBoss gracefully when it fails to deploy a crit
Dmitris, thanks for your reply. It's appreciated. That said, I tried the following within my MBean's startService method to no avail (the server did not abort the startup as hoped) ... try { . . . } catch (MyException e) { MBeanServer server = MBeanServerLocator.locateJBoss(); ObjectName target = new ObjectName(jboss.system:type=Server); server.invoke(target, shutdown, new Object[0], new String[0]); } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950311#3950311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950311 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Shutdown JBoss gracefully when it fails to deploy a crit
Unfortunately, I have the very same question. If only someone had replied ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950248#3950248 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950248 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Shutdown JBoss gracefully when it fails to deploy a crit
Maybe catch the exception yourself in the start() method of your service and call exit with an error code on the jboss.system:type=Server mbean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950262#3950262 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950262 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: creating my own JMX Server
I'm sorry but WHERE is placed a mentioned above User Forum :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950105#3950105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950105 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: creating my own JMX Server
Here where I moved the post. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950107#3950107 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950107 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: creating my own JMX Server
thanks - but give me link please I cannot find such topic or what is it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3950126#3950126 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950126 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: creating my own JMX Server
Moved to user forum. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949866#3949866 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949866 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - No login available for security service
Windows 2003 SP1 (Popup blocker off), j2sdk1.4.2_11, JRE Std Ed 1.5.0_07-b03, JBoss 4.0.4 GA I enabled security service for the jmx-console, but I never get prompted for a login. So when I try to access the jmx-console, I get: HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. Apache Tomcat/5.5.17 I followed the Quick Tour documentation for securing the jmx-console: 1) deploy\jmx-console.war\WEB-INF\jboss-web.xml I uncommented: security-domainjava:/jaas/jmx-console/security-domain 2) deploy\jmx-console.war\WEB-INF\web.xml I uncommented the securityconstraint section. 3) deploy\jmx-console.war\WEB-INF\classes\jmx-console-roles.properties myuser=JBossAdmin,HttpInvoker 4) deploy\jmx-console.war\WEB-INF\classes\jmx-console-roles.properties myuser=password What do I need to do to get the login? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949884#3949884 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949884 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem obtaining MBeanServerConnection object
This code worked for me: | Properties env = new Properties(); | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, | org.jboss.naming.HttpNamingContextFactory); | | env.setProperty(Context.PROVIDER_URL, | http://[hostname]:8080/invoker/JNDIFactory;); | | Context ctx = new InitialContext(env); | | MBeanServerConnection server = (MBeanServerConnection) ctx.lookup(jmx/invoker/RMIAdaptor); | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949155#3949155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949155 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem obtaining MBeanServerConnection object
Problem resolved: It turns out that the problem had nothing to do with lack of a security manager. The problem was that I did not have all the jar files required in my classpath. The jar files are contained in the [jboss_home]/server/messaging/lib directory. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949172#3949172 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949172 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem obtaining MBeanServerConnection object
I wonder if your problem is more related to the part of the error message that states no security manager: RMI class loader disabled. I ran into something like this a couple of weeks ago and had to read up about security managers and the java.policy file and other such fun topics. Googling the portion of the error text I quoted should lead you to several web pages that attempt to explain the problem and how to fix it. (If I ever find the code I had this problem with I will post what I did to get around the problem. I vaguely recall declaring a security manager in my Java code and providing an alternate java.policy file.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949171#3949171 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949171 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Problem obtaining MBeanServerConnection object
Unfortunately, that doesn't work for me. This property: env.setProperty(Context.INITIAL_CONTEXT_FACTORY, | org.jboss.naming.HttpNamingContextFactory); causes the following exception: org.jboss.naming.HttpNamingContextFactory);javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.HttpNamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory] In my original post, I neglected to mention the jndi property settings I'm using. They are defined in a jndi.properties file. Setting the properties in the code instead, I have: | Properties properties = new Properties(); | properties.put( | Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | properties.put( | Context.PROVIDER_URL, | jnp://localhost:1099); | properties.put( | Context.OBJECT_FACTORIES, | org.jboss.naming:org.jnp.interfaces); | InitialContext ic = new InitialContext(properties); | MBeanServerConnection p = |(MBeanServerConnection)ic.lookup(jmx/invoker/RMIAdaptor); That produces the same exception: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no security manager: RMI class loader disabled)] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:729) Any ideas? Thanks, Barry View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949158#3949158 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949158 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Unable to get the services of the Beans...
Hi team jboss, I am actually working with XMOJO API's and adventnet's adaptor and want to deploy my application in the jboss environment. Even though I am able to register the MBeans I am not able to get the service of those Beans. Should I be doing some configuration with the JBoss's configuration files for this to happen. Please let me know if so. And give me a link where in i can find a similar application. I would also like to make clear in this regard that I am trying to modify the values in a properties file. This is placed in the classes folder of a war file. Will this be the reason for my Bean to not respond. If so what can be the remedy. Hoping to get the replies soon. Thanks Regards, Srivathsa.K View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949080#3949080 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949080 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Problem obtaining MBeanServerConnection object
Please help! I am using JBoss 4.0.4.GA and JBoss Messaging 1.0.1.CR2. I am trying to create Messaging queues dynamically. To do this requires that I get a handle to the jmx/invoker/RMIAdaptor MBeanServerConnection object. The following code, taken from a JBoss provided example, is causing an exception: | InitialContext ic = new InitialContext(); | MBeanServerConnection p = |(MBeanServerConnection)ic.lookup(jmx/invoker/RMIAdaptor); The exception generated is: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no security manager: RMI class loader disabled)] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:729) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588) at javax.naming.InitialContext.lookup(InitialContext.java:351) ... I would appreciate it if someone could explain how to correct this! Thanks, Barry View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949144#3949144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949144 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Why is jboss.management.local missing in the EJB3 profil
Thanks for the reply! I am working on the JBoss plugin for the NetBeans IDE and I would like to show the web and ejb modules which are the part of some EAR etc. I am able to get some information from the jboss.web and jboss.j2ee but it is not sufficient for this task. I must take into account that the users have the EJB3 profiles without jboss.management.local package installed. So, I am curious why the management package is missing, whether it is the intent even for the future releases or whether it could be added into the EJB3 installation profile. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948652#3948652 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948652 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Why is jboss.management.local missing in the EJB3 profil
http://jira.jboss.com/jira/browse/JBINSTALL-44 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948723#3948723 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948723 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - JMX RMI Connector from JDK1.5
Hi, I'm interested in using JMX RMI connector from JDK1.5 to make remote connections and invocations from JBOSS MBeans. Does JBOSS4.0.2 support JDK1.5 for this purpose? There is also a download for JavaTM Management Extensions (JMXTM) Remote API reference implementation, can I use this to create a client and expect it to connect to JBOSS server using the RMI connector? Thanks. Wen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948787#3948787 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948787 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: JMX RMI Connector from JDK1.5
Yes, you can easily write a Java app to access MBeans within JBoss, and you don't need JDK 5 to do it. Here is some simple code that prints out the attribute value of a particular mbean: package foo.bar; | import java.util.Hashtable; | import javax.management.MBeanServerConnection; | import javax.management.ObjectName; | import javax.naming.Context; | import javax.naming.InitialContext; | public class MBean { | public static void main(String[] args) throws Exception { | Hashtable env = new Hashtable(); | String factory = org.jnp.interfaces.NamingContextFactory; | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); | String url1 = jnp://localhost:1099; | env.put(Context.PROVIDER_URL, url1); | Context ctx = new InitialContext(env); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); | ObjectName name = new ObjectName(jboss.jca:name=ds/ProductDS,service=ManagedConnectionPool); | Object val = mconn.getAttribute(name, InUseConnectionCount); | System.out.println(name + \n\tInUseConnectionCount= + val); | } | } Note that the MBeanServerConnection is accessed via JNDI, and not via a JMXServiceURL. (My search for a way to use a JMXServiceURL never turned up any schemes that worked.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948793#3948793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948793 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: JMX RMI Connector from JDK1.5
Hi Peter, Thanks for the suggestion. Do you by any chance know if this approach is applicable across different JMX containers, for example, WebLogic Server? Anther issue might be the registration of notifications remotely -- can I register for notifications remotely with the MBeanServerConnection obtained in this manner? The other reason I'd like to use native JMX RMI connector is that I can access other JMX container as well. It appears remoting service from JBOSS 5 might be the answer to this. see http://wiki.jboss.org/wiki/Wiki.jsp?page=JMX_Remoting_service_configuration I'm not sure when this feature will be backported into JBOSS4.x though. Thanks. Wen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948802#3948802 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948802 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: JMX RMI Connector from JDK1.5
Will this approach work with other app servers? Probably. I am in the middle of preparing a presentation for a conference in December (paper deadline is June 16th!) and I cover JMX (which is why I had a small example app already prepared). I was going to try it with other app servers so I could give the audience some ideas on accessing other app servers, though that won't make the deadline cuz the week of June 12 I will be partying in Vegas (I mean, attending JBossWorld and learning about all the latest JBoss-related technologies; hope my boss doesn't read this forum!) Not sure on registering for notifications, though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948805#3948805 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948805 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - XMBean and a new JDBCAttributePersistenceManager
I'm about to write a new persistence manager (JDBCAttributePersistenceManager) for XMBeans in JBoss 3.2.6+ that persists attributes of an XMBean to a database (JDBC). The manager shall use a data source (standard JBoss data source) and this should be configured in the conf/jboss-service.xml under the AttributePersistenceManager. My initial problem is how I should be able to securely get a hold of a data source within my PersistenceManager class? Looking it up from the Context, as normally is the case, presents some problems. (The actual problem is that I cannot securely get a hold of a data source in my class since the data source has not been bound yet when the AttributePersistenceManager is invoking operations on my manager (i.e. load()). I've tried to make my .sar (a XMBean) be dependent on jboss.jca:service=DataSourceBinding,name=OracleDS but this will only make sure that my XMBean is started after the OracleDS is bound. Operations like load() is called early at JBoss startup. Also, I've tried making the AttributePersistenceManager to be dependent on the same data source, resulting in that JBDCAttributePersistenceManager is not yet started). Anyone that can help me? Regards Carl View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948295#3948295 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948295 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: XMBean and a new JDBCAttributePersistenceManager
I don't think there is an easy way out. If you want to use the datasource you'll only be able to use it after it is started, and so all your related persistent xmbeans. You can have more than one persistence managers active, and override in the xmbean descriptor which one should be contacted. Since the dependencies won't work correctly (load() is called very early) you can try to put all your jdbc persisted xmbean in the deploy/deploy.last folder, maybe. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948308#3948308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948308 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - A question about the scheduler
Hi, I want to write a JMX service that upon the activation of its test method, a perioudic job will begin. I added the following lines to the jboss-service.xml: I then wrote the interface of the service: @Local @Remote public interface TestTimer { public void test(); } And then I implemented the service itself: @Service (objectName=trail:service=TestTimer) @Management(TestTimer.class) @Depends (acme:service=Scheduler) public class TestTimerMBean implements TestTimer, Schedulable { private SchedulerMBean schedulerMBean; public void test() { try { System.out.println(Hello time + System.currentTimeMillis()); MBeanServer server = MBeanServerLocator.locate(); schedulerMBean = (SchedulerMBean) MBeanProxyExt.create( SchedulerMBean.class, acme:service=Scheduler, server); if (schedulerMBean != null) System.out.println(succeeded in looking up scheduler); System.out.println(@My class name is + getClass().getName()); schedulerMBean.setSchedulableClass(getClass().getName()); schedulerMBean.setInitialRepetitions(20); schedulerMBean.setInitialStartDate(NOW); schedulerMBean.setSchedulePeriod(2000); schedulerMBean.start(); schedulerMBean.startSchedule(); } catch (Exception e) { e.printStackTrace(); } } public void perform(Date arg0, long arg1) { // TODO Auto-generated method stub try { File f = new File(c:\\sched.txt); FileOutputStream fos = new FileOutputStream(f,f.exists()); fos.write((date is + arg0 + arg is + arg1).getBytes()); fos.close(); } catch (Exception e) { e.printStackTrace(); } } } When I deploy, I can see that there is a perioudic job that runs, but I dont see that the method perform is executed (the file c:\sched.txt is not created and i do have permissions - i also tried using system.out.println - and nothing - the jboss application server runs on my machine ) What am I doing wrong here? Thanks Yair View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948335#3948335 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948335 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Why is jboss.management.local missing in the EJB3 profil
It's probably not installed. You can add it by hand, by copying the JSR-77 Single JBoss Server Management Domain entry from the conf/jboss-service.xml of the .zip distro You'll need also the jboss-management.jar in the server/lib directory View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948513#3948513 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948513 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - More on using the thread pool - some progress and a question
Good day, I managed to created an MBean that creates an instance of the thread pool and uses it. Here is the code: @Service (objectName=trail:service=TestThreadPool) @Management(TestThreadPool.class) @Depends (jboss.system:service=ThreadPool) public class TestThreadPoolMBean implements TestThreadPool { static public class MyTask implements Runnable { public void run() { try { System.out.println(hello world!!); FileOutputStream fos = new FileOutputStream(c:\bla.txt); fos.write(hello world!.getBytes()); fos.close(); } catch (Exception e) { e.printStackTrace(); } } } ThreadPool pool; public int add(int a,int b) { return a+b; } public void doSomething() { pool.run(new MyTask()); } public void create() throws Exception { // TODO Auto-generated method stub pool = new BasicThreadPool(MyPool); /* //commented out text try { MBeanServer server = MBeanServerLocator.locate(); pool = (ThreadPool) MBeanProxyExt.create( ThreadPool.class, jboss.system:service=ThreadPool, server); } catch (Exception e) { e.printStackTrace(); throw e; } */ //end of commented out text } public void destroy() throws Exception {} public void stop() throws Exception {} public void start() throws Exception {} } As you can see, at the create method i create an instance of the BasicPool class. However, is there a away I can use the this service using lookup of the service? (you can see i tried something out in the commented code, but it doesnt work) Thanks alot Yair View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947969#3947969 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947969 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: More on thread pool MBean...what am I doing wrong?
Ok, I fixed the code @Service (objectName=trail:service=TestThreadPool) @Management(TestThreadPool.class) @Depends (jboss.system:service=ThreadPool) public class TestThreadPoolMBean implements TestThreadPool { static public class MyTask implements Runnable { public void run() { try { System.out.println(hello world!!); FileOutputStream fos = new FileOutputStream(c:\bla.txt); fos.write(hello world!.getBytes()); fos.close(); } catch (Exception e) { e.printStackTrace(); } } } ThreadPool pool; ThreadPoolMBean poolMBean; public int add(int a,int b) { return a+b; } public void doSomething() { //pool.run(new MyTask()); pool = poolMBean.getInstance(); if (pool == null) System.out.println(null thread pool!); else pool.run(new MyTask()); } public void create() throws Exception { // TODO Auto-generated method stub //pool = new BasicThreadPool(MyPool); try { MBeanServer server = MBeanServerLocator.locate(); poolMBean = (ThreadPoolMBean) MBeanProxyExt.create( ThreadPoolMBean.class, jboss.system:service=ThreadPool, server); if (poolMBean != null) System.out.println(succeeded in looking up the thread pool mbean); } catch (Exception e) { e.printStackTrace(); throw e; } } public void destroy() throws Exception { // TODO Auto-generated method stub } public void stop() throws Exception { // TODO Auto-generated method stub } public void start() throws Exception { // TODO Auto-generated method stub } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948066#3948066 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948066 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Monitoring Active HTTP Sessions
Does anyone know a JMX bean/attribute to get the number of active http sessions? I've had quite a look through the tree but can't seem to find anything. The best thing i can come up with is the tomcat status page, which only shows the current requests. Thanks, Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3948269#3948269 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948269 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - JBoss thread pool
Good day all. I'm trying to figure out how to use JBoss BasicThreadPool - we would like to use a thread pool at our application. I looked for some source code, but in vein. What is the proper way to use this MBean? (we're intrested in having several tasks that will be pooled) Thanks Yair View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947651#3947651 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947651 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - More on thread pool MBean...what am I doing wrong?
Good day. I deployed the EJB3 trailblazer (JBoss 4.04 RC1) including the calculator MBean and managed to write a client that activates the calculator. Now, I decided to take one step futher. In my tester class i wrote a static class called MyTask that implements Runnable and Serializable and looks like this: public static class MyTask implements Runnable, Serializable { private static final long serialVersionUID = -1575628286339248259L; public void run() { System.out.println(hello!); } } I then wrote the following code to get a thread pool (I found there are two thread pools by browsing with JBoss JMX-Console) Object o = ctx.lookup(jmx/invoker/RMIAdaptor); MBeanServerConnection mbsc = (MBeanServerConnection)o; ObjectName objName = new ObjectName(jboss.system:service=ThreadPool); if (mbsc.isRegistered(objName)) { ObjectInstance objInstance = mbsc.getObjectInstance(objName); if (objInstance != null) { System.out.println(got object instance); System.out.println(objInstance.getClassName()); System.out.println(objInstance.getObjectName()); o = MBeanServerInvocationHandler.newProxyInstance(mbsc, objName,ThreadPool.class,false); if (o != null) { System.out.println(created proxy!); ThreadPool threadPool = (ThreadPool)o; threadPool.run(new MyTask()); } } } I get the following exception: java.lang.IllegalStateException: getArguments failed at org.jboss.invocation.MarshalledInvocation.getArguments(MarshalledInvocation.java:513) at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:235) at sun.reflect.GeneratedMethodAccessor62.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) . My question is - what am I doing wrong here? How can I use the thread pool to execute one task from the client side? is this because the client is not running on the same VM ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947685#3947685 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947685 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: More on thread pool MBean...what am I doing wrong?
thread pools are not usable outside of the server jvm. Use an mdb, jms, or ejb3 asynch extension to run a task on the server. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947773#3947773 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947773 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - XMBean from EJB3 session bean?
I'm trying to create an XMBean from a EJB3 session bean. I've got my sar deploying with my ear and can see the method I wish to expose in the jmx console in JBoss (AS 4.0.4 CR2) but when I invoke the method, I get a handleInvocationExceptions exception with the root cause being a null pointer exception. Can this work? Maybe the session is not being instantiated properly? I'm not sure how to debug this, so any help is appreciated. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947824#3947824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947824 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: More on thread pool MBean...what am I doing wrong?
Thank you for the comment, but besides this, is my code correct? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947920#3947920 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947920 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: org.jboss.varia - Where is it?
server/default/lib/scheduler-plugin.jar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947163#3947163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947163 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user