Maintain and control the code

royjayd
royjayd used Ask the Experts™
on
hi guys

My project flow is UI --> Java layer --> DAO --> database

I want to know
how i can stop a programmer from using the DAO directlyfrom UI ?

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
separate the DAO classes into different module, don't give the DAO jar access to GUI module.

Maven the best way to achive this.
Commented:
Agree with ksivananth.

Add an addition layer in your application architechture.

ie. My project flow is UI --> Java layer --> NEW LAYER --> DAO --> database.

Programmer can access the NEW LAYER and the NEW LAYER will further talk to DAO layer.

Author

Commented:
>>Maven the best way to achive this.

I know maven, can you explain with example how maven can be used to accheive this?

thx.

Author

Commented:
can anyone help me here ?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial