anonymous wrote : | Thanks for your answer. I indeed meant jboss-spring.xml . so we have a .spring file that contains our pojos, and under META-INF, our *-spring.xml . I tried that and JBoss complained that it could not find jboss-spring.xml, so i added an empty one : | | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" | "http://www.springframework.org/dtd/spring-beans.dtd"> | | and then I added the rest of my xml files, with their names changed to -spring.xml (applicationContext-persistence-spring.xml etc) under META-inf, but JBoss did not read them. So are you saying that we need one .spring archive per configuration file (which must be jboss-spring.xml) ? |
When used as an archive (.spring), there must be a jboss-spring.xml in meta-inf and no other -spring.xml files are deployed from that archive. But you can have multiple -spring.xml files directly in your deploy directory or in your .ear archive at root level (but you have to reference them in application.xml). Make sure that the classes that you are configuring are accessible - in classpath of your deployment unit. On more thing you have to be careful - if you have hierarchy - is the order of deployment - see org.jboss.deployment.MainDeployer-xmbean.xml file in conf dir. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954291#3954291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954291 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user