• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubts regarding external system and view helpers.

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have few doubts regarding my Part 2 assignment design:

1. External system:

I have a requirement where an external system provides an input data to suD. External system exposes an WS.
I am planning to have a POJO bean that will poll for the input data.

Question A: does above strategy looks good or could I assume external system to send the data asynchonously instead??.

The data from external system is consumed by a USER person to make a manual entry in suD.
I am planning to send a JMS message containing the data object to the user with an assumption that the USER has mechanism to get some notification and do a manual entry into suD thereon. An email could also be sufficient but I am using JMS message so that any other use of the data can also be made as required.

Question B: does this mechanism looks good ?

2. For Entity classes, is it advisable to make use of value objects so as to be sent to presentation layer to be displayed in view jsps(especially the request confirmatory screens). But with this, my class diagram will have value objects for almost each of the entity classes(~3-4 in my case). Or can i have view helpers to do so ?

Thanks in advance!


 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
2. For Entity objects, from EJB 3 (JPA) onwards, is just a POJO with annotations. Yon can use the same class to be passed around and used in view. You don't need to use value objects to mirror entities.
 
Nilessh Ganu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ranganathan Kaliyur Mannar wrote:2. For Entity objects, from EJB 3 (JPA) onwards, is just a POJO with annotations. Yon can use the same class to be passed around and used in view. You don't need to use value objects to mirror entities.



You are right.
I was thinking in another situation(apart from confirmatory screens) where an abbreviated version of Entity could be useful typically when you don't want to expose some of the field values.

Any takes for the first question ?
 
Nilessh Ganu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nilessh Ganu wrote:I have few doubts regarding my Part 2 assignment design:

1. External system:

I have a requirement where an external system provides an input data to suD. External system exposes an WS.
I am planning to have a POJO bean that will poll for the input data.

Question A: does above strategy looks good or could I assume external system to send the data asynchonously instead??.

The data from external system is consumed by a USER person to make a manual entry in suD.
I am planning to send a JMS message containing the data object to the user with an assumption that the USER has mechanism to get some notification and do a manual entry into suD thereon. An email could also be sufficient but I am using JMS message so that any other use of the data can also be made as required.

Question B: does this mechanism looks good ?



Can I have comments on above approach?
 
reply
    Bookmark Topic Watch Topic
  • New Topic