• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Web and application clients Support

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Vlad Eroshin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic