jamielawjen
Programmer
Hi there
I have just started a new application, which will be an SOA app. We will have the core class libraries, a manager layer, a facade layer (web services) and thin clients. I have been thinking about the application design, and i have alot of questions to ask. I will start with these few.
What i have done so far, is to create some objects using the dao pattern, factory pattern and a manager class.
This is one example.
Customer table in db
Customer bean (same as customer datatypes etc)
Customer DAO (creates sql clause, and creates dbconn class)
CustomerManager (recieves a customer bean, then creates dao and executes db command via dao)
Webservice (facade)
Thin client
Ok, i have a couple of questions. I am using vb.net
The thin client collects data from the end user, and fills a customer bean, and passes this to the webservice facade (addcustomer), this is then passed to the customer manager
1. The customer manager validates the beans data. Where should i put this validation? shoudl the bean validate itself? should the bean ever be able to have bad data? should it validate during set statements?
I would like thin clients to have access to beans (customer, user etc) so that they can pass into the system an object of th ecorrect type.
Sould my webservice accept an xml serliazed object? then deserialize on the server? is this good pratcice to simply provide what xml structure would be required? am i / should i provide a small bean remote class library?
just a few questions, i have many more to come
many thanks
Jamie
I have just started a new application, which will be an SOA app. We will have the core class libraries, a manager layer, a facade layer (web services) and thin clients. I have been thinking about the application design, and i have alot of questions to ask. I will start with these few.
What i have done so far, is to create some objects using the dao pattern, factory pattern and a manager class.
This is one example.
Customer table in db
Customer bean (same as customer datatypes etc)
Customer DAO (creates sql clause, and creates dbconn class)
CustomerManager (recieves a customer bean, then creates dao and executes db command via dao)
Webservice (facade)
Thin client
Ok, i have a couple of questions. I am using vb.net
The thin client collects data from the end user, and fills a customer bean, and passes this to the webservice facade (addcustomer), this is then passed to the customer manager
1. The customer manager validates the beans data. Where should i put this validation? shoudl the bean validate itself? should the bean ever be able to have bad data? should it validate during set statements?
I would like thin clients to have access to beans (customer, user etc) so that they can pass into the system an object of th ecorrect type.
Sould my webservice accept an xml serliazed object? then deserialize on the server? is this good pratcice to simply provide what xml structure would be required? am i / should i provide a small bean remote class library?
just a few questions, i have many more to come
many thanks
Jamie