Skip to main content

@EJB(name = "foo") injection question (in a @ManagedBean)

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
ljnelson
Offline
Joined: 2003-08-04

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ljnelson
Offline
Joined: 2003-08-04

On Wed, Jul 31, 2013 at 8:19 PM, Laird Nelson wrote:

> How can I make it so that a reference like this:
>
> @EJB(name = "ejb/Fred")
> private Fred fred;
>
> ...in a @ManagedBean in the lib directory is "filled" with the following
> entry defined in application.xml:
>

>
> A Fred bean.
> ejb/Fred
> Session
> com.foobar.Fred
> some-ejb-jar.jar#FredBean
>
>
> ...?
>

I've put this on StackOverflow as well, in case that's your thing:
http://stackoverflow.com/questions/17985337/from-an-ear-files-applicatio...

Again, if I've got a @ManagedBean in my ear file's lib directory with named
@EJB references in it, how can I control what fills those references by
using an ear-level deployment descriptor? Am I out of luck?

Thanks,
Laird

--
http://about.me/lairdnelson