Questions tagged [jtopen]

jtopen is an open source version of the IBM Toolbox for Java (jt400) for using IBM i (previously iSeries and AS/400) system resources.

The jtopen software is an open source version (IBM Public License) of IBM's licensed software IBM Toolbox for Java. It is produced by the same team that produces the licensed software and generally gets updates and new features before the licensed software (PTF's).

More information can be found on the project's Sourceforge page.

50 questions
6
votes
1 answer

JTOpen KeyedDataQueue read() timeout

I've detected a strange behavior when using the read() method provided by JTOpen's KeyedDataQueue class. I've set an 90s timeout and for 99% of read executions when the timeout is reached my calling method execution is resumed. As for the other 1%…
RedEagle
  • 4,418
  • 9
  • 41
  • 64
4
votes
3 answers

RPG (iSeries) Modernization using JTOpen - What is possible?

We would be in near future implementing a solution to modernize our iSeries applications written as RPG programs with some stored procedures, and our preferred way is leveraging the latest and greatest of what Java has to offer in this space. From…
user937372
  • 41
  • 3
4
votes
2 answers

How to Call RPGIV program from java that returns more than one record

I am calling a RPGIV program from java, the rpgiv program returnes multi record as an output parameter. I tried the following to return all the rows returned from rpgiv. // Define Output Data Structure AS400DataType[] outputData = { …
Renier
  • 1,738
  • 3
  • 24
  • 51
4
votes
2 answers

Establish connection to db2 using the jt400.jar

I have tried using the db2jcc.jar and I successfully establish connection to db2 but now I am trying to use the jt400.jar I have tried to use the driver com.ibm.db2.jdbc.app.DB2Driver but I keep getting the class not found exception. I tried using…
aeycee
  • 167
  • 2
  • 2
  • 14
4
votes
2 answers

Expired password change fails

I am using JTOpen API to access an AS400 system. I can successfully change an active AS400 user password like this: AS400 system = new AS400("AS400SYSTEM", "AS400USER"); system.changePassword("OLDPASSWORD", "NEWPASSWORD"); On the other hand, when I…
RedEagle
  • 4,418
  • 9
  • 41
  • 64
3
votes
3 answers

Java ProgramCall.run hangs

Busy trying to Call RPG function from Java and got this example from JamesA. But now I am having trouble, here is my code: AS400 system = new AS400("MachineName"); ProgramCall program = new ProgramCall(system); try { //…
ZioN
  • 550
  • 2
  • 11
  • 35
2
votes
2 answers

Risk of SQL injection when connection to AS/400 using JTOpen

We are using JTOpen to connect to our AS/400 machine, and I'm trying to work out the risks of having SQL injection vulnearbility when using this type of integration. Note that we are only using the call program part of the API - not the jdbc…
Ståle
  • 21
  • 2
2
votes
1 answer

IntrospectionException: Method not found: setLastModified

Our server was updated to java 8 and the code below no longer works. I am using the latest version of jtopen and can not get it to work in java 7 or 8. The code uses the jtopen (java toolkit) to access the integrated file system on the IBM i. AS400…
Kevin Kruse
  • 33
  • 1
  • 5
2
votes
1 answer

JTOpen ProgramCall Socket Timeout

I'm working on a web app (running on Tomcat) that calls programs on an IBM i (AS/400) using the JTOpen ProgramCall class (com.ibm.as400.access.ProgramCall). My problem is with program calls that take more than 30s to respond, which are triggering a…
Drey
  • 130
  • 9
2
votes
2 answers

JTOpen: Writing DDM Files

I'm quite new to work with IBM i (an AS/400). I want to write a DDM File via JTOpen/JT400. Here is what I already did, with the use of the classes inside the jtopenlite.jar from here http://sourceforge.net/projects/jt400/files/JTOpen-full/8.5/ …
KeKru
  • 444
  • 3
  • 13
2
votes
2 answers

Connection pooling + Impersonating queries

I'm working on a spring(IoC/ MVC/ Security)/ JTOpen project backed up by DB2 over IBM System i (AS/400). For reasons I won't be able to discuss here, every user of the application was given an account on the IBM i (i5/OS) operating system so that…
Eyad
  • 327
  • 3
  • 10
2
votes
2 answers

Call RPG function from Java

I want to find away to call a RPG Function from Java. I must be able to pass in parameters and to return result sets, and output parameters. I was able to find this but it is using a stored procedure. Not the way I want to go. I also found this…
ZioN
  • 550
  • 2
  • 11
  • 35
2
votes
2 answers

Using JTOpen to read from a data area on an AS400, does the data area object get locked?

Given a DecimalDataArea from JTOpen, when reading and writing to the data area, does the object on the AS400 get locked, preventing simultaneous writes to it from other applications that are on the AS400? This is the sample code from the javadoc on…
Patrick Grimard
  • 7,033
  • 8
  • 51
  • 68
2
votes
2 answers

Open a JDBC connection in a specific AS400 subsystem

I have a web service that calls some stored procedure on a AS400 via JTOpen. What I would like to do is that the connections used to call the stored procedures was opened in a specific subsystem with a specific user, instead of qusrwrk/quser as now…
user1805879
  • 61
  • 1
  • 7
1
vote
1 answer

JTOpen IFS events

I want to know if the JTOpen has the ability to listen to changes of the IFS. I want to find a way to listen to changes made by other programs and execute an action, such as send by MQ or write to a file in the IFS. I tried adding listener to the…
dalcorta
  • 85
  • 4
1
2 3 4