Skip to content

Commit

Permalink
set appname again on reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
tomweber-sas committed Apr 26, 2018
1 parent f3a89ac commit 00b0880
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Binary file modified saspy/java/pyiom/saspy2j.class
Binary file not shown.
7 changes: 7 additions & 0 deletions saspy/java/pyiom/saspy2j.java
Expand Up @@ -274,6 +274,10 @@ else if (eol.contains("ENDSAS"))
{
server = (BridgeServer) Server.fromURI(uri);
ad = server.getDomain();

if (appName != "")
server.setServerName(appName.replace("\'", ""));
server.setOption(SASURI.applicationNameKey, "SASPy");

cxfConfig = new ManualConnectionFactoryConfiguration(server);
cxfManager = new ConnectionFactoryManager();
Expand Down Expand Up @@ -536,6 +540,9 @@ private static void connect(boolean recon, boolean ods, boolean zero) throws IOE
{
server = (BridgeServer) Server.fromURI(uri);
ad = server.getDomain();
if (appName != "")
server.setServerName(appName.replace("\'", ""));
server.setOption(SASURI.applicationNameKey, "SASPy");

cxfConfig = new ManualConnectionFactoryConfiguration(server);
cxfManager = new ConnectionFactoryManager();
Expand Down
Binary file modified saspy/java/saspyiom.jar
Binary file not shown.

0 comments on commit 00b0880

Please sign in to comment.