Skip to content

Commit

Permalink
Fixes maintain session
Browse files Browse the repository at this point in the history
  • Loading branch information
jrrdev committed Jun 12, 2016
1 parent 6cb7298 commit a4d969f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public PortalAuthManager authManager(@Value("${mantis.auth.filepath:}") final St

@Bean
@JobScope
public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final String endpoint) throws AxisFault, MalformedURLException {
public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final String endpoint,
final PortalAuthBuilder authBuilder) throws AxisFault, MalformedURLException {

if (endpoint == null) {
throw new MalformedURLException("Mantis endpoint can't be null");
Expand All @@ -96,7 +97,7 @@ public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final St
loc.setMantisConnectPortEndpointAddress(endpoint);
final MantisConnectBindingStub stub = new MantisConnectBindingStub(new URL(endpoint), loc);
stub._setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V11);
stub.setMaintainSession(false);
stub.setMaintainSession(true);

return stub;
}
Expand Down

0 comments on commit a4d969f

Please sign in to comment.