× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I experimented briefly on WAS 7 with regards to injecting data
sources into Managed Beans, but I didn't try with EJBs. When I
looked at the EJB3 feature pack for WAS 6.1, there was a note
that talked about resource injection not being fully supported.
________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] On Behalf Of James Perkins [jrperkinsjr@xxxxxxxxx]
Sent: Wednesday, April 21, 2010 5:50 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Container Mange Persistence

I thought that in the Java EE 5 spec, EJB's are supposed to be
injected into managed beans. At least it works fine on WebSphere
Application Server V7. I realize though that WAS 6.1 with the feature
pack is not JEE5, that's why I created a utility class to find EJB for
manged beans via a JNDI lookup.

I'm not sure when resource injection happens, but I think it's vendor
specific. Seems to me regardless of how you retrieve the EJB it should
perform resource injection. I will probably try to inject a
SessionContext to see if that injects properly. Also, I should
probably see if an EntityManagerFactory will inject into a servlet.

Sorry, kind of thinking out loud here. Maybe it will trigger some
thoughts for someone else too ;-) I've been battling this too long.
Wish I could just upgrade to WAS V7 and be done with, but sadly I am
not allowed.

--
James R. Perkins



On Wed, Apr 21, 2010 at 14:10, Dean, Robert <rdean@xxxxxxxxxxxx> wrote:
My understanding is that the WebSphere annotation processor will
only process injection requests for types defined in the Java EE
spec (Servlet, Listener, etc). To process injection annotations for
JSF, apparently an injection provider can be written for Mojarra
to handle those requests. We're not looking at EJB yet (probably
not until Java EE 6 -- EJB 3.1 drops the complexity level to just
about POJO), so I haven't really spent much time on it. Someone
posted on the Mojarra forum the other day about an injection
provider.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.