will myers wrote:I have done something similar but added a class between the session bean and the web services to handle the object creation and the talking to the web services, I have called it a facade but it could just as easily be called a DAO. I have done it like this to seperate the business and integration tiers.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
SCJP 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA5
Ionut Bucurescu wrote:I used the adapter pattern.
SCJP, SCJD, SCEA
will myers wrote:I have done something similar but added a class between the session bean and the web services to handle the object creation and the talking to the web services, I have called it a facade but it could just as easily be called a DAO. I have done it like this to seperate the business and integration tiers.
SCJP, SCJD, SCEA
SCJP 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA5
Ionut Bucurescu wrote:You don't have to use the @WebserviceRef annotation in the adapter since is not a managed class. You can instantiate the generated web service client proxy. I used the adapter to convert whatever external interface to the interface expected by my system.
SCJP, SCJD, SCEA
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranganathan Kaliyur Mannar wrote:Hi,
There is a JEE pattern called 'Web Services Broker'. You might want to take a look in the catalog page.
SCJP, SCJD, SCEA
Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Kumar Amit wrote:Web Service Broker Pattern is to expose a business service as a web service and not for consuming a web service
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Sharma Ashutosh wrote:IMHO a lot of people are unnecessarily embedding a lot of design patterns to impress the evaluators[/b]-let some simple problems has a simple solution rather than adding more patterns and more layers
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Right! We're on it! Let's get to work tiny ad!
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|