We have license up to 25 COM users.
First, the Java application did logon and then logout, but we had problem of COM Users not being correctly disconnected from Axapta, and the system would quickly show the message of limit of COM Users licenses exceeded.
So, now we make a pool of 10 connections. When a connection is open, if COM session doesn't exist, it's initializated. When the operations are ended, the sessuib is NOT closed, but maintaned for the next operations needed (of course, the connections are managed to do so).
We have seen that when several COM sessions are opened, only a COM user is seen in Users online (this is, it's as if first connection were the father of the resto of COM sessions). We thougth we found the problem, but we created several different COM Users, and each connection used only of them, and in Users Online they were seen as different users; But, when inserting several records concurrently in same table, some recids were inserted several times at same time . Of course, the same record isn't inserted two times.
The Java application is used to create sales orders, customers, etc, in real time from several points in the country. There's a maximum of 10 users at same time, but the error (could not insert a record in table X. Record already exists) appears sometimes.
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
| "Bayliss, Barry"
<[EMAIL PROTECTED]>
10/03/2005 23:37
|
|
Raul,
We had a problem with the COM connector in the past. We found that you were unable to completely close a COM connection (you had to exit the application in order for the COM to close correctly, as recognised by Axapta). As a result, we had to rewrite the code to use 1 COM connection per application (otherwise we would run out of COM licenses).
In the end, we rewrote the code to use a server/daemon application, hence only using 1 COM connection.
How many COM connection calls are made in the Java code?
How many COM licenses do you have?
Is there a reason that all inserts need to occur at the same time?
Now that you have run the process suggested by Preston, what error are you receiving?
Barry.
From: Raul Llorente Pe�a/OPENSOLUTIONS [mailto:[EMAIL PROTECTED]
Sent: Thursday, 10 March 2005 7:16 PM
To: [email protected]
Subject: RE: RE: RE: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Hi, Barry!!
I'd like to do so, but the code is embedded in an huge Java program. I asked the Java programmers to give me the part where we made the test, and it's huge, however. Basically, it opens several COM sessions, and open a test table, and inserts 100 records in it. There's a start&sinchronization time for the loops that makes the insert, so all COM sessions (and insert loop subprocesses) begin at same time. That's that way we discovered the error.
And now I'm not physically in the customer that have that problem, so until next week I can't post it. You want it, however?
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
| "Bayliss, Barry"
<[EMAIL PROTECTED]>
09/03/2005 23:43
|
|
Raul,
Are you able to post the code that generates the error?
Barry.
From: Raul Llorente Pe�a/OPENSOLUTIONS [mailto:[EMAIL PROTECTED]
Sent: Sunday, 6 March 2005 6:54 PM
To: [email protected]
Subject: Re: RE: RE: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Yes, that solves the problem or duplicated RecId's inserted in several tables, but doesn't solve the insert-error issue...
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
-----"Preston A. Larimer" <[EMAIL PROTECTED]> escribi�: -----
Para: <[email protected]>
De: "Preston A. Larimer" <[EMAIL PROTECTED]>
Fecha: 04/03/2005 20:34
Asunto: RE: RE: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Definitely duplicate recID?s is not what you want, the menu path I gave you runs the check on recids for all of your tables and corrects issues with them being duplicated, or the SystemSequences being out of kilter, every time Axapta has throw up the unable to insert record due to a duplicate caused by the recID, via com or standard Axapta this process has fixed my problem.
Hope it helps you.
-Preston
From: Raul Llorente Pe�a/OPENSOLUTIONS [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005 3:25 AM
To: [email protected]
Subject: Re: RE: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Preston , the problem isn't that records are inserted with same RecId, but Axapta doesn't allow to do so!!
If I deactivated the system-hidden indexes of many tables, Axapta would allow it... until next sinchronization!! And remember, there are several tables based on refRecId field and similar, so possibility of incoherence if I allow to insert duplicated RecIds looks dangerous...
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
-----"Preston A. Larimer" < [EMAIL PROTECTED] > escribi�: -----
Para : < [email protected] >
De: "Preston A. Larimer" < [EMAIL PROTECTED] >
Fecha: 03/03/2005 15:39
Asunto: RE: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Try Administration\Periodic\SQL Administration\Check Record Id?s(Button)
- Preston
Preston A. Larimer
Professional Solutions Group, LLC
[EMAIL PROTECTED]
www.psgroupllc.com
-------------------------------------------------------------------------------------
Building a stronger link in the Axapta community chain, join us at
From: Raul Llorente Pe�a/OPENSOLUTIONS [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 4:03 AM
To: [email protected]
Subject: Re: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
I've got a problem. Several users via COM, using same COM session, sometimes invokes the error (Cannot insert a record in table X. The record already exists). X may be an apparently alleatory table. And I need to track so.
Tool of log of database doesn't fit this...
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
-----"Bayliss, Barry" <[EMAIL PROTECTED]> escribi�: -----
Para : < [email protected] >
De: "Bayliss, Barry" <[EMAIL PROTECTED]>
Fecha: 24/02/2005 23:26
Asunto: RE: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
Hello Raul,
Why is it that you need to find the recID for before the insertion?
Barry.
From: Raul Llorente Pe�a/OPENSOLUTIONS [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 February 2005 3:08 AM
To: [email protected]
Subject: [Axapta-Knowledge-Village] How can I find what RecId will be the next to be used?
How can I find what RecId will be the next to be used, before inserting a record and without accessing the table of RecIds (SystemSequences)?
Ra�l Llorente Pe�a
An�lisis, Desarrollo e Implementaci�n en
Microsoft Bussiness Solutions-Axapta
OPEN SOLUTIONS
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
|
Yahoo!
Groups Sponsor
| |
|
| |
Yahoo! Groups Links
- To visit your group on the web, go
to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send
an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
|
Yahoo! Groups Sponsor
| |
|
| |
Yahoo! Groups Links
- To visit your group on the web, go
to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send
an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Sharing the knowledge on Axapta.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

