Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubts regarding external system and view helpers.

 
Nilessh Ganu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • 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!


 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic