1) Goto the WebLogic admin console
2) Domain --> Environment --> Servers --> your_server
3) In Configuration --> General tab, click "View JNDI Tree"
Once you're in here, find your EJB on the left that you are trying to inject into your backing bean. Expand the tree out all the way (it will expand once for each level in the package name). When you come to the last element (which should be the name of your interface), click on it. You will see an item that looks like this:
Binding Name: | ManagersAssist-Services-ManagersAssistSessionBean#com.aires.ma.services.ManagersAssistSession |
To easily map this into your EJB, you use the following setup:
@EJB(name = "ManagersAssistSession", mappedName = "ManagersAssist-Services-ManagersAssistSessionBean")
private ManagersAssistSession maBean;
You can see that the "name" attribute corresponds to the name of your interface, which in this case is "ManagersAssistSession", or the last value in the binding name after "com.aires.ma.services". The "mappedName" attribute corresponds to the full name of the first part of the binding name. If you follow this convention, you should never have a problem looking up and injecting EJBs into your JSF backing/managed beans.