-
1. Re: Unexpected behaviour when binding to java:comp and @Startup beans
jaikiran Jun 17, 2010 12:23 PM (in response to marius.bogoevici)This should have worked, because when EJBContainer.start() is invoked, it's expected that the java:comp is setup correctly. Let me see what's wrong.
(If you have app which can reproduce this, please mail it to me or attach it here. That will help )
-
2. Re: Unexpected behaviour when binding to java:comp and @Startup beans
marius.bogoevici Jun 17, 2010 12:54 PM (in response to jaikiran)Yes, that's what puzzles me.
I'll try to think of a way to reproduce the issue per se - the problem becomes obvious with the Weld JNDI Binding.
Meanwhile, here is a very simple example which does not quite reproduce the issue, but helps explaining what I mean.
while postconstructing the ejb, we're looking for java:comp - now if you're looking at ComponentObjectFactory, you can see that CurrentComponent.get() returns null, so the application is using the legacy branch. A "java:comp" is found during lookup, but for some reason, it does not seem to be the same as the one accessed via JavaEEComponent.getContext().
So, thanks Jaikiran for looking into this, and please let me know what you think.
-
myEarTest.tgz 9.2 KB
-
-
3. Re: Unexpected behaviour when binding to java:comp and @Startup beans
jaikiran Jun 18, 2010 4:48 AM (in response to marius.bogoevici)I think, I figured out what's wrong. I have a small patch in EJB3 code which you can test. But I want to make sure that I create this patch against the correct base. So where are you testing this currently? Against AS 6.0.0.M3 or latest AS trunk?
-
4. Re: Unexpected behaviour when binding to java:comp and @Startup beans
pmuir Jun 18, 2010 9:05 AM (in response to jaikiran)We're testing against AS trunk.