-
1. Re: I cannot deploy a ejb3 application to a named partition
brian.stansberry Feb 9, 2007 1:59 PM (in response to beaversx)Set the partition name attribute on your @Clustered annotation:
@Clustered(partition="MyPartition")
In jboss xml it can be configured in the bean's element:<clustered>true</clustered> <cluster-config> <partition-name>MyPartition</partition-name> </cluster-config>
-
2. Re: I cannot deploy a ejb3 application to a named partition
beaversx Feb 9, 2007 5:03 PM (in response to beaversx)Brian,
Appreciate your quick reply. I have the exactly result as before. I configured jboss.xml as:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<enterprise-beans>
<ejb-name>FaultImpl</ejb-name>
True
<cluster-config>
<partition-name>FaultServices</partition-name>
<bean-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</bean-load-balance-policy>
</cluster-config>
</enterprise-beans>
Anything wrong in my configuration?
Thanks.
Shaw Xu -
3. Re: I cannot deploy a ejb3 application to a named partition
brian.stansberry Feb 9, 2007 8:49 PM (in response to beaversx)What EJB3 release? IIRC, the support for configuration via XML was only added in one of the most recent, probably RC9.
-
4. Re: I cannot deploy a ejb3 application to a named partition
beaversx Feb 10, 2007 12:17 PM (in response to beaversx)Brian,
Thanks a lot.
I downloaded the EJB3 RC9 release, but could not install it because some installation error in the patch:[root@centos4_vm_31-3 jboss-EJB-3.0_RC9_Patch_1]# ant -f install.xml -Djboss.server.config=default
Buildfile: install.xml
install:
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
[copy] Copying 14 files to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy/j
ms
[copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy
[delete] Deleting directory /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp
[mkdir] Created dir: /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp
[unjar] Expanding: /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib/jboss.jar i
nto /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp
BUILD FAILED
/home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/install.xml:47: Error while expanding /home/jboss/Desktop/jboss-EJB-3.0
_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib/jboss.jar
Total time: 0 seconds
I checked the directory, jboss.jar does not exist.
Is there anyway I may fix this?
Appreciate all your help.
Shaw Xu