Pages

Wednesday, December 25, 2013

Sharing VO instance Across the Application Module.

 In Previous post I say that how to access the common application module(CommonAM) via java class. As i said earlier that there is a lot of ways to achieve that.

If you see my previous post at that end of the post i say that "I'll later explain little more simplifier than this post."

here is the way. 
All setup of the application is same as of previous post. just all we needed to do two important steps to achieve that. 

Step 1: Current Application(WorkApp). it doesnt have any entity,view objects.the snap which is showing EmployeesView is under the model imported from ADFSharedLib.
Just shuffle the EmployeeView to right hand side that is WorkAM. now you can able access the ViewObject instance.




Step 2: Just same method But now I'm writing in WorkAM implementation class. somehow altering some piece of line make more simpler.





if i follow above for 'n' Application module. then code duplication we will happens each every Application module implementation class. so re-usability will fail in my case. not for all of your cases.

Step 3: let us check the db data for the employee id '100'.


Step 4: Now i'm going the run BC tester.


Step 5: check the db data again for the employee id '100'.





finally get updated. this simple techniques get works. 


In next post I'll explain this how to do this same via bean through Bean through Datacontrol.