aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Architecture Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Architecture Help" Watch "Architecture Help" New topic
Author

Architecture Help

N Gopi Krishnan
Greenhorn

Joined: Nov 24, 2006
Posts: 4
We are developing the vehicle tracking system . The scope of the system is to track and manage the vehicle at various positions (Sea, Ship, Port and Inland Transport) and starts from the vessel loading to delivery of the vehicle to dealer. The system would communicate the vehicle status update to brand legacy system and exchange the data to external systems efficiently. For legacy update we decided to use MQ Series with MDB.

Capacity projections of the application,

Max no of users will be 700 and concurrent users 200.
2% growth in users/year and 5% growth in throughput transactions/year.

Application will be deploy in a Shared environment. The evnironment doesn't have tiered architecture.

We will be using Struts in Presentation Tier and Abstarct Factory in Integration Tier. Business Tier What pattern???

One architect suggest Stateless Session Bean with Business Delegate, Service Locator and Session Facade. But my client doesn't have tiered architecture in their environment. Or I can go ahead with POJO in Service Tier.

Please Advice.
jay roy
Ranch Hand

Joined: Nov 16, 2006
Posts: 145
this would be my pick

struts-->Business Delegate -->Service Locator-->Stateless session beans-->
Data Access Objets--> database.
N Gopi Krishnan
Greenhorn

Joined: Nov 24, 2006
Posts: 4
Thanks.

But my client's hosting environment doestn't have tiered architecture. So using EJB will not make any difference. Also request from the Servlet container are already managed within a pool.

Still you would suggest the same flow.

Thanks.
ManojKumar Unnikrishnan
Ranch Hand

Joined: Oct 10, 2006
Posts: 32
I would suggest:
struts(Action classes)---->Business Delegate---->Service Locator(Optional)--->DAO---->Database
The service locator is not really necessary if you are using POJO.


Systems Analyst,JCP
N Gopi Krishnan
Greenhorn

Joined: Nov 24, 2006
Posts: 4
Manoj

Can I use Business Delegate pattern in Non-EJB environment?

Thanks
ManojKumar Unnikrishnan
Ranch Hand

Joined: Oct 10, 2006
Posts: 32
Yes business delegate can be used in a non-EJB environment.I mentioned POJO to emphasise the point that even if you are using pure java classes like interfaces or DAO business delegate can serve the purpose of taking the request from client side to the server side.
N Gopi Krishnan
Greenhorn

Joined: Nov 24, 2006
Posts: 4
Thanks.

We have two different types of client (for ex: web browser and Hand Held device) will access our application. I would like to reuse the same Service objects (POJO) for another client. How do I make it? Any particular design pattern??? Please suggest.

Thanks.
ManojKumar Unnikrishnan
Ranch Hand

Joined: Oct 10, 2006
Posts: 32
Hi,
It's an interesting question of object oriented programming that you have raised.The very idea being object resusability.
So i would suggest using a Adapter pattern, hiding the implementatin behind an adapter interface recognised by the specific client.
This would enable you to resuse the component, instead of transforming it from one client to another.
Hope this answers you.
saurabh suman
Greenhorn

Joined: Nov 01, 2006
Posts: 16
Hi Gopi,
Is the handheld device is using any custom client written in java or in any other language? or it is capable of running a browser.
If cabale of running a browwser you do not have to worry but if it is a custom client I would suggest to use SFSB (if SFSB are used in your system)

Keep the point in consideration what is needed to idetify the data from handheld, if it is only 1-2 attributes then you can opt writting you own logic for updation


Sun Certified Enterprise Architect<br />Saurabh
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
Struts is a good choice for form based submission.

EJB - depends. EJB's are expensive. Don't use them unless you need security and transactional control. You don't need EJB's, If you don't have rollbacks, multiphased commit, or functions that require special user roles. Other choices in technology may force EJB's

If you can keep your sql to simple single insert/update/delete commands that are committed every time, you don't need EJB's. The front controller can access a helper class to DAO that will insert the the record into the database.


CIAO Peter M. Cooke
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Architecture Help
 
Similar Threads
Design DAO as a SLSB
Clarifications for Architect Part II Exam
Architecture! Any Suggestions.
Doubt on the faults of 2-tier architecture!
How many jsps you show on component diagram?