Bonjour,
J'ai configuré mon fichier spring comme cela :
J'ai créer un fichier osworkflow.properties inclu dans le dossier web-inf/classes de mon appli.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 <beans> <!-- JNDI DataSource for J2EE environments --> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:comp/env/jdbc/OSWorkflowPool</value> </property> </bean> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="/WEB-INF/classes/osworkflow.properties" /> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="mappingResources"> <list> <value> com/opensymphony/workflow/spi/hibernate/HibernateCurrentStep.hbm.xml </value> <value> com/opensymphony/workflow/spi/hibernate/HibernateHistoryStep.hbm.xml </value> <value> com/opensymphony/workflow/spi/hibernate/HibernateWorkflowEntry.hbm.xml </value> <value> com/opensymphony/workflow/spi/hibernate/WorkflowDescriptor.hbm.xml </value> <value> com/opensymphony/user/provider/hibernate/entity/HibernateGroup.hbm.xml </value> <value> com/opensymphony/user/provider/hibernate/entity/HibernateUser.hbm.xml </value> <value> com/opensymphony/module/propertyset/hibernate/PropertySetItemImpl.hbm.xml </value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect"> net.sf.hibernate.dialect.MySQLDialect </prop> <prop key="hibernate.show_sql">${hibernateShowSQL}</prop> <prop key="hibernate.hbm2ddl.auto">create-update</prop> </props> </property> </bean>
quand je met directement true dans mon fichier de config spring, j'ai bien le résultat que je souhaite, mais quand je fais la liaison avec mon fichier properties comme ci-dessus, ca ne fonctionne pas ... Je ne comprend vraiment pas pourquoi ... quelqu'un a une idée ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2spring-workflowsXML=spring-workflows.xml hibernateShowSQL=true
Merci
Partager