[jboss-user] [Clustering/JBoss] - Re: round robin on Jboss 5
bstansberry@jboss.com
do-not-reply at jboss.com
Wed Jan 21 10:36:50 EST 2009
"yairogen" wrote : No, I don't use this annotation. Trying to add it gave me errors as I recall. This should be added on the bean class and not the interface, right?
Correct.
anonymous wrote : I haven't tried adding the clustered true node in the jboss.xml file. I don't have such a file.
| Are you referring to the "standardjboss.xml" file?
|
| If yes, where do I add this node? If not which file are you referring to?
The jboss.xml file is the jboss-specific deployment descriptor that you add to your EJB jar's META-INF directory. The schema can be found in the docs/schema/jboss_5_0.xsd file in your JBoss AS distribution.
A simple example:
| <?xml version="1.0"?>
| <jboss
| xmlns="http://www.jboss.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
| http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
| version="3.0">
| <enterprise-beans>
| <session>
| <ejb-name>ExampleStateful</ejb-name>
| <jndi-name>ExampleStatefulRemote</jndi-name>
| <clustered>true</clustered>
| <cluster-config>
| </session>
| </enterprise-beans>
| </jboss>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203699#4203699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203699
More information about the jboss-user
mailing list