× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Instead of allowing the user to sign on with there own profile, you could
have the application use its own specific profile.

Your other option to get away from handing out i5 profiles or include them
in the application is to use a different medium than ODBC/SQL. I just got
done writing a proof of concept that connects a Java desktop application to
the backend i5 via stripped down XML (i.e. no soap, non-verbose tags, etc).
It is comparably fast to ODBC/JDBC from my non-scientific testing I have
done to date.

You can check it out here:
http://mowyourlawn.com/blog/linkto/RXS_Java_GUI_Frontend.zip Simply
download, unzip, and double click the CustomerMaint.jar file (if it comes up
with an error, go to java.com and download the latest version).

Note the key to doing XML web services between a high performance front end
app to a backend i5 is to keep everything as trimmed down as possible. That
is why I use http://nanoxml.cyberelf.be/ as my XML parser on the client end
and is also why I don't use soap in this example (note the nanoxml also has
a C#.NET port). The back-end is using my companies product RPG-XML Suite
(www.rpg-xml.com) but whatever language your developers are most comfortable
with could be used instead (i.e. Java).

HTH,
Aaron Bartell
http://mowyourlawn.com


-----Original Message-----
From: midrange-l-bounces+albartell=gmail.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+albartell=gmail.com@xxxxxxxxxxxx] On Behalf Of
Wilt, Charles
Sent: Friday, June 29, 2007 8:06 AM
To: Midrange Systems Technical Discussion
Subject: RE: Client - Server

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Raul A. Jager W.
Sent: Friday, June 29, 2007 8:47 AM
To: Midrange Systems Technical Discussion
Subject: Client - Server

Recently I got a beatifull (Looking) visual basic program to
enter/maintain purchase orders using ODBC to the iSeries.

For this program to work I had to give the user *CHANGE access to the
"order_header" and "order_detail" tables.

Now I have to questions:

1- How can I keep this user from reading the tables from other
programs like exel?

You can't really. Nor can you keep them from changing the data.

Instead of allowing the user to sign on with there own profile, you could
have the application use its own specific profile.

Another option, your application could call stored procedures instead of
accessing the data directly.

There are of course other options.


2- How can I define "commitment control" to avoid "half trasactions"
when the program fails?


OBDC driver uses commitment control by default. Unless you've turned it
off, you are using commitment control. However, it is probably working per
automatically "statement" instead of the per transaction you want.

While I don't recall the specifics off the top of my head, you need to set a
property on the connection that turns off auto-commit and allows your
application to issue the commits as appropriate.

HTH,
Charles



This e-mail transmission contains information that is intended to be
confidential and privileged. If you receive this e-mail and you are not a
named addressee you are hereby notified that you are not authorized to read,
print, retain, copy or disseminate this communication without the consent of
the sender and that doing so is prohibited and may be unlawful. Please
reply to the message immediately by informing the sender that the message
was misdirected. After replying, please delete and otherwise erase it and
any attachments from your computer system. Your assistance in correcting
this error is appreciated.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.