Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Web and application clients Support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Web and application clients Support" Watch "Web and application clients Support" New topic
Author

Web and application clients Support

Vlad Eroshin
Greenhorn

Joined: Mar 09, 2005
Posts: 20
Hello,

SCEA part 2 task requires "Your architecture and design will be graded on how well it supports both web clients and application clients". There is no problem in suporting web clients. Will it be correct if in my architecture I publish the webservices corresponding to my EJB interfaces to enable support for application clients?

Please advise.

thanks,
Vlad
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Why do you use EJB endpoint web service? In general, the EJB web service is a stateless web service. Then your web client and application client will maintain their own states in their session (that will have duplicated codes in both).
Vlad Eroshin
Greenhorn

Joined: Mar 09, 2005
Posts: 20
Thank you very much for reply.

Are you saying that it is better to use POJO end point and store the state there? I dont think that using Stateful bean to store state will be better. Stateful bean for each client will be taking a lot of resources.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
4.4.7.3.1 Maintain Session State with Stateful Session Beans .

Storing State on the Business Tier

You also can find the information about why use stateful bean to maintain states in "Core J2EE Patterns: Best Practices and Design Strategies" book.
Thomas Taeger
Ranch Hand

Joined: Dec 16, 2002
Posts: 309
Originally posted by Vlad Eroshin:
... application clients". ... Will it be correct if in my architecture I publish the webservices corresponding to my EJB interfaces to enable support for application clients?

When you will be asked in part III how an agent's Swing client is to access your webservices, what will you answer?

Thomas


www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Vlad Eroshin
Greenhorn

Joined: Mar 09, 2005
Posts: 20
I will answer that it will connection using JAX-RPC over HTTPS with client authentication.

I am thinking that using webservices will be the most apropriate in this case because HTTP/HTTPS would be the best suitable protocol to communicate over Firewals and proxies.

Vlad.
Vlad Eroshin
Greenhorn

Joined: Mar 09, 2005
Posts: 20
Or more details needed?

Clients will generate stubs from the WSDLs provided. There is a number of WebServices clients available on the market.
Thomas Taeger
Ranch Hand

Joined: Dec 16, 2002
Posts: 309
Maybe you want also consider the performance leak for XML wrapping compared to a Java client directly connecting to EJBs via cached Handles - at least in this exam.

But feeling this approach being a little bit risky for this exam is just one (and the minor) reason for my answer.
Originally posted by Vlad Eroshin:
There is a number of WebServices clients available on the market.

I would appreciate to hear some more words about techniques, products, performance comparison and comparison criteria. Not for the exam but for my interest.

Thomas
 
 
subject: Web and application clients Support