Hi!
"Olivieri, Josiah" wrote:
> I created a custom MBean but I keep getting the following exception and have
> no idea why... any help would be grand!
>
> [CustomMBean] Initializing
> [CustomMBean] Initialized
> java.lang.IllegalArgumentException: No object name specified
<snip>
You need to specify an object name :-)
Look in jboss.jcml. Here's an example entry:
<mbean code="org.jboss.web.WebService"
name="DefaultDomain:service=Webserver">
<attribute name="Port">8083</attribute>
</mbean>
See that name parameter? You need to have that, OR, you have to
implement MBeanRegistration and choose a name inside your bean.
> I only have a couple public constructor methods, one that takes a String and
> one that takes nothing.
Only the one that takes nothing will be used if you register the MBean
through jboss.jcml.
> Also - is there a place I can go for some MBean documentation? It seems as
> though it's very sparse.
http://www.javasoft.com/products/JavaManagement/index.html
> Also also - I tried making a public constructor that takes an array of
> Strings but I got a reflection error, am I not supposed to do this?
Nope, that is not allowed. See JMX spec for details.
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]