Fw: [ljc] Adopt A JSR Update
by Luigi Bitonti
Hi All,
I hope all is well. There have been updates to the Adopt a JSR program. The following is a brief summary I've been asked to forward:
-------------------
FYI - The global Adopt a JSR programme is now firmly in place.
* Global project to go to is at: http://adoptajsr.java.net
** The wiki page explaining the whole program and benefits to spec
leads and EG's hangs directly off that
* From there you can join the mailing list members(a)adoptajsr.java.net
** Portugese speakers (mainly Brazlian JUG members) have their own mailing list
** We'll add more language lists as required
* The IRC channel is at adoptajsr on irc.freenode.net
We hope that this can act as an extra set of eyes, ears and volunteers
for this JSR.
Cheers,
Martijn & Bruno
-----------
Cheers,
Luigi
11 years, 10 months
Session Bean business interface inheritance
by Martin Kouba
Hi,
recently we had an issue with regard to Session Bean business interface inheritance when running CDI TCK 1.0.4.SP3 on GlassFish - see also WELD-1133 [1]. The following discussion revealed possible specification conflict (EJB 3.1 vs CDI 1.0). Pete Muir asked me to write some brief summary. So here it is :-)
The problem: it seems that session bean business interface inheritance is not allowed in EJB 3.1
(4.9.2.1 Session Bean Superclasses)
Let's assume this code:
@Local
interface Bar {}
@Local
interface Foo extends Bar {
}
@Stateless
class FooBean implements Foo {
}
According to the spec (EJB 3.1) the set of exposed client views of FooBean should only be Foo. Not Foo and Bar.
However the CDI spec defines bean types for a session bean in a following way: "The unrestricted set of bean types for a session bean contains all local interfaces of the bean and their superinterfaces" (3.2.2. Bean types of a session bean).
Note that some EJB implementations DO support this kind of inheritance out of the box (e.g. JBoss AS 7 EJB module).
Martin
[1]
https://issues.jboss.org/browse/WELD-1133
--
Martin Kouba
JBoss Quality Assurance Engineer
E-mail: mkouba(a)redhat.com
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic
11 years, 10 months
Problem with CDI and weblogic
by Mehdi Heidarzadeh
Hi @all
I have a bean annotated with @Named and @RequestScoped.
It is working perfectly in Glassfish 3.1.2 but when I deploy it in Weblogic
12.1.1 I get the following error!
Caused By: org.jboss.weld.exceptions.DefinitionException: WELD-000075
Normal scoped managed bean implementation class has a public field:
public@Named @RequestScoped class
com.x.y.web.monitoring.MonitoringController
I don't have any public field in my bean!!! all of them are private and I
use getters and setters.
Is this a bug in weblogic 12.1.1 ?
How can I update weld version in weblogic?
Thanks in advance.
--
Mehdi Heidarzadeh Ardalani
Independent JEE Consultant, Architect and Developer.
http://www.TheBigJavaBlog.com
11 years, 10 months
[TCK] Multi ClassLoader unit tests?
by Mark Struberg
Hi folks!
I know that we did not address this area at all in the spec and thus have a few problems in our implementations in this area.
Where to look at if I like to contribute a unit test for a multi-classloader scenario in the TCK?
I like to add the following test:
parent ClassLoader which has an interface X
2 child ClassLoader which have @SessionScoped implementations A and B which are independent of each other.
Try to @Inject X x; into an EJB and reuse it in both child classloaders ('webapps'). We could set to poolsize to 1.
LieGrue,
strub
11 years, 10 months