Before we go any further, we need to make sure that the $OG_HOME/lib/ogspring.jar
file is on the classpath.
WebSphere eXtreme Scale allows us to wire Spring-defined beans into our plugin collections. We do this by defining the Spring bean elsewhere and pre-pending {spring} to the bean name when wiring it in to the plugin collection. An eXtreme Scale configuration file may contain any number of {spring} referenced beans.
There isn't a Spring bean factory defined in our objectgrid.xml
configuration file, so we must be using some default file. By default, eXtreme Scale looks for a file named GridName_spring.xml
in the classpath
root. The grid defined in the objectgrid.xml
file is "MyGrid", so eXtreme Scale looks for a file named MyGrid_spring.xml
in the classpath root.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:objectgrid="http...