-
1. Re: Reading Object in the interceptor
ffang Nov 28, 2012 5:09 AM (in response to ranajitjana)Hi,
Not really sure what you mean here.
But if you want pull the parameter as Object list, you can add a interceptor after Phase.UNMARSHAL and use code like
message.getContent(List.class)
Freeman
-
2. Re: Reading Object in the interceptor
ranajitjana Nov 28, 2012 9:45 AM (in response to ffang)Thank you Freeman,
I want to get the Object which gets passed to the method.
I used the following line in my code for the UNMARSHAL phase
List lst = message.getContent(List.class);
The value is coming as null when I debug.
Regards,
Ranajit
-
3. Re: Reading Object in the interceptor
ffang Nov 28, 2012 10:37 PM (in response to ranajitjana)Hi,
I mean after UNMARSHAL phase, like PRE_INVOKE.
Freeman
-
4. Re: Reading Object in the interceptor
ranajitjana Nov 29, 2012 6:29 AM (in response to ffang)Thankyou Freeman,
I got the object in PRE_INVOKE phase.
currently using the following code.
MessageContentsList objs = MessageContentsList.getContentsList(message);
if (objs != null && objs.size() == 1) {
Object responseObj = objs.remove(0);
// ... cast the responseObj to DomainObject
}