[jboss-user] [Management, JMX/JBoss] - Array as param type when invoking an MBean

abondi do-not-reply at jboss.com
Tue Feb 12 06:49:13 EST 2008


Hello everybody,
I need to transfer a file using a byte array. How can I do this?

I mean, the MBean has a method:

public boolean fileUpload(byte[] bytes, String filename);

And I want to invoke this using:

boolean uploaded = (Boolean)(server.invoke(client, "fileUpload", params, sign));

Where params is a {byte[]}, how do I fill sign[]?

Thank you!
Andrea

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128701#4128701

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128701



More information about the jboss-user mailing list