Help regarding config files (webModuleApplicationContext,moduleApplicationContext.xml).

0 views
Skip to first unread message

Rakshit Wadhwa

unread,
May 15, 2014, 7:55:45 AM5/15/14
to d...@openmrs.org
Greetings!

I am trying my hand at a dummy module here.
I am trying to do something similar as appointment(Console) module given in exercise in EHSDI training exercise.
I created a new service module, and copied the respective java class code  into api, and omod projects of my new module.
However I am a bit confused how should I model the earlier code's "appointment-servlet.xml" into my new modules webApplicationContext.xml, moduleApplicationContext.xml and config.xml.

Paste bin links for
Original appointment-servlet.xml: http://pastebin.com/wFX5Nmmc

New module files:
config.xml (under api project): http://pastebin.com/BSiEkKpf
mouleApplicationContext.xml (under api project): http://pastebin.com/PFYqWFPk
webModuleApplicationContext.xml (under omod project) : http://pastebin.com/dJPe5gG6

It would be great if someone can guide about the purpose of each xml, and give a sample example considering how original appointment-servlet.xml can be divided into config.xml, moduleApplicationContext.xml and webModuleApplicationContext.xml.

Thanks and regards
Rakshit


Harsha Kumara

unread,
May 15, 2014, 8:13:45 AM5/15/14
to d...@openmrs.org
Hi Rakshit, 
You may find [1] which is the developer guide of the OpenMRS. Most of the answers for your question are there. So you can go through it very quickly. Also look at the [2] which is discuss about module application context and [3] which discuss about config xml. You will find the answers for your questions in those resources.
Thanks,
Harsha


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.



--
Harsha Kumara
Software Engineer
WSO2 Inc.
Sri Lanka.
Reply all
Reply to author
Forward
0 new messages