Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Spring Module JSR94 Blaze Advisor Configuration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Module JSR94 Blaze Advisor Configuration

    Hi,

    I don't know how to configure Spring Module JSR94 to use Blaze Advisor 6.1 for Java.

    This is part of my app-context.xml

    <bean id="ruleServiceProviderBlaze" class="org.springmodules.jsr94.factory.DefaultRule ServiceProviderFactoryBean">
    <property name="provider" value="com.blazesoft.server.deploy.javax.rules" />
    <property name="providerClass" value="com.blazesoft.server.deploy.javax.rules.bas e.NdRuleServiceProvider" />
    </bean>

    <bean id="ruleRuntimeBlaze" class="org.springmodules.jsr94.factory.RuleRuntime FactoryBean">
    <property name="serviceProvider">
    <ref local="ruleServiceProviderBlaze" />
    </property>
    </bean>

    <bean id="ruleAdministratorBlaze" class="org.springmodules.jsr94.factory.RuleAdminis tratorFactoryBean">
    <property name="serviceProvider">
    <ref local="ruleServiceProviderBlaze" />
    </property>
    </bean>

    <bean id="helloWorldBeanBlaze" class="org.springmodules.jsr94.core.Jsr94Template" >
    <property name="ruleSource">
    <bean class="org.springmodules.jsr94.rulesource.DefaultR uleSource">
    <property name="ruleRuntime" ref="ruleRuntimeBlaze" />
    <property name="ruleAdministrator" ref="ruleAdministratorBlaze" />
    <property name="source" value="./JSR94.server" />
    <property name="bindUri" value="JSR94" />

    </bean>
    </property>
    </bean>

    i don't know how to configure the last marked lines, I understood that "source value" need be to have the JSR94 server (Blaze Advisor deployment descriptor) and the "bindUri" is the name of the Deploy Service config (in Blaze <Name>JSR94</Name> for example).

    When I tried to run my code, i got this error:

    java.lang.NullPointerException
    at com.blazesoft.server.deploy.javax.rules.base.NdRul eRuntime.SiPBdmZ(:85)
    at com.blazesoft.server.deploy.javax.rules.base.NdRul eRuntime.createRuleSession(:70)
    at org.springmodules.jsr94.rulesource.AbstractRuleSou rce.createSession(AbstractRuleSource.java:79)
    at org.springmodules.jsr94.core.Jsr94Template.createR uleSession(Jsr94Template.java:81)
    at org.springmodules.jsr94.core.Jsr94Template.execute Stateless(Jsr94Template.java:144)
    at com.ismarts.rules.managment.ext.SpringRulesManager Service.executeRule(SpringRulesManagerService.java :62)
    at com.ismarts.rules.test.blaze.RulesManagerServiceTe st.testGetRulesManager(RulesManagerServiceTest.jav a:53)

    I attached the trace error, java code and blaze server config file.

    Thanks in advance,

    If somebody have an example please send me it.
Working...
X