on 11-17-2009 1:03 PM
Hello!
When I create a Business Object in CAF I get some methods like "create" automatically.
With this method I can create the BO over a webservice.
My problem is: How can I call this method from the Application Service logic.
The problem is, that the EntityManeger, the SessionContext and the DataAccessService is NULL when I call only the create method.
How can I initilalize this?
Can anybody help me?
Thanks, Thomas
If you add your BO that you want to access as a dependency to your application service.
Within the implementation code for the operation you are creating you can do something like:
e.g If your BO is called Car you can call the create method:
getCarService().create(params....)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.