Login Issues From Jiwa Web Api

Discussions relating to the REST API of Jiwa 7.

Re: Login Issues From Jiwa Web Api

Postby Mike.Sheen » Wed Feb 06, 2019 11:42 am

A quick way of counting SQL connections for a particular DB and Application - just edit the WHERE clause as required:

Code: Select all
DECLARE @WhoTable TABLE(
        SPID INT,
        Status VARCHAR(MAX),
        LOGIN VARCHAR(MAX),
        HostName VARCHAR(MAX),
        BlkBy VARCHAR(MAX),
        DBName VARCHAR(MAX),
        Command VARCHAR(MAX),
        CPUTime INT,
        DiskIO INT,
        LastBatch VARCHAR(MAX),
        ProgramName VARCHAR(MAX),
        SPID_1 INT,
        REQUESTID INT
)

INSERT INTO @WhoTable EXEC sp_who2

SELECT  *
FROM    @WhoTable
WHERE DBName = 'ApiJiwaComAu'
AND ProgramName = 'Jiwa Financials'
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Login Issues From Jiwa Web Api

Postby SBarnes » Wed Feb 06, 2019 11:55 am

There are 75 open api sessions and 111 from sp_who2
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Login Issues From Jiwa Web Api

Postby Mike.Sheen » Wed Feb 06, 2019 12:04 pm

SBarnes wrote:There are 75 open api sessions and 111 from sp_who2


75 api sessions seems excessive. Are you using username + password auth, api key auth or a mix?
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Login Issues From Jiwa Web Api

Postby SBarnes » Wed Feb 06, 2019 12:15 pm

It uses username and password only, there is a JsonServiceClient per user of the site which is used to avoid the slowness of the login process of the api.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Previous

Return to REST API

Who is online

Users browsing this forum: No registered users and 2 guests