cancel
Showing results for 
Search instead for 
Did you mean: 

Best practice to make its own service ?

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

im looking for make my own service.

What i need to do to make it as extension without modify war ?

At the moment i did this file :
- custom-public-services-context.xml
- custom-public-services-secutiry-context.xml
- custom-core-services-context.xml

in each i add beans (i took VersionService like example)

To make it working, i need to copy beans :
- exceptiontranslator
- AuditMethodTranslator
to my custom-public-services-context.xml.

Im not sure that is good practice.

Someone can confirm it or tell me what is best practice ?

Thx.
1 REPLY 1

derek
Star Contributor
Star Contributor
Hi,

If you can get away with just adding some config override files to your extensions, then that is probably fine.  But if you have code that depends on Alfresco classes, then you'll still end up adding jar files to the WAR.  At this point, you probably want to make an AMP (Alfresco Module Package).

Regards