Doing a global search and replace for secure-client to the name of the ear file works around the initial problem, but now I am getting the exception "PersistenceServiceBean not bound".
It seems to have found the name of the ear file in JNDI, but the next problem lies directly underneath. The bean definition shows in theory that it is looking for an entry "PersistenceServiceBean":
Code:
<bean id="persistenceStore"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"
value="PersistenceServiceBean/remote" />
<property name="proxyInterface"
value="alchemy.persistence.PersistenceStore" />
</bean>
According to JBoss, the bean is under JNDI like so:
Code:
+- alchemy-trader-ear-4.2.0-SNAPSHOT (class: org.jnp.interfaces.NamingContext)
| +- PersistenceServiceBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy197 implements interface alchemy.persistence.PersistenceStore,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
| | +- remote (proxy: $Proxy196 implements interface alchemy.persistence.PersistenceStore,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
Is the bean defined correctly for EJB3?