users@glassfish.java.net

Re: trouble with ejb decendency injection in managed bean

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 01 Nov 2011 17:52:06 -0700

Which GF version are you using?

thanks,
-marina

forums_at_java.net wrote:
> Dears,
>
> the reason because the EJB implement both (Local und Remote interface) is
> that the EJB is also requested by a remote client GUI Application.
> Because
> this client application does run in another jvm, the remote interface is
> needed as well as the local business interface.
>
> But you're right, i forgot the whole java server faces configuration. the
> managed bean is configured in the faces-config.xml.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
>
>
> <!--Name der JavaBean, das zur Laufzeit referenziert wird-->
> <!--AnzeigeWebBean: Zugriff auf die Anzeigenverwaltung-->
> <managed-bean>
> <managed-bean-name>webFassade</managed-bean-name>
> <managed-bean-class>server.web.ProtudoWebFassade</managed-bean-class>
> <managed-bean-scope>session</managed-bean-scope>
> </managed-bean>
>
> <navigation-rule>
> <display-name>Startseite</display-name>
> <from-view-id>/home.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>START</from-outcome>
> <to-view-id>/createTask.xhtml</to-view-id>
> </navigation-case>
> </navigation-rule>
> <application>
> <!--Facelets aktivieren-->
> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> </application>
>
> </faces-config>
>
>
>
> Greetings.
>
>
> --
>
> [Message sent by forum member 'fluxy']
>
> View Post: http://forums.java.net/node/859089
>
>