[jboss-user] [Remoting] - Re: Remoting over https; where to put NoThrowOnError=true
ron.sigal@jboss.com
do-not-reply at jboss.com
Fri Jun 1 02:19:31 EDT 2007
Hi,
It looks like the "org.jboss.remoting.transport.http.HTTPMetadataConstants" section in Chapter 5 of the Remoting Guide is somewhat misleading. Unlike the other constants in that section, NO_THROW_ON_ERROR is used only on the client side. It is only after an Exception has been returned from the server that the value of NO_THROW_ON_ERROR is consulted. What you want to do is pass NO_THROW_ON_ERROR as follows:
| Client client = new Client(...);
| client.connect();
| Object param = ... ;
| HashMap metadata = new HashMap();
| metadata.put(HTTPMetadataConstants.NO_THROW_ON_ERROR, "true");
| client.invoke(param, metadata);
|
Sorry for the confusion.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050386#4050386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050386
More information about the jboss-user
mailing list