After a connection is made, use the createSession() method on the Connection object to obtain a session. The method has two parameters:
The simplest case is obtaining a non-transacted session with an acknowledge mode of AUTO_ACKNOWLEDGE, as shown in the following code:
Session session; . . . boolean transacted = false; session = connection.createSession(transacted, Session.AUTO_ACKNOWLEDGE);
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzaw1375 |