Not familiar with Spring? Check it out at www.springsource.org. There are many great tutorials and documentation there as well. I assume you have a basic knowledge of Spring, so some pre-reading would be a good idea. Workbrain is using version 2.0.2, so it helps in debugging if you download the exact source code, which you can do on the Spring Source website.
First off, Workbrain will automatically load your data and service level beans if you place them in data-config.xml and service-config.xml files. But first you'll need to tell it where to look. Follow these steps:
- Create a customer.properties file and add it to the package com.workbrain2.customer.
- The simple customer.properties text file should contain the 'name' property and the customer package name as the value like so:
name=myclient
- Create a new package for your module at com.myclient.app.modules.moduleName
- Create an empty data-config.xml and add it to the package com.myclient.app.modules.moduleName.db.
- Create an empty service-config.xml file and add it to the package com.myclient.app.modules.moduleName.svc.
As there are no defined beans yet in those XML files, there won't be any beans created. On my next post, I'll walk you through creating the Workbrain data access objects and adding those to the associated data-config.xml file.
0 comments:
Post a Comment