Merge revision 980735 from trunk into the 1.6.1 branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@988721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee5141ec4c
commit
cef9c8bdbc
1 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@ public class TransportServiceInterceptor implements Interceptor {
|
|||
}
|
||||
|
||||
public Message invokeResponse(Message msg) {
|
||||
JMSBindingContext context = msg.getBindingContext();
|
||||
try {
|
||||
|
||||
//if operation is oneway, return back.
|
||||
|
@ -123,7 +124,6 @@ public class TransportServiceInterceptor implements Interceptor {
|
|||
return msg;
|
||||
}
|
||||
|
||||
JMSBindingContext context = msg.getBindingContext();
|
||||
Session session = context.getJmsResponseSession();
|
||||
javax.jms.Message requestJMSMsg = context.getJmsMsg();
|
||||
javax.jms.Message responseJMSMsg = msg.getBody();
|
||||
|
@ -168,12 +168,13 @@ public class TransportServiceInterceptor implements Interceptor {
|
|||
producer.send((javax.jms.Message)msg.getBody());
|
||||
|
||||
producer.close();
|
||||
context.closeJmsResponseSession();
|
||||
|
||||
return msg;
|
||||
|
||||
} catch (JMSException e) {
|
||||
throw new JMSBindingException(e);
|
||||
} finally {
|
||||
context.closeJmsResponseSession();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue