-
1. Re: RemoteAdaptorInvocationHandler - No Serializer Error
cbuckley Jun 29, 2004 12:11 PM (in response to cbuckley)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);