1 package eu
.etaxonomy
.cdm
.test
.function
;
4 import org
.apache
.log4j
.Logger
;
5 import org
.springframework
.context
.support
.ClassPathXmlApplicationContext
;
6 import org
.springframework
.orm
.hibernate3
.annotation
.AnnotationSessionFactoryBean
;
11 public class TestSessionFactory
{
12 private static final Logger logger
= Logger
.getLogger(TestSessionFactory
.class);
17 private boolean testFromApplication(){
18 String appContextString
= "applicationContext-test.xml";
19 ClassPathXmlApplicationContext appContext
= new ClassPathXmlApplicationContext(appContextString
);
27 System
.out
.println("Start Datasource");
28 testFromApplication();
29 System
.out
.println("\nEnd Datasource");
35 public static void main(String
[] args
) {
36 TestSessionFactory cc
= new TestSessionFactory();