Discussions

EJB design: How to Use Command Pattern

  1. How to Use Command Pattern (1 messages)

    Hi,

    I have to work in Project by Useing different kinds of Design Patterns. One of them is Command Design Pattern. But I am not much avair about it. I did use Business delegate and Session FGacade but now i use Command Pattern instead of Busines delegate.

    So can get some clear idea on command pattern and can you provide sample code for this


    Thanks & Ragards
    K.Venugopal
    (S.S.E)
    Satyam Computer Services
    Pune,India
  2. How to Use Command Pattern[ Go to top ]

    I did use Business delegate and Session FGacade but now i use Command Pattern instead of Busines delegate.

    Command and Business Delegate target different goals. With Command pattern you can execute something without knowing what that something is; you can change the command at runtime, you can even apply composite and get composite commands. With business delegate, you basically wrap your components so that the users of those components don't need to know how to obtain them, to treat communication/component-specific exceptions nicely and so on.
    They are not related.

    Cheers and happy coding,
    Martin