advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

Tutorials : Developing UML Diagrams for EJBs with Poseidon :

The Analysis View Class Diagram

The Analysis view shows the EJB's different fields and methods—in the bean class, the home interface, and the EJB's remote interface. The Analysis view is the first UML diagram created when modeling an EJB. The Analysis view includes the EJB's CMP fields, their getter and setter methods, and the create and finder methods. The CMP field types, along with the return type of the methods, are specified with the <<EjbCmpField>> stereotype. The <<EJBRemoteMethod>> stereotype specifies the remote interface methods. The <<EJBBeanMethod>> stereotype specifies the implementation class methods. The <<create>> stereotype specifies the home interface create method. The <<finderMethod>> stereotype specifies the home interface finder methods Figure 6 shows the Analysis View of the example EJB.


Figure 6. The Analysis View.

The External View Class Diagram

Next, you create the external view of the EJB. The external view shows those EJB components that represent the client's view—the home interface, the remote interface, and the primary key interface. The external view shows the dependencies between the classes and interfaces. The home interface instantiates the remote interface. The return type of both the create method and the findByPrimaryKey methods is the remote interface object. The primary key class is used as the parameter in the findByPrimaryKey method of the home interface. The stereotype <instantiate>> specifies the instantiation of the remote interface from the home interface. The stereotype <<EJBPrimaryKey>> specifies the Primary key as a parameter in the home interface. Figure 4 shows the External View Class Diagram.


Figure 7. The External View Class Diagram.

The Internal View Detail Class Diagram

After creating the Analysis and the External views, you'd next model the internal view of the EJB. The internal view detail shows the implementation detail and mappings between the bean class, the home and remote interfaces, and the primary key class. The stereotypes <EJBRealizeRemote>> and <<EJBRealizeHome>> specify the remote and home interfaces implemented in the bean implementation class. Figures 8 and 9 show the internal view detail.


Figure 8. The Internal View Detail.


Figure 9. The Internal View Detail.

Because a UML model for an EJB may be reviewed and modified according to design requirements, modeling an EJB with UML prior to actually creating an EJB is an efficient method to develop EJBs. I used the Poseidon for UML tool in this tutorial, because it's so commonly used. Another UML modeling tool, such as one of the open source UML modeling tools, can certainly also be used.

Resources

 Microsoft RIA Development Center
 IBM Rational Resource Center
 Destination .NET
XML error: not well-formed (invalid token) at line 33
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Free VMware Server 2.0 Now Release Candidate
Linux Player Xandros Grabs Storied Rival Linspire
Hey Enterprise: Here Comes the 3G iPhone
MySpace Opens Profile Portability API
Microsoft Jumps Into Virtualization Fray
Eclipse Ganymede Makes It Easier for Devs
Open Source Nokia a Threat to Microsoft, Google?
Salesforce, Google Head for 2nd on Apps
HP Open Sources Unix File System for Linux
Red Hat Opens Its Network to Space

Build a Generic Histogram Generator for SQL Server
Beyond XML and JSON: YAML for Java Developers
Mastering the Windows Mobile Emulators
Avaya AE Services Provide Rapid Telephony Integration with Facebook
Featured Algorithm: Intel Threading Building Blocks: parallel_reduce
Getting Started with Windows Live Admin Center
Eight Key Practices for ASP.NET Deployment
Java ME User Interfaces: Do It with LWUIT!
Talking VPro: Transcript
Bringing Semantic Technology to the Enterprise

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES