jt400

AS400.validateSignon() does not reset the failed signon attempts to 0

回眸只為那壹抹淺笑 提交于 2019-12-10 15:31:54
问题 When I use com.ibm.as400.access.AS400.validateSignon() to authenticate a user's credentials and they pass the validation, and have successfully connected, it does not reset the "failed signon attempts" to 0. When entering an incorrect password the field "failed signon attempts" is incremented; when successfully signing on the "failed signon attempts" still maintains that there were invalid signons. Strangely enough the "previous sign-on" is updated with the correct date & time. Here is a dump

JT400.jar Disable Login Screen

。_饼干妹妹 提交于 2019-12-03 07:31:59
Can anyone help me out? I have small utility application that uses the Jt400-6.7.jar to connect to an AS400 server. Please see the following code private Connection buildConnection(String url, String userName, String password) throws ClassNotFoundException, SQLException { Connection connection = null; Class.forName("com.ibm.as400.access.AS400JDBCDriver"); DriverManager.setLoginTimeout(10000); //OVER HERE!!! connection = DriverManager.getConnection(url, userName, password); return connection; } The code above works but if the the username or the password is wrong the application creates the

SQL query of multi-member file on AS400

独自空忆成欢 提交于 2019-11-30 03:15:25
On AS400 in interactive SQL in a 5250 session, select * from myfile returns rows from one member only when myfile has more than one member. How can I get rows from a specific member? Important: in the end I'd like to do this over JDBC with jt400 so really I want a solution that'll work there. Thanks. You can create an alias using the create alias command: CREATE ALIAS myLibrary/myAlias FOR memberLibrary/memberFile(memberName) This will allow you to run sql against that member using the alias like you would any other file: SELECT * FROM myLibrary/myAlias Just remember that the alias will stick