You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by pat <pa...@xvalheru.org> on 2007/03/05 14:36:37 UTC
[bot OT] app with hibernate, Axis2 and JSP front end
Hello,
I want to ask you about architecture of the application which uses hibernate
as DB handler, JSPs as front end and Axis2 as WS. All running on Tomcat web
container. What is the best practice to build this application?
E.g.:
if "build two separated application which will use the hibernate core from the
Tomcat's shared lib" or "take Axis2 WAR and push into it JSPs and hibernate
core" or ...?
Any ide?
Thanks a lot
Pat
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [bot OT] app with hibernate, Axis2 and JSP front end
Posted by robert lazarski <ro...@gmail.com>.
You have at least two choices:
1) Place the hibernate jars under the axis2 war WEB-INF/lib. Place all
your code under WEB-INF/lib or WEB-INF/classes . Use the aar only for
services.xml .
2) Get fancy with the AAR classloader. Place your hibernate jar under
the aar lib directory and keep your classes in the AAR too. We've
tested this with spring wrapping around the hibernate transactions. I
would imagine you could do something similar for a pure hibernate
solution but I personally haven't tested that.
There are some docs using the spring option with hibernate, and even
without spring some of the same concepts apply:
http://ws.apache.org/axis2/1_1_1/spring.html
HTH,
Robert
On 3/5/07, pat <pa...@xvalheru.org> wrote:
> Hello,
>
> I want to ask you about architecture of the application which uses hibernate
> as DB handler, JSPs as front end and Axis2 as WS. All running on Tomcat web
> container. What is the best practice to build this application?
>
> E.g.:
> if "build two separated application which will use the hibernate core from the
> Tomcat's shared lib" or "take Axis2 WAR and push into it JSPs and hibernate
> core" or ...?
>
> Any ide?
>
> Thanks a lot
>
> Pat
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org