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

Component Diagram

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

My part II solution is based on the J2EE blueprint petstore example.
My question comes in two parts.
1. Has anybody used the following guide below to complete their component
diagram?

<<Hi!
I saw in a book for UML something like that: If an object implements some interfaces and can be changed with other implementation and not affect the system than this object can be considered a component (This is the case for all DAO's). In this case the EJBAction. HTMLAction and Event are all components? Some architects say that the component diagram represents a class diagram but with only dependencies>>

2. Can a Java client link to a EJBController to access EJB-tier?
<SFSB>
<Client>-><EJBController>-><servicelocator>-><XXEJB>

Please a brief explanation. I am not clear on the right way to
go with this.

Thx in advance.
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kayman:
If an object implements some interfaces and can be changed with other implementation and not affect the system than this object can be considered a component ...


A component in UML is a
- pluggable / replaceable
- physical
- deployable thing like a
- .jar, .jsp, .exe, ..., db table, ...
- that in case of a .jar realizes the interfaces that it provides.
- These "provided interfaces" in UML are drawn outside the component
- but are also packaged into the .jar because needed there as well.


Originally posted by Kayman:
2. Can a Java client link to a EJBController to access EJB-tier?


Surely a Java client working in a client-side Application Container (i.e. specified by J2EE spec and provided by the EJB container vendor) can access any EJB via its remote interface (even Entity EJBs, but don't!). Usually it accesses a Session EJB being a SessionFacade.

Additionally some Java Standalone Applications (not running in an Application Container, i.e. not compliant to J2EE) can access EJBs via a proprietary protocol.

Thomas
[ April 17, 2006: Message edited by: Thomas Taeger ]
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic