Skip to content

jdbc sample application - #17

Merged
Vnajeb merged 2 commits into
mainfrom
sample/jdbc
Sep 1, 2026
Merged

jdbc sample application#17
Vnajeb merged 2 commits into
mainfrom
sample/jdbc

Conversation

@Vnajeb

@Vnajeb Vnajeb commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds a Java sample application demonstrating how to connect to Db2 for IBM i using the Mapepire JDBC driver through the standard java.sql API.

What's included

  • App.java — single-class app with three runnable demos:
    • --sql — basic query using Statement
    • --preparedStatement — parameterized query using PreparedStatement
    • --clCommand — CL command execution via QSYS2.QCMDEXC
  • pom.xml — Maven build config targeting Java 8, packages a fat JAR with all dependencies
  • config.properties.sample — template for IBM i connection credentials

Notes

@Vnajeb
Vnajeb requested a review from wyattmog September 1, 2026 17:25

@wyattmog wyattmog left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! One small change regarding the README.md setup guide and it's good to go.

Comment thread java/jdbc-app/README.md Outdated

@wyattmog wyattmog left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@Vnajeb
Vnajeb merged commit 85421ae into main Sep 1, 2026
@Vnajeb
Vnajeb deleted the sample/jdbc branch September 1, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sample JDBC application

2 participants