Ehllapijni dll for Windows7 64 bit OS



Support for Java SE, EE & ME, JVM, JNI, JDBC, EJB, JFC, JPDA, JAAS,JCE, JAXP, XML and Java API.

Ehllapijni dll for Windows7 64 bit OS

Postby suganthi » Mon Nov 03, 2014 2:50 pm

We have a Java application that invokes a mainframe page.
We are using EHLLAPIJNI.dll (32bit) ,EHLLAPIDLL.jar and Attachmate to perform communication with mainframe and gather required data.
It was working fine in Windows XP 32 bit OS. When we migrated our application to Win 7 64 bit OS it is not launching the mainframe page.

Initially there was a issue- Error trying to load EHLLAPIJNI dll file. Can't find dependent libraries but when we installed Attachmate this error is resolved
Log says ehllapii dll loaded,but We are not getting the return code when we call EHLLAPI() function.
Kindly suggest if there an EHLLAPIJNI.dll for 64 bit OS or how can we use this existing 32bit dll to work in win 7 64 bit OS
suganthi
 
Posts: 5
Joined: Mon Nov 03, 2014 12:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ehllapijni dll for Windows7 64 bit OS

Postby Ed Goodman » Mon Nov 03, 2014 7:44 pm

Haven't used that version of Attachmate, but you might want to check the HLLAPI setting on it. There are some options for choose which version of HLLAPI to activate during a session. I would check the settings on an older, working machine and compare againt the newer machine.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Ehllapijni dll for Windows7 64 bit OS

Postby suganthi » Tue Nov 04, 2014 4:02 pm

Have set the Global preferences and chosen the HLLAPI short name - associated the session and selected the HLLAPI transport type as Standard as done for older version.Kindly suggest if there is any other option for chosing the version of HLLAPI in Attachmate Extra! X-treme

Thanks in advance
suganthi
 
Posts: 5
Joined: Mon Nov 03, 2014 12:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ehllapijni dll for Windows7 64 bit OS

Postby Ed Goodman » Tue Nov 04, 2014 8:13 pm

When you call the EHLLAP function, you say you don't get a return code...do you get anything at all, even a time out or a "function not available?"
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Ehllapijni dll for Windows7 64 bit OS

Postby suganthi » Wed Nov 05, 2014 5:56 pm

To Perform communication with mainframes (ie) While connecting to the presentation space (Attachmate),I am setting the session parameters with the following values
SET_SESSION_PARAMETERS = 9
sessionParams=STRLEN,SRCHALL,SRCHFRWD,AUTORESET,NWAIT
SessionParams.length() = 39
PARAM_WAIT_STATE =NWAIT ( No wait)

if (doEHLLAPI(SET_SESSION_PARAMETERS, sessionParams, sessionParams.length(), ZERO) == OK) then success
inside this we call this method,
i = EHLLAPIJNI.EHLLAPI(function, buffer, bufferSize, returnCode);it fails in this point

but no return code and no exception caught in try catch blocks
suganthi
 
Posts: 5
Joined: Mon Nov 03, 2014 12:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ehllapijni dll for Windows7 64 bit OS

Postby Ed Goodman » Wed Nov 05, 2014 7:10 pm

Is "doEHLLAPI" a function in your code, or part of the API?

It may be returning OK when nothing really happens.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Ehllapijni dll for Windows7 64 bit OS

Postby suganthi » Wed Nov 05, 2014 7:33 pm

doEHLLAPI is a function in my code.
HLLAPI(&HllFunc, HllDataStr, &HllDataLgth, &PsPos) this is the exact API call , EHLLAPIJNI.EHLLAPI(function, buffer, bufferSize, returnCode)-which is used inside my custom code.
suganthi
 
Posts: 5
Joined: Mon Nov 03, 2014 12:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ehllapijni dll for Windows7 64 bit OS

Postby Ed Goodman » Thu Nov 06, 2014 8:17 pm

Ok then....what is the return code from the ACTUAL hllapi call?
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Ehllapijni dll for Windows7 64 bit OS

Postby suganthi » Fri Nov 07, 2014 12:23 pm

I am not receiving the return code from the hllapi call
suganthi
 
Posts: 5
Joined: Mon Nov 03, 2014 12:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ehllapijni dll for Windows7 64 bit OS

Postby Ed Goodman » Fri Nov 07, 2014 7:32 pm

I have a Delphi program that uses HLLAPI, and here is the function for SetParameters:

function Set_Session_Parameters(parms : string) : Boolean;
begin
    HLLAPI_Func := HLLAPI_SET_SESSION_PARAMETERS;
    HLLAPI_Parm2 := parms;
    HLLAPI_Parm3 := Length(HLLAPI_Parm2);
    HLLAPI_Parm4 := 0; //not used for set_session_parms
    HLLAPI(HLLAPI_Func, HLLAPI_Parm2, HLLAPI_Parm3, HLLAPI_Parm4);
    if HLLAPI_Parm4 = 0 then
    begin
      Set_Session_Parameters := True;
    end else begin
      showmessage(format('Attempt to set session parms got rc %d', [HLLAPI_Parm4]));
      Set_Session_Parameters := False;
    end;
end; //Set_Session_Parameters


Notice how I'm checking the value in HLLAPI_Parm4 after the call.

If the call makes it to the DLL, but has a problem, then HLLAPI_Parm4 will have a non-zero value. If the DLL connection is not defined, then the program will get a Windows error, like "no object found" or something like that.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times


Return to Mainframe Java