Re: jboss 4.x deployment and JSR160

"Simone Bordet" <[email protected]>
Newsgroups gmane.comp.java.mx4j.user
Message-ID <[email protected]>
Hi,

> > I am not sure what limitations you see, but I would guess that using
> > MX4J in JBoss is very difficult.
>
> the limition of JBossMX is that it does not currently support JSR160.

Oh. I did not know this.

> It is not clear when it will support it. The need for fine grained
> authenticication is driving this investigation.

I see.

> > I am not sure what do you exactly mean by "deploying MX4J".
>
> by deploying i refer to the process of making MX4J the JMX server within
> JBoss. Hence allowing JMX clients to access the MX4J JSR160 functionality
> of the deployed MBeans.
>
> Is this not correct?

It is correct, now it's more clear to me what you're trying to achieve.

As I said, the process may be really difficult, but I would try a wild
guess as follows:

Put the mx4j jars in the boot classpath (-Xbooclasspath/p:) before any
other jar, so the JMX implementation picked up is mx4j and not
jbossmx, then restart JBoss.

Check if in script files you see a reference to the system property
javax.management.builder.initial. If there is one pointing to some
JBossMX class, try to replace it with mx4j's one (see here:
http://mx4j.sourceforge.net/docs/ch02s07.html).

Another wild guess is as follows:

Find the jbossmx jar in the jboss installation directories and rename
it as jbossmx_old or something like that.

Prepare a jar containing mx4j jsr3 and jsr160 classes and name it as
it was named the jbossmx jar. This is to ensure that if the jbossmx
jar is referenced by Class-Path entries in manifest, or in script
files, it will continue to work.

Restart JBoss; if you see an exception such as ClassNotFoundException
and the class name has package org.jboss.mx, then it means that JBoss
references some implementation class; you can try to isolate them and
add them to the fake jbossmx jar containing mx4j.

Hope helped,

Simon
-- 
http://bordet.blogspot.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.