Changeset 3616

Show
Ignore:
Timestamp:
08/08/12 11:39:25
Author:
douglm
Message:

First stage in adding change notifications.

New sysevents classes so that any old ones in the pipeline will get processed OK.

New package chgnote to handle asynch processing of notifications.

New JMS queue added

New JMX task to monitor and control processing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/bwbuild/jboss-postgresql-devel/activemq-broker-config.xml

    r3537 r3616  
    5252    --> 
    5353    <destinations> 
     54      <!-- If we want to run the bedenote JMS handler we need to 
     55           define the sysevents queue as a physical queue as shown here 
    5456      <queue name="bedeworkSyseventsIn" 
    5557             physicalName="bedework.sysevents" /> 
     58             --> 
     59              
     60      <!-- The listener handles change notifications --> 
     61      <queue name="changes" 
     62             physicalName="bedework.sysevents.changes" /> 
    5663              
    5764      <!-- The listener just logs the system events --> 
     
    7986       
    8087      <!--  ================= queues for camel stuff ======================  
     88            We need queues to take output from the bedenote notification 
     89            processor. We might not need all of these as some might 
     90            be handled as an internal camel process. 
    8191      <queue name="bedeworkSysevents" 
    8292             physicalName="bedework.sysevents.cm.sysev" /> 
     
    94104    </destinations> 
    95105 
    96     <!-- MikeD  
     106    <!-- These destinationInterceptors should be commented out if we 
     107         run bedenote. 
     108         They define a set of virtual destinations fanning out 
     109         from the physical name bedework.sysevents 
     110     --> 
    97111    <destinationInterceptors> 
    98112      <virtualDestinationInterceptor> 
     
    100114          <compositeQueue name="bedework.sysevents"> 
    101115            <forwardTo> 
    102               <! - - Forward all to the camel sysevents queue for testing. - - > 
    103               <queue physicalName="bedework.sysevents.cm.sysev" /> 
    104116              <queue physicalName="bedework.sysevents.logger" /> 
    105117              <queue physicalName="bedework.sysevents.monitor" /> 
    106118              <queue physicalName="bedework.crawler" /> 
     119              <filteredDestination selector="changeEvent = 'true'" 
     120                                   queue="bedework.sysevents.changes" /> 
    107121              <filteredDestination selector="inbox = 'true' or scheduleEvent = 'true'" 
    108122                                   queue="bedework.scheduleIn"/> 
     
    113127        </virtualDestinations> 
    114128      </virtualDestinationInterceptor> 
    115     </destinationInterceptors>--> 
     129    </destinationInterceptors> 
    116130 
    117131    <!-- 
  • trunk/config/bwbuild/jboss-postgresql-devel/activemq-jms-ds.xml

    r3537 r3616  
    113113   </mbean> 
    114114 
     115   <!-- Bedework change processing queue --> 
     116   <mbean code="org.jboss.resource.deployment.AdminObject"  
     117          name="activemq.queue:name=changes"> 
     118      <attribute name="JNDIName">activemq/queue/changes</attribute> 
     119      <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-rar-5.3.0.rar'</depends> 
     120      <attribute name="Type">javax.jms.Queue</attribute> 
     121      <attribute name="Properties">PhysicalName=bedework.sysevents.changes</attribute> 
     122   </mbean> 
     123 
    115124   <!-- Bedework outbox processing queue --> 
    116    <mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.queue:name=schedulerOut"> 
     125   <mbean code="org.jboss.resource.deployment.AdminObject"  
     126          name="activemq.queue:name=schedulerOut"> 
    117127      <attribute name="JNDIName">activemq/queue/schedulerOut</attribute> 
    118128      <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-rar-5.3.0.rar'</depends> 
  • trunk/config/bwbuild/jboss-postgresql-devel/build.properties

    r3537 r3616  
    1111org.bedework.configuration.versions=${org.bedework.configuration.defaults}/versions.properties 
    1212 
    13 org.bedework.activemq.configurations=${org.bedework.configuration.defaults} 
     13#org.bedework.activemq.configurations=${org.bedework.configuration.defaults} 
     14org.bedework.activemq.configurations=${env.BEDEWORK_CONFIG} 
    1415org.bedework.config.home=${env.BEDEWORK_CONFIG} 
    1516 
  • trunk/deployment/bw-core-appjars.xml

    r3535 r3616  
    7878              libcache="${org.bedework.libcache.dir}" 
    7979              name="bw-calsvc" version="${org.bedework.calcore.version}"  
     80              projecthome="${project.home}/../bwcalcore" /> 
     81       
     82      <getJar lib="${org.bedework.temp.extrajars.dir}" 
     83              libcache="${org.bedework.libcache.dir}" 
     84              name="bw-chgnote" version="${org.bedework.calcore.version}"  
    8085              projecthome="${project.home}/../bwcalcore" /> 
    8186 
  • trunk/deployment/ear.meta/jboss-service.xml

    r3560 r3616  
    2424         name="org.bedework:service=Ischedule"> 
    2525    <attribute name="Account">admin</attribute> 
     26     
     27    <!-- We also need the bedework database --> 
     28    <depends>jboss.jca:service=DataSourceBinding,name=CalendarDS</depends> 
     29  </mbean> 
     30   
     31  <mbean code="org.bedework.chgnote.BwChgNote" 
     32         name="org.bedework:service=BwChgNote"> 
     33         <!--  no attributes yet 
     34    <attribute name="Account">admin</attribute> 
     35    <attribute name="SkipPaths">/public/unbrowsable:/public/aliases</attribute> 
     36    --> 
     37 
     38    <!-- We need activemq -->     
     39    <depends>jboss.jca:service=ConnectionFactoryBinding,name=activemq/QueueConnectionFactory</depends> 
    2640     
    2741    <!-- We also need the bedework database -->