× 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.



Todd,

I'm jumping in late, you may have already solved the problem.

The versions of JT400 I've worked with have all ignored the userid and password properties in the properties file. JT400 uses only the userid and password in the jdbc connection string. Set the connection string with the userid and password in your properties file. I most often do this with a Tomcat datasource, so I can't give you an example properties file. The connection string should look something like this:

jdbc:as400://10.8.1.54/rjsflow;prompt=no;driver=toolbox;naming=sql;user=DKIMMEL;password=XXXXXX;server trace=0;extended dynamic=true;package=RJSFLOW;package library=RJSFLOW;package add=false;package criteria=select;prefetch=true;block size=512;


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of TAllen@xxxxxxxxxxxxxxxxx
Sent: Monday, January 16, 2012 11:03 AM
To: Java Programming on and around the iSeries / AS400
Subject: JDPC prompt

I know I've dealt with this before but it has been a while. I've got a Java app that makes a JDBC connection. The connection is using a properties file. Each time I am getting a login screen. How do I suppress this? The user and password are in the properties file. Logging in with the user and password in the properties file works fine.

Thanks,
Todd




For 80 Years - Delivering Solutions that Exceed Expectations.



This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.


--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-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.