you could configure this declaratively in your service's impl
bean declaration:
<bean id="serviceImplBean" class="package.YourServiceImpl"
init-method="start" destroy-method="stop" />
and inside your impl class implement the methods:
public void start() {
//init code here..
}
public void stop() {
//shutdown code here...
}
HTH,
kits
On Fri, Dec 4, 2009 at 10:50 PM, Wadi Jalil Maluf <[email protected]> wrote:
> Hi all,
> I dont know where would be convenient and a good practice to put the
> initialization code that access the db with some services on a Apache CXF
> application.
> Any help would be appreciated,
> Regards,
> Wadi
>
>
> __________ Información de ESET NOD32 Antivirus, versión de la base de firmas
> de virus 4660 (20091204) __________
>
> ESET NOD32 Antivirus ha comprobado este mensaje.
>
> http://www.eset.com
>
>
>