[Management, JMX/JBoss] - Naming parameters in a management bean using annotations
by jimmycallaghan
How can I name the parameters in my Managent bean so that they show up in the MBean view with useful names instead of p1 and p2?
My MBean interface looks like this:
import org.jboss.annotation.ejb.Management;
|
| @Management
| public interface MyServiceMBean
| {
| public String showCustomerDetails(String accountNumber);
|
| public String getPathToMessageRequestDefinitionXML();
|
| public String getPathToMessageResponseDefinitionXML();
| }
My implementing class looks like this:
@Service(objectName = "myservice:service=MyServiceMBean")
| public class MyServiceMBeanImpl implements MyServiceMBean
| {
|
| public String getPathToMessageRequestDefinitionXML()
| {
| return "some text";
| }
|
| public String getPathToMessageResponseDefinitionXML()
| {
| return "some text";
| }
|
| public String showCustomerDetails(String accountNumber)
| {
| // code removed.
| return "some text";
| }
| }
I'd imagine that there's a simple annotation I can put on the interface methods to define the parameters but, for the life of me, I cannot find a single reference out there that shows me how.
Appologies if I'm missing the obvious.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187633#4187633
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187633
17 years, 5 months
[Beginners Corner] - Re: JBoss Server hangs before
by pxstein
"PeterJ" wrote : Which configuration are you running (that is, what is the run command line you are using)? What changes have you made to the configuration? Is this the first time you brought up EAP?
|
| Is the java process showing any CPU usage? In other words, does it look like it is looping or does it look like it is waiting on something?
|
| What are the last dozen or so lines in the server.log?
"production" configuration
simply "run.bat" with no parameter
No configuration changes were made
It is the first time of starting EAP through run.bat. However I started successfully the server already dozend of times through Eclipse.
Approx 20 second after the last line output CPU usage is observable. Then it turns to zero.
Last lines in server.log see bottom.
However some hundreds line above the last server.log line the following exception can be seen:
2008-11-07 10:03:22,950 DEBUG [org.jboss.system.ServiceController] starting service jboss.messaging:service=PersistenceManager
2008-11-07 10:03:22,950 DEBUG [org.jboss.messaging.core.jmx.JDBCPersistenceManagerService] Starting jboss.messaging:service=PersistenceManager
2008-11-07 10:03:22,982 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] Failed to execute: CREATE TABLE JBM_DUAL (DUMMY INTEGER, PRIMARY KEY(DUMMY))
java.sql.SQLException: Table already exists: JBM_DUAL in statement [CREATE TABLE JBM_DUAL]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:237)
at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:301)
at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)
.....
......
approx 1000 lines
....
....
2008-11-07 10:03:31,825 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/farm/cluster-examples-service.xml
2008-11-07 10:03:31,825 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: cluster-examples-service.xml
2008-11-07 10:03:31,825 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/farm/cluster-examples-service.xml
2008-11-07 10:03:31,825 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true
2008-11-07 10:03:31,825 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=FarmMember,partition=DefaultPartition dependent components: []
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: farm-service.xml
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: deploy.last
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/deploy/deploy.last/
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/deploy/deploy.last/ -> file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/deploy/deploy.last/
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true
2008-11-07 10:03:31,841 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
2008-11-07 10:03:31,841 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.deployment:type=DeploymentScanner,flavor=URL dependent components: []
2008-11-07 10:03:31,872 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jboss-service.xml
2008-11-07 10:03:31,872 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jbdev1.1.0/jboss-eap/jboss-as/server/production/conf/jboss-service.xml
2008-11-07 10:03:31,935 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.3.0.GA_CP01 (build: SVNTag=JBPAPP_4_3_0_GA_CP01 date=200804211657)] Started in 33s:860ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187621#4187621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187621
17 years, 5 months