File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Doubts regarding external system and view helpers. 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 "Doubts regarding external system and view helpers." Watch "Doubts regarding external system and view helpers." New topic
Author

Doubts regarding external system and view helpers.

Nilessh Ganu
Ranch Hand

Joined: Dec 22, 2009
Posts: 100
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!



Nilesh
SCJP SCWCD OCMJEA
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1083
    
  10

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.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Nilessh Ganu
Ranch Hand

Joined: Dec 22, 2009
Posts: 100
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

Joined: Dec 22, 2009
Posts: 100
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubts regarding external system and view helpers.