How to see records locked by a port in Jbase

瀏覽次數:248 次
跳到第一則未讀訊息

JOSE L MARTINEZ-AVIAL

未讀,
2021年6月15日 下午1:41:122021/6/15
收件者:jb...@googlegroups.com
Hello,
   Is there anyway I can get a list of tables/records locked by a port in Jbase?

thank you

JL

Jim Idle

未讀,
2021年6月16日 凌晨2:10:002021/6/16
收件者:jBASE

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/CAHB4ARuhvHw5Xqowr2PppX%3DkLqxYAnfpTMF0BqswkJ9No6V28g%40mail.gmail.com.

bdeck...@gmail.com

未讀,
2021年6月16日 上午10:34:042021/6/16
收件者:jBASE
jBASE also allows you to query the lock table as if it was a file using normal query techniques.  This was implemented using jBASE's database abstraction model called jEDI.  This jEDI is called the jLock JEDI.  You can read all about it here:  https://docs.zumasys.com/jbase/record-locking/locking-models/#using-the-lock-jedi-to-display-and-clear-locks

Jim Idle

未讀,
2021年6月17日 凌晨2:10:192021/6/17
收件者:jBASE
I object to those example programs using Greg and not FB. What is the world coming to when age old traditions are violated willy nilly?


bdeck...@gmail.com

未讀,
2021年6月17日 上午10:01:092021/6/17
收件者:jBASE
The Zumasys influence has made jBASE a much kinder and gentler product :-)

Jim Idle

未讀,
2021年6月18日 凌晨12:01:522021/6/18
收件者:jBASE
Going to the dogs mate! ;)

Good luck!

Jim



Joshua Camacho

未讀,
2021年6月18日 下午4:41:342021/6/18
收件者:jb...@googlegroups.com
SHOW-ITEM-LOCKS

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/CAHB4ARuhvHw5Xqowr2PppX%3DkLqxYAnfpTMF0BqswkJ9No6V28g%40mail.gmail.com.
--

Robert Burke

未讀,
2021年6月18日 下午4:41:442021/6/18
收件者:jBASE
Hi Jose,

You can view jBASE record locks by using the list-item-locks command. You can also view the lock table held by the jBASE distributed lock service by using the jdls -dvL command.

Thanks,
Robert Burke 

JOSE L MARTINEZ-AVIAL

未讀,
2021年6月21日 上午11:42:532021/6/21
收件者:jb...@googlegroups.com
Hello all,
  thanks for the feedback. Actually what I meant was to ask how we can programmatically get the list of items that are locked. I know we can use show-item-locks from the command line, but I want to be able to do it programmatically.

Thanks

JL

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.

Mvreply

未讀,
2021年6月21日 上午11:55:062021/6/21
收件者:jb...@googlegroups.com

Jose,

The link previously supplied:

 

https://docs.zumasys.com/jbase/record-locking/locking-models/#using-the-lock-jedi-to-display-and-clear-locks

 

has examples of jBASE Dynamic Objects (jabba) code being used to obtain details of all locks.

 

See the section on “Finding and reporting record locks”.

 

You must be running a current version of jBASE however -> 5.7.10 or later.

 

Mike

bdeck...@gmail.com

未讀,
2021年6月21日 中午12:09:282021/6/21
收件者:jBASE
While the object interface example depicted in the link provided previously is the best option, you can still use the old-style EXECUTE/CAPTURE and then parse methods of old to provide a programming API of your own.

See the JBC Execute command here:

and take note of the section on the "CAPTURING" clause.

-BD

Jim Idle

未讀,
2021年6月22日 凌晨12:45:402021/6/22
收件者:jBASE
It sounds very likely to me that you will get more useful answers if you tell us what you are trying to achieve, rather than how to do something.

For instance, why do you need to get the information programmatically? What do you intend to do with the information? Are you trying to track down some application issue? 

Perhaps there are better ways to do what you are trying to do.

JOSE L MARTINEZ-AVIAL

未讀,
2021年7月1日 下午6:29:082021/7/1
收件者:jb...@googlegroups.com
Hello Jim,
  Yep, you are correct. We are using T24 over TAFC. We have some programs that create Funds Transfer, but before creating them the program makes sure nobody is locking one particular account by doing a READU over the account. If the account is locked we do a sleep for a few seconds and try again, until we reach a limit and desist, or the account is unlocked. We are able to pinpoint the port and user that is locking the account, but not the Funds Transfer ID he/she is processing at that moment. We can check it by doing the show-item-locks, but we are looking for a way to do it programmatically so we can retrieve the FT record involved in the lock.

JL

Mvreply

未讀,
2021年7月1日 下午6:33:082021/7/1
收件者:jb...@googlegroups.com

Jose,

In that case, you are not going to get any meaningful answers out of this group, as the code base for the Zumasys/jBASE version is different to that for the Temenos/jBASE one.

 

Mike

 

From: jb...@googlegroups.com <jb...@googlegroups.com> On Behalf Of JOSE L MARTINEZ-AVIAL


Sent: 01 July 2021 23:28
To: jb...@googlegroups.com

Rick Weiser

未讀,
2021年7月2日 下午2:21:002021/7/2
收件者:jBASE
Hi Jose,

As Mike states, this forum is not for T24/Temenos questions.  You will need to contact Temenos for these type questions.

Rick

Jim Idle

未讀,
2021年7月4日 晚上11:34:032021/7/4
收件者:jBASE
I should think that T24 keeps that information somewhere outside the locking system. There is, or was, an F.LOCKED file for instance. It also seems that perhaps T24 is too granular (or maybe it has to lock the whole account). So, you will find out that a port/user has a lock taken, but the Fund Transfer ID is a different record to the account record I presume? If the account being locked prevents any other account processing, then maybe that fund transfer isn't even locked? 

I think that you are better asking T24 support for sure as I bet that there are application routines that you can call to find this out.

However, a more philosophical question is "Why do you need to know this?" - if the account is locked, then you either wait for it not to be, or you do not. I am not sure why knowing the funds transfer that someone else is working on benefits anyone? However, I do not know what your code is doing or who is to use it of course, so maybe it is useful information. HOnestly though, I would just use SHOW-ITEM-LOCKS and parse the output. I believe it has a -m option for machine output, expressly for this purpose. 

Jim



回覆所有人
回覆作者
轉寄
0 則新訊息