Package de.scoopgmbh.copper.persistent

Examples of de.scoopgmbh.copper.persistent.PersistentScottyEngine.notify()


      new RetryingTransaction<Void>(context.getBean(DataSource.class)) {
        @Override
        protected Void execute() throws Exception {
          try {
            Response<?> response = new Response<String>("CID#withEarlyResponse", "TEST", null);
            engine.notify(response, getConnection());
            Statement stmt = createStatement(getConnection());
            ResultSet rs = stmt.executeQuery("select * from cop_response");
            assertTrue(rs.next());
            assertEquals(response.getCorrelationId(), rs.getString("CORRELATION_ID"));
            assertFalse(rs.next());
View Full Code Here


            assertFalse(rs.next());
            getConnection().rollback();

            response = new Response<String>("CID#withoutEarlyResponse", "TEST", null);
            response.setEarlyResponseHandling(false);
            engine.notify(response, getConnection());
            rs = stmt.executeQuery("select * from cop_response");
            assertFalse(rs.next());
            rs.close();
            stmt.close();
            getConnection().rollback();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.