This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rtr.services.example; | |
import java.util.Date; | |
import java.util.Properties; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.Multipart; | |
import javax.mail.Session; | |
import javax.mail.Transport; | |
import javax.mail.internet.AddressException; | |
import javax.mail.internet.InternetAddress; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.hibernate.exception.GenericJDBCException: Could not close connection | |
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.releaseConnection(LogicalConnectionImpl.java:327) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.close(LogicalConnectionImpl.java:199) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.close(JdbcCoordinatorImpl.java:141) ~[commerce-service-0.1.0-SNAPSHOT.jar:na] | |
at org.hibernate.engine.transaction.internal.Trans |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Returns the maximum amount of time (in milliseconds) the borrowObject() method should block before throwing an exception when the pool is exhausted and the "when exhausted" action is WHEN_EXHAUSTED_BLOCK. | |
Defaulted to 1 second by DW | |
*/ | |
pool.setMaxWait(configuration.getMaxWaitForConnection().toMilliseconds()); | |
/* | |
Returns the minimum number of objects allowed in the pool before the evictor thread (if active) spawns new objects. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rtr.infra.wizard.test; | |
import org.hibernate.Session; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.context.internal.ManagedSessionContext; | |
import org.junit.After; | |
import org.junit.Before; | |
public abstract class DropwizardDAOTest { |