Announcement Announcement Module
Collapse
No announcement yet.
Spring Application's deployed as JCA Resource Adapter startup dependencies Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Application's deployed as JCA Resource Adapter startup dependencies

    Hi,

    I have deployed my application via SpringContextResourceAdapter JCA RA. In the application there is JMS listener with JMS configured in Spring and it uses Mobicents Slee Connection Factory via JNDI. If RAR is initialized before whole Mobicents JSLEE stack is, application won't start. When I deploy it after JNDI uri is accessible, it works good.

    Is there any possible choice to tell "Start RAR only after this JNDI uri is accessible??", Its deployed on JBoss, so may be there is some jboss-ra.xml...

    even RAR it's not mandatory, I can easily use EJB MessageDrivenBean... but there will be the same problem wasn't?

    Code:
    Caused by: javax.naming.NameNotFoundException: MobicentsConnectionFactory not bound
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
    	version="1.5">
    	<vendor-name>demo</vendor-name>
    	<eis-type>Sample JCA RA</eis-type>
    	<resourceadapter-version>1.0</resourceadapter-version>
    	<resourceadapter>
    		<resourceadapter-class>org.springframework.jca.context.SpringContextResourceAdapter</resourceadapter-class>
    		<config-property>
    			<config-property-name>contextConfigLocation</config-property-name>
    			<config-property-type>java.lang.String</config-property-type>
    			<config-property-value>META-INF/core-jndi.xml</config-property-value>
    		</config-property>
    	</resourceadapter>
    </connector>
    Code:
    <jee:jndi-lookup id="sleeConnectionFactory" jndi-name="java:/MobicentsConnectionFactory" />
Working...
X