3 Replies Latest reply on Jul 30, 2009 4:36 PM by Pete Muir

    Question about deployment type resolution

    Denis Anisimov Newbie

      From the spec :

      A bean class or producer method or field may specify at most one deployment type.

      Deployment type can be declared explicitly for bean type.
      It can be also inherited from parent.
      But deployment type can present in stereotype declared for bean.
      There can be several stereotypes for bean.
      And stereotypes can be also inherited.
      So what is the resolution algorithm for deployment type
      for various cases ?
      Is it correct that several declared stereotypes with different deployment
      types are error ?
      Suppose bean has deployment type declared ( directly or via stereotype ) and
      his parent also has  inherited deployment type.
      What is correct :

      1. bean has its deployment type

      2. error .