How-to: Use the process execution support project with the Spring framework

The content of the project should be configured with Spring by importing the Spring configuration file from process execution support project.

Use Spring configuration file from the process execution support project

The process execution support project contains a Spring configuration file which can be imported into a Spring configuration file which wishes to use the classes from process execution support project.

To import the beans, add an import tag which imports the file com.alpha.pineapple.process.execution-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
                        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

        <!-- import process execution bean definitions. -->
        <import resource="com.alpha.pineapple.process.execution-config.xml"/>
                                
        <!-- all remaining bean definitions. -->
                    
</beans>    

Content of the com.alpha.pineapple.process.execution-config.xml file

Currently the com.alpha.pineapple.process.execution-config.xml contains the definition of these beans:

  • processExecutionMessageProvider which is an prototype instance of the message provider for internal by the objects in the process execution support project.
  • processExecutionCommand which is an prototype instance of a process execution command.
  • processExecutionSession which is an prototype instance of a process execution session.