For those who care. I found my own solution using "Calls"
// The connection URL.
String endpoint = "http://roosevelt/jboss-net/services/RemoteAdaptor";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
//call.setOperationName("getDefaultDomain");
//System.out.println("Default Domain: "+ call.invoke( new Object[]{}));
QName qn = new QName("http://net.jboss.org/jmx", "ObjectNameType");
call.registerTypeMapping(ObjectName.class, qn,
new ObjectNameSerializerFactory(ObjectName.class, qn),
new
ObjectNameDeserializerFactory(ObjectName.class, qn));
call.setOperationName("invoke");
Object info = call.invoke(new Object[]{
new ObjectName("jnms.test:service=HibernateTest"),
new String("runCreateObjectAndChildTxTest"),
new Object[]{"test"},
new String[]{"String"}
});
//call.setOperationName("getMBeanCount");
//Object info = call.invoke(new Object[]{});
System.out.println("Info: "+info);
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840315#3840315
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840315
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user