[Java lista] EJB 3 jndi neve

Böszörményi Péter zmblevlist at gmail.com
2010. Már. 10., Sze, 09:49:13 CET


Es ez az elnevezesi mod Servlet esteben is el vajon?

On Tuesday 09 March 2010 22:37:28 István Viczián wrote:
> Szia,
> 
> Lokális neveket keres a megadott szabály szerint, és ehhez a deployer
> rendel globális neveket.
> 
> EJB 3.0 JSR 16.5.1.1 (414. old.):
> The Bean Provider uses the EJB annotation to annotate a field or setter
> property method of the bean
> class as a target for the injection of an EJB reference. The reference
> may be to a session bean’s business
> interface or to the local home interface or remote home interface of a
> session bean or entity bean.
> The following example illustrates how an enterprise bean uses the EJB
> annotation to reference another
> enterprise bean. The enterprise bean reference will have the name
> java:comp/env/com.acme.example.ExampleBean/myCart in the referencing bean’s
> naming context, where ExampleBean is the name of the class of the
> referencing bean and
> com.acme.example its package. The target of the reference must be
> resolved by the Deployer.
> package com.acme.example;
> @Stateless public class ExampleBean implements Example {
> ...
> @EJB private ShoppingCart myCart;
> ...
> }
> 
> Még némi rizsa:
> 
> http://jtechlog.blogspot.com/2009/01/jndi-nevek-ejb-krnyezetben.html
> 
> Remélem segít.
> 
> Viczi
> 
> 2010/3/9  <zmblevlist at gmail.com>:
> > Tehat akkor eselyes, h magaban vegigturja a jndi fat?
> >
> > On Tuesday 09 March 2010 22:06:28 Auth Gábor wrote:
> >> Halihó!
> >>
> >> zmblevlist at gmail.com írta:
> >> > A kerdes egyszeru: Ha jee 5 alatt egy Servletben van egy @EJB-s
> >> > annotacio egy adattagra (semmi parameter az annotacionak), akkor
> >> > milyen nevem probalja megkeresni a jndi faaban a kontener az ejb-t?
> >>
> >>   Ha jól rémlik, akkor nem nevet keres hozzá, hanem az interfész
> >> implementációját adó EJB-t. Ha több ilyen van, akkor nem tudom... :)
> >
> > --
> > Üdvözlettel,
> > Böszörményi Péter
> > _______________________________________________
> > Javalist mailing list
> > Javalist at javagrund.hu
> > http://javagrund.hu/mailman/listinfo/javalist
> 
> _______________________________________________
> Javalist mailing list
> Javalist at javagrund.hu
> http://javagrund.hu/mailman/listinfo/javalist
> 

-- 
Üdvözlettel,
Böszörményi Péter


További információk a(z) Javalist levelezőlistáról