The whole AAR concept has the purpose - as I understand it - of allowing a completely seperate classloader for each one of them. Two advantages immediately come to mind with AAR's.
One advantage is that two classes of the same name and package can be deployed in one instance of axis2. A single classloader doesn't permit two classes of the same name and package in it. So in respect to spring, you can have two or more completely different instances of spring - even with the same beans - running independently. The other immediate advantage is the hot deploy of aar's is a big improvement over what axis1 has, IMHO. With respect to the first point - the relevant point here - is its a feature that allows a lot of flexibility. On the other hand, that flexibility is often not required. What I do most often with spring and axis2 is simply have the AAR contain just the services.xml and the wsdl file if there is one in the META-INF dir - and that's it. No classes, no spring nor hibernate in the aar - nothing. Then I just put the spring config files in WEB-INF, the spring jars in WEB-INF/lib, the hibernate files in WEB-INF/classes, and all the Service classes and its business classes under WEB-INF/classes. And that's all there is to it - works great if you just have one app running in tomcat. In other words, the Einstein approach: as simple as possible, but no simpler. If you really need two or more aar's - you ended up in about the right place. HTH, Robert On 7/12/07, Brian Kates <[EMAIL PROTECTED]> wrote:
I got the file to map by putting them in WEB-INF/classes/domain/transferScenario.hbm.xml. In my applicationContext, the mapping file value is <value>domain/TransferScenario.hbm.xml</value>. Thanks a lot of your help and patience! Just to wrap up this conversation, (now that we're both on the same page), what are the alternatives? How can I get the AAR on the classpath (expanded or not)? Are there any best practices? Thanks. -Brian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
