[Management, JMX/JBoss] - clustering jmx - noobie question
by jnl
hi all...i'm not sure this is the correct place to post this (let me know if not).
i have jmx mbean right now that processes jobs for N applications. there are about 5 different jobs that it processes. the jmx mbean runs in a single jboss/vm instance currently.
we're going to be moving to a clustered environment. i'm wondering if someone can point me to some documentation on what issues i may encounter.
one of my concerns is how the jmx bean won't 'crash' into each other. for example, if one instance is processing a job, how does the other jmx bean instances know not to process the same job.
maybe my question(s) are off base (my bad). i'm trying to figure out the issues involved (and coding/configuration changes) moving to a clustered environment.
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174401#4174401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174401
17 years, 8 months
[EJB 3.0] - EJB3 References (ejb-ref)
by triumphthepup
We're deploying an EAR with an EJB jar in it. We're then trying to access those EJBs from another WAR (standalone, not in the EAR) in the same JBoss instance. I'm having a difficult time finding documentation on what the "proper" JEE approach is for how servlets etc. in the separate WAR should be getting ahold of those EJBs.
I can successfully get ahold of the EJBs from the separate WAR using the Global JNDI name for example....
| InitialContext ctx = new InitialContext();
| SimpleService service = (SimpleService)ctx.lookup("simple-ear/SimpleServiceImpl/local");
| etc....
|
However, if I understand correctly, according to the JEE / EJB3 specs I should have ejb-local-ref entries in my war.xml etc. for mapping to logical names, etc. I've read the spec but it's not clear how much of that is required for EJB3 vs. legacy stuff from EJB2.
I can't seem to find a simple example of what all of the proper configuration elements are for doing this in JBoss (4.2.3). It sounds like I need an ejb-jar.xml in my EAR and entries in my web.xml in my WAR?
Can anyone suggest some straight forward examples / documentation that illustrate what I'm trying to do? Thanks!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174400#4174400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174400
17 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: jboss-4.2.3.GA with MySQL Server 5.0 configuration probl
by dan jboss
"PeterJ" wrote : It appears that you did not install JBoss Messaging properly. How did you install it? (I asked this before, you never answered.) Did you run the installation script that comes with it?
|
| Yes, I ran the command:
|
| ant -f release-admin.xml -Dmessaging.config.source=all -Dmessaging.config.name=jms
|
| The error you are getting is due to pieces of JBossMQ still being present.
|
| To install JBoss Messaging and convert it to use MySQL, you need to:
|
| 1) Run the install script, [jboss_messaging]/util/release-admin.xml, it will remove JBossMQ and copy all the files to support JBoss Messaging. (I tried to find the notes for how to run this but did not see them, they are not in the readme.html but they might be on the wiki.)
|
| Did that.
|
| 2) Create a *-ds.xml file for MySQL (instructions are in the wiki, I already gave you the link). Do NOT use "DefaultDS" as the JNDI name unless you want to make a lot of other configuration changes; use amother name such as "MessagingDS".
|
| Did that.
|
| 3) Replace the deploy/jboss-messaging.sar/hsqldb-persistence-service.xml file (I hope I got this directory name correct) with the mysql-persistence-service.xml file from the [jboss_messaging]/examples/config directory. Edit this file to use the JNDI name you chose in step 2. The name appears several time, you will have to change it in every location.
|
| Did that. I can see the jbm_* tables created in the database.
|
| I still see the following error:
|
| 10:25:44,501 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA'
| to JNDI name 'java:JmsXA'
| 10:25:44,597 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.3.GA/server/jms/deploy/jms-ds.xml
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.messaging:service=ServerSessionPoolMB
| ean,name=StdJMSPool
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
|
| in addition to the socket warnings in my previous message.
|
| Would you recommend that I reinstall JBoss and do it all over?
| Thanks a lot.
|
| Dan
|
|
|
| I think that is it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174392#4174392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174392
17 years, 8 months