This content has been marked as final.
Show 4 replies
-
1. Re: Problem changing an MBean attribute
dimitris Nov 13, 2007 5:49 AM (in response to francis1970)The 3rd argument is an Object[] not String[].
You can create a dynamic proxy to make things easier:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanAnEJBCallAnMBean -
2. Re: Problem changing an MBean attribute
francis1970 Nov 13, 2007 8:10 AM (in response to francis1970)Hello, thenks for your reply
I have tried changing the code as suggested....server.invoke(new ObjectName("jboss.jca:name=OracleDS,service=ManagedConnectionPool"), "BlockingTimeoutMillis", new Object[] { "5" } ,new String[] { Integer.TYPE.getName() });
but I still get the same error...........no way to get it working with this syntax ?
By the way, I'm using JBoss 4.0.5 GA on an XP box.... -
3. Re: Problem changing an MBean attribute
dimitris Nov 13, 2007 8:22 AM (in response to francis1970)..., new Object[] { new Integer(5) }, ...
-
4. Re: Problem changing an MBean attribute
francis1970 Nov 13, 2007 9:22 AM (in response to francis1970)thanks but it still doesn't work.......... :-(