Commit | Line | Data |
---|---|---|
59e4c94a MS |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <components xmlns="http://jboss.com/products/seam/components" | |
3 | xmlns:core="http://jboss.com/products/seam/core" | |
4 | xmlns:persistence="http://jboss.com/products/seam/persistence" | |
5 | xmlns:drools="http://jboss.com/products/seam/drools" | |
6 | xmlns:bpm="http://jboss.com/products/seam/bpm" | |
7 | xmlns:security="http://jboss.com/products/seam/security" | |
8 | xmlns:mail="http://jboss.com/products/seam/mail" | |
9 | xmlns:web="http://jboss.com/products/seam/web" | |
10 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
11 | xsi:schemaLocation= | |
12 | "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd | |
13 | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd | |
14 | http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd | |
15 | http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd | |
16 | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd | |
17 | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd | |
18 | http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd | |
19 | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd"> | |
20 | ||
21 | <core:init debug="true" jndi-pattern="@jndiPattern@"/> | |
22 | ||
23 | <core:manager concurrent-request-timeout="500" | |
24 | conversation-timeout="120000" | |
25 | conversation-id-parameter="cid" | |
26 | parent-conversation-id-parameter="pid"/> | |
27 | ||
28 | <!-- Make sure this URL pattern is the same as that used by the Faces Servlet --> | |
29 | <web:hot-deploy-filter url-pattern="*.seam"/> | |
30 | ||
31 | <!-- If you are still using JBoss 4, uncomment this to have your PU started --> | |
32 | <!-- <persistence:entity-manager-factory name="entityManagerFactory"--> | |
33 | <!-- persistence-unit-name="SimDeCS"/>--> | |
34 | <!-- If you are still using JBoss 4, uncomment this to have the entityManagerFactory ysed --> | |
35 | <!-- <persistence:managed-persistence-context name="entityManager" auto-create="true"--> | |
36 | <!-- entity-manager-factory="#{entityManagerFactory}"/>--> | |
37 | ||
38 | <persistence:managed-persistence-context name="entityManager" auto-create="true" | |
39 | persistence-unit-jndi-name="java:/SimDeCSEntityManagerFactory"/> | |
40 | ||
41 | <drools:rule-base name="securityRules"> | |
42 | <drools:rule-files><value>/security.drl</value></drools:rule-files> | |
43 | </drools:rule-base> | |
44 | ||
45 | <security:rule-based-permission-resolver security-rules="#{securityRules}"/> | |
46 | ||
47 | <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/> | |
48 | ||
49 | <event type="org.jboss.seam.security.notLoggedIn"> | |
50 | <action execute="#{redirect.captureCurrentView}"/> | |
51 | </event> | |
52 | <event type="org.jboss.seam.security.loginSuccessful"> | |
53 | <action execute="#{redirect.returnToCapturedView}"/> | |
54 | </event> | |
55 | ||
56 | <mail:mail-session host="localhost" port="25"/> | |
57 | ||
58 | <!-- For use with jBPM pageflow or process management --> | |
59 | <!-- | |
60 | <bpm:jbpm> | |
61 | <bpm:process-definitions></bpm:process-definitions> | |
62 | <bpm:pageflow-definitions></bpm:pageflow-definitions> | |
63 | </bpm:jbpm> | |
64 | --> | |
65 | ||
66 | </components> |