When helloorld-mbean quickstart is deployed using JBDS, there are only 3 mbeans in JConsole, not 4 as when deployed using Maven: * AnnotatedComponentHelloWorld * MXComponentHelloWorld * MXPojoHelloWorld There are no further instructions how to deploy the quickstart using JBDS. I tried Run on Server on jboss-helloworld-mbean-helloworld-mbean-webapp because this is the only one with that option.
In JBDS, you can only deploy the helloworld-mbean-webapp project, which contains the 3 beans that display. You can not deploy the helloworld-mbean-service project which contains the SarMXPojoHelloWorld bean. This is why it doesn't appear. I need to look at the packaging for this quickstart to see how to work around this.
Only war,ear and ejb type projects can be deployed on a JBoss server using Run As > Run on Server
I see helloworld-mbean-service is a jboss-sar type https://github.com/jboss-developer/jboss-eap-quickstarts/blob/6.4.x-develop/helloworld-mbean/helloworld-mbean-service/pom.xml#L27 There's a sar project configurator for m2e that adds the Sar Facet that should make it deployable. I need to investigate what happens.
Please open a ticket in JIRA also try installing the JBoss Tools Maven Packaging configurator from JBoss Central>Software/Updates. Then update the Maven project configuration. Chances are I need to add that configurator to the M2e discovery catalog
Created this JIRA: https://issues.jboss.org/browse/JBIDE-19265. I now see 'Run As` --> `Run on Server` for the service, but I get differing results. It's not clear that I am deploying it correctly. This is what I'm doing: 1. Right-click on the `helloworld-mbean-helloworld-mbean-service` project and choose `Run As` --> `Run on Server`. 2. Right-click on the `helloworld-mbean-helloworld-mbean-webapp` project and choose `Run As` --> `Run on Server`. 3. Start JConsole and test. The first time I did this, I only saw the SarMXPojoHelloworld bean. I started with a fresh server and now I see nothing. I don't see any log messages in the console when I deploy either archive.
Fred, I can now do the `Run As` --> `Run on Server` for the service, but I can't figure out how to get this to deploy all the MBeans. Now, deployment of the SAR seem to work and I see the SarMXPojoHelloWorld MBean. Deployment of the WAR no longer deploys the other 3 MBeans.
I tried this with a new workspace and it worked. Updated the instructions in this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/78f1b070aa746cdccff029bb754823ad39ee07ba
Just a minor issue: An EAP server must be added before step "Right-click on the helloworld-mbean-helloworld-mbean-service project and choose Run As –> Run on Server. " can be performed. The rest works fine, thank you.
Nikoleta, I don't believe I specify that step in any of the README file. Instead, I point them to the the shared JBDS page [1] for the common instructions and only provided details where it varies. I don't want to repeat those common instructions over and over. That's the purpose of the shard page. Can you please confirm? [1] https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#use-jboss-developer-studio-or-eclipse-to-run-the-quickstarts
Nikoleta, since this change impacts all the quickstart README files, I propose we leave this one to ON_QA and create a new bug to track the changes to the JBDS instructions. Does that work for you?