[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-731) Allow Clustered BEans to be Tested in the Embedded Container
John Gilbert (JIRA)
jira-events at jboss.com
Mon Oct 9 15:04:41 EDT 2006
[ http://jira.jboss.com/jira/browse/EJBTHREE-731?page=comments#action_12344908 ]
John Gilbert commented on EJBTHREE-731:
---------------------------------------
I worked around this by creating a MockPartion class and registering it with the micro-container. It seems to work fine so far.
Here are the details:
- added jbossha.jar to the classpath.
- created MockPartion class (see attachment)
- added the following lines to the embedded-jboss-beans.xml
<bean class="ha.MockPartition" name="jboss:service=HAPartition"/>
<bean name="HAPartitionBinding" class="org.jboss.ejb3.embedded.JndiBinder">
<property name="jndiProperties"><inject bean="InitialContextProperties"/></property>
<property name="target"><inject bean="jboss:service=HAPartition"/></property>
<property name="bindTo">/HAPartition/DefaultPartition</property>
<property name="serializable">false</property>
</bean>
> Allow Clustered BEans to be Tested in the Embedded Container
> ------------------------------------------------------------
>
> Key: EJBTHREE-731
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-731
> Project: EJB 3.0
> Issue Type: Feature Request
> Components: Clustering
> Affects Versions: EJB 3.0 RC10 - FD
> Reporter: John Gilbert
> Attachments: MockPartition.java
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list