marc fleury wrote:
>> If, on the other hand, the optional ejb-link field is not provided, the
>> deployer must manually bind the name of the ejb-ref to a global-
>> namespace name that has an appropriate associated bean.

mf> Again with Dan on this... no-nonsense defaults is our Rule #1.

mf> The link is optional because in the case there is one datasource
mf> (95%cases) your stuff is overkill, even BEA WL does it like that AFAIK
mf> (but you are the WL power user of the year Rickard;-).  Implicit is
mf> possible and good because simple.  Simple is good.  Again check
mf> ContainerMetaData for code, trivial adaptation with your MLET thingy and
mf> the tag of the type.

mf> If not, we all agree that the work fall on the deployer (3 of 5 on the
mf> board wow!!! I think oleg is asleep ;-)
Now I am up. What are the questions?
* Should ejb-link default to ejb-ref-name?
Yes, at least it is my understanding of 14.3.2.
More precisely, if ejb-link is not specified, ejb-ref-name is used.

* Can Deployer set ejb-link in order to bind ejb-ref to an appropriate
  bean?
No, Deployer should use some vendor-specific way, "...for example,
the JNDI LinkRef mechanism..." or jboss.xml. 
At least it is my understanding of 14.3.3.

Best regards,
 Oleg 

mf> marc

>> 
>> >
>> > So:
>> > ejb-ref is for the bean, and is set by Bean Developer
>> > ejb-link refers to bean in same app., and is set by Assembler
>> > jndi-name (in jboss.xml) may be set to a JNDI-name in the global
>> > namespace, and is set by Deployer.
>> 
>> This is optionally true.  However, the specification says, "The
>> Application Assembler CAN [emphasis mine] use the ejb-link
>> element in the deployment descriptor to link an EJB reference to a
>> target enterprise bean."  Notice that it does not say must.
>> 
>> By the way, this was the way the reference implementation worked
>> the last time I used it.  However, I haven't used it since they fixed
>> all the bugs, so don't put too much stock in this.
>> 
>> -Dan
>> 
>> >
>> > Clear?
>> >
>> > /Rickard
>> >
>> > --
>> > Rickard �berg
>> >
>> > @home: +46 13 177937
>> > Email: [EMAIL PROTECTED]
>> > http://www.telkel.com
>> > http://www.jboss.org
>> > http://www.dreambean.com
>> >
>> >
>> > --
>> > --------------------------------------------------------------
>> > To subscribe:        [EMAIL PROTECTED]
>> > To unsubscribe:      [EMAIL PROTECTED]
>> > Problems?:           [EMAIL PROTECTED]
>> >
>> 
>> --
>> --------------------------------------------------------------
>> To subscribe:        [EMAIL PROTECTED]
>> To unsubscribe:      [EMAIL PROTECTED]
>> Problems?:           [EMAIL PROTECTED]


mf> --
mf> --------------------------------------------------------------
mf> To subscribe:        [EMAIL PROTECTED]
mf> To unsubscribe:      [EMAIL PROTECTED]
mf> Problems?:           [EMAIL PROTECTED]




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to