[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss 4.2.1 -> doesnot bother jboss.xml values

jaikiran do-not-reply at jboss.com
Sat Aug 25 13:14:40 EDT 2007


anonymous wrote :  in the META_INF directory along with ejb-jar.xml 

Assuming your ejbjar is named myApp.jar, then the jboss.xml (and ejb-jar.xml) should be placed in META-INF (note the exact name of this folder) folder, which at the root of the jar.

  | myApp.jar
  |  |
  |  |------- META-INF
  |               |
  |               |------ jboss.xml

Also, add the DOCTYPE declaration to your jboss.xml (however, i am not sure whether that's the reason for the file being ignored):

<!DOCTYPE jboss PUBLIC
  |       "-//JBoss//DTD JBOSS 4.0//EN"
  |       "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
  | 
  | <jboss>
  |   <enterprise-beans>
  |    <!-- All your stuff here -->
  |    </enterprise-beans>
  | </jboss>

And now, the most likely reason why the jboss.xml is being ignored:

anonymous wrote : 
  | 
  |          <ejb-name>IDValue</ejb-name>
  |          <jndi-name>ejb/ABC</jndi-name>
  |          <local-jndi-name>ejb/BCD</local-jndi-name>
  | 
  |         <method-attributes>
  |             
  |               <method-name>get*</method-name>
  |               <read-only>true</read-only>
  |             
  |         </method-attributes>
  | 
  |       


As per the dtd at http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd, i dont see any mention about the < method-attributes> element. Remove that section from your jboss.xml and see if it works.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078050#4078050

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078050



More information about the jboss-user mailing list