root/releases/bedework-3.7/deployment/ear.meta/jboss-service.xml

Revision 3147 (checked in by douglm, 2 years ago)

Small change to incorporate bedework services in ear file. Should reduce startup time and build/deploy time as well as memory usage

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <server>
3   <!--  guarantee separate classloader -->
4   <loader-repository>
5     org.bedework:archive=bedework-services
6   </loader-repository>
7  
8   <mbean code="org.bedework.indexer.BwIndexer"
9          name="org.bedework:service=Indexer">
10     <attribute name="Account">admin</attribute>
11     <attribute name="SkipPaths">/public/unbrowsable:/public/aliases</attribute>
12
13     <!-- We need activemq -->   
14     <depends>jboss.jca:service=ConnectionFactoryBinding,name=activemq/QueueConnectionFactory</depends>
15    
16     <!-- We also need the bedework database -->
17     <depends>jboss.jca:service=DataSourceBinding,name=CalendarDS</depends>
18   </mbean>
19  
20   <mbean code="org.bedework.inoutsched.BwInoutSched"
21          name="org.bedework:service=BwInoutSched">
22          <!--  no attributes yet
23     <attribute name="Account">admin</attribute>
24     <attribute name="SkipPaths">/public/unbrowsable:/public/aliases</attribute>
25     -->
26
27     <!-- We need activemq -->   
28     <depends>jboss.jca:service=ConnectionFactoryBinding,name=activemq/QueueConnectionFactory</depends>
29    
30     <!-- We also need the bedework database -->
31     <depends>jboss.jca:service=DataSourceBinding,name=CalendarDS</depends>
32   </mbean>
33  
34   <mbean code="org.bedework.dumprestore.BwDumpRestore"
35          name="org.bedework:service=DumpRestore">
36     <attribute name="Account">admin</attribute>
37    
38     <attribute name="Appname">dumpres</attribute>
39    
40     <!-- Create tables - false for safety - set true in console -->
41     <attribute name="Create">false</attribute>
42    
43     <!-- Statement delimiter -->
44     <attribute name="Delimiter">;</attribute>
45    
46     <!-- Drop tables - false for safety - set true in console -->
47     <attribute name="Drop">false</attribute>
48    
49     <!-- Export to database? - false for safety - set true in console -->
50     <attribute name="Export">false</attribute>
51    
52     <!-- Format the output? -->
53     <attribute name="Format">true</attribute>
54    
55     <!-- Do we halt on error? -->
56     <attribute name="HaltOnError">true</attribute>
57    
58     <!-- Schema Output file name - full path, folders must exist -->
59     <attribute name="SchemaOutFile">${jboss.server.data.dir}/bedework/dumprestore/schema.txt</attribute>
60    
61     <!-- SQL input file name - full path. Used instead of the configuration? -->
62     <!--  There appears to be a bug in the hibernate code. Everybody initialises
63         this to /import.sql. Set to null causes an NPE
64         Make sure it refers toa non-existant file -->
65     <attribute name="SqlIn">not-a-file.sql</attribute>
66    
67     <!-- XML data input file name - full path. Used for data restore -->
68     <attribute name="DataIn">${jboss.server.data.dir}/bedework/dumprestore/initbedework.xml</attribute>
69    
70     <!-- XML data output directory - full path. Used for data dump -->
71     <attribute name="DataOut">${jboss.server.data.dir}/bedework/dumprestore/</attribute>
72    
73     <!-- XML data output file prefix - for data dump -->
74     <attribute name="DataOutPrefix">bwdata</attribute>
75
76     <!-- We need activemq -->   
77     <depends>jboss.jca:service=ConnectionFactoryBinding,name=activemq/QueueConnectionFactory</depends>
78    
79     <!-- We also need the bedework database -->
80     <depends>jboss.jca:service=DataSourceBinding,name=CalendarDS</depends>
81   </mbean>
82 </server>
Note: See TracBrowser for help on using the browser.