star spec lead nominations
by Dan Allen
All of us share a passion for JSR-299 and the change it brought to Java EE
6. If you are interested in showing your appreciation, perhaps you would be
willing to nominate Gavin as a star spec lead for working in a transparent
and collaborative way to create this standard. This specification is
especially unique because Gavin and the JSR-299 EG selected the use of the
Apache License for both the implementation and the TCK, a clear commitment
to openness.
Details here: http://community.jboss.org/wiki/2010StarSpecLeadNominations
While you are thinking about it, I encourage you to consider nominating
Emmanuel Bernard for JSR-303 (Bean Validation) as well. Emmanuel worked
entirely in the open (forums, spec draft, blogs) and also selected the ASL
for the implementation and TCK.
I believe that both Gavin and Emmanuel are very deserving of this award and
I certainly hope that they are recognized for their leadership.
Cheers,
-Dan
--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
14 years, 6 months
Interested in JBoss ESB integration with CDI
by Harsha
Hi
I am really interested in involving Fedora Summer of Coding with Seam
Framework as most of the methodologies used are in the path of my interest
and the exposure. Please have a look at my
resume<https://docs.google.com/fileview?id=0BymtuNMNqfTdZTMxYjYxZDktNGM2Yy00ZGEx...>.
I was a GSOC student in 2008 as well but not this time.
One of the related project i have involved is SCIFlex: (Flexible
integration of SOA and CEP). The main
idea was to build an enterprise level solution that yield SOA
infrastructure around the
CEP (Complex Event Processing) system
- Technologies Used –J2SE 5.0, Web Services, JMS, Axiom, JS, Derby,
Esper and Synapse ESB
and OLR (Online rating) module of the Citi Bank where I have experienced EJB
3, Spring, JPA, JMS, MDB, GWT, EXT-GWT, Oracle 10g, Java 1.6 and Web Logic
11g
So i am really confident and i have a good back ground to make this project
success with the help of the community. So far i have involved in various
Open Source Projects like Sci-Flex [1][2], Sahana[3], OpenMRS[4],
LimeSurvey.
[1]: http://code.google.com/p/sci-flex/
[2]: https://www.ohloh.net/accounts/harsha_halgaswatta
[3]: http://code.google.com/p/google-summer-of-code-2008-sahana/
[4]: http://openmrs.org/wiki/OpenMRS
So i am glad to know more information on this project other than what idea
itself propose and more technical docs.
Thanks
Harsha
14 years, 6 months
Using nexus-maven-plugin
by Pete Muir
All,
Please don't use the nexus-maven-plugin to automate promotion, you need to check the artifacts from the UI (as Juven says). Only use this plugin to close repos.
Pete
Begin forwarded message:
> From: "Juven Xu (JIRA)" <issues(a)sonatype.org>
> Date: 12 May 2010 02:52:46 GMT-03:00
> To: pete.muir(a)jboss.org
> Subject: [JIRA] Commented: (OSSRH-94) Add Weld to oss.sonatype.org
>
>
> [ http://issues.sonatype.org/browse/OSSRH-94?page=com.atlassian.jira.plugin... ]
>
> Juven Xu commented on OSSRH-94:
> -------------------------------
>
> # you could create separate ticket for the request, and link to this original one, the current ticket had been closed.
> # those artifacts are removed from sonatype and central
> # we normally don't do this kind of things, so please pay more attention next time, artifacts in central should not be modified or removed.
> # I guess you are using nexus-maven-plugin to automate the staging promotion process, I recommend you manually check each staged repo from UI manually to avoid this kind of mistakes.
>
>> Add Weld to oss.sonatype.org
>> ----------------------------
>>
>> Key: OSSRH-94
>> URL: http://issues.sonatype.org/browse/OSSRH-94
>> Project: Support - Open Source Project Repository Hosting
>> Issue Type: New Project
>> Reporter: Pete Muir
>> Assignee: Juven Xu
>> Time Spent: 1h 35m
>> Remaining Estimate: 0h
>>
>> Please create a OSS repo for the JSR-299 RI (new name is Weld).
>> We currently publish to repository.jboss.org/maven2 which is a shared repo for all jboss projects, so I am happy to not migrate the existing content.
>> SCM URL is currently https://svn.jboss.org/repos/webbeans/ but will change to https://svn.jboss.org/repos/weld shortly.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://issues.sonatype.org/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
14 years, 6 months
Code coverage for Seam 3 modules
by Martin Gencur
Hello all,
I've been recently working on code coverage reports for Seam 3 modules.
So far, you can see the results in a few Hudson jobs, namely:
http://hudson.qa.jboss.com/hudson/view/Seam%
203/job/Seam-3.X-international-CI/
http://hudson.qa.jboss.com/hudson/view/Seam%203/job/Seam-3.X-faces-CI/
http://hudson.qa.jboss.com/hudson/view/Seam 3/job/Seam-3.X-jms-CI
Just explore the artifacts of certain build. Look for index.html which
is an entry point to code-coverage reports. You can see individual
packages, classes and even methods - all with nice graphic I think:)
The code coverage is using EMMA framework and in Seam I used various
maven plugins to retrieve the code coverage reports. The root pom.xml of
each module contains a profile named code-coverage. For the modules
where it is needed there is also a definition of the profile in api,
impl submodules. (so far only faces module contains the definition in
api submodule because it's the only module which has tests in this
section).
You can still run tests the way you did it until this time. But when you
want to get code-coverage report, run the tests as it is stated in
mentioned hudson jobs.
For modules which need to run the test in JBossAS you just have to setup
the JBossAS and set JBOSS_HOME property. Maven will automatically start
and stop the container.
I'm also to add the code-coverage to persistence module. AFAIK the other
modules have either some problems or don't have any tests. When you want
to add the code-coverage to some other module, ping me or mail me and I
will do that. Or you can do it by yourself.
Martin Gencur / Seam QA Team
14 years, 7 months
Configuring of JMS Forwarding
by Jordan Ganoff
All,
I'd like some feedback on the following. I brought up an idea for defining
configuration for the forwarding of events over JMS in our weekly meeting on
(4/29/2010). The basic idea is that users should be able to easily
configure which events get forwarded to which destinations. A user should
be able to define a mapping of event types to destinations in a bean (and
then optionally in xml using seam-xml). This might look like:
class JmsForwardingObserver implements ObserverMethod
{
JmsForwardingConfiguration config;
...
}
class JmsForwardingConfiguration
{
// Destinations to forward to
Set<? extends Destination> getDestinations();
// Event types to observer and forward
Set<? extends Event<?>> getEventTypes();
}
By default, we would create an instance of JmsForwardingObserver for every
registered JmsForwardingConfiguration. The user could also register their
own JmsForwardingObservers to handle special forwarding requirements. And
this could all be done with seam-xml-bean-config if the user chooses.
Is there a preferred way to allow users to configure aspects of a module
yet?
In the meeting I mentioned an annotation-based configuration but on second
thought I'm not sure how that would work to define sets of destinations or
events cleanly.
WDYT?
--
Jordan Ganoff
14 years, 7 months
InterceptorExtension causing unsatisfied injection point?
by Lincoln Baxter, III
Using Weld SVN trunk:
For some reason this class is causing deployment failures for me,
complaining that "InterceptorExtension" cannot be satisfied as an injection
point. Removing @Inject definitely clears up the issue... but... I'm
guessing that's not the desired fix ;)
Caused by: org.jboss.weld.DeploymentException: Injection point has
unstatisfied dependencies. Injection point: field
org.jboss.weld.extensions.interceptor.Interceptors.interceptorExtension;
Qualifiers: [@javax.enterprise.inject.Default()]
at org.jboss.weld.Validator.validateInjectionPoint(Validator.java:232)
at org.jboss.weld.Validator.validateBean(Validator.java:80)
at org.jboss.weld.Validator.validateRIBean(Validator.java:100)
at org.jboss.weld.Validator.validateBeans(Validator.java:282)
public class Interceptors
{
@Inject
private InterceptorExtension interceptorExtension;
private Interceptors()
{
// TODO Auto-generated constructor stub
}
public boolean isInterceptorEnabled(final Class<?> clazz)
{
return interceptorExtension.getEnabledInterceptors().contains(clazz);
}
}
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
14 years, 7 months
Fwd: [seam-commits] Seam SVN: r12493 - in modules/faces/trunk/impl/src/main: resources/META-INF/services and 1 other directory.
by Pete Muir
Guys,
We cannot rely on statics in Seam 3. Please don't add code like this. If you have a problem accessing the BeanManager from your code, please ask here about the best solution.
Nik, can you revert this please. And then explain what situation you are trying to address.
Thanks.
Begin forwarded message:
> From: seam-commits(a)lists.jboss.org
> Date: 14 April 2010 13:50:21 GMT+01:00
> To: seam-commits(a)lists.jboss.org
> Subject: [seam-commits] Seam SVN: r12493 - in modules/faces/trunk/impl/src/main: resources/META-INF/services and 1 other directory.
> Reply-To: seam-commits(a)lists.jboss.org
>
> Author: nickarls
> Date: 2010-04-14 08:50:21 -0400 (Wed, 14 Apr 2010)
> New Revision: 12493
>
> Added:
> modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerPickupExtension.java
> modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/SingletonBeanManagerProvider.java
> Modified:
> modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerAware.java
> modules/faces/trunk/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
> Log:
> Last attempt singletonish approach when others fail. Yes, I'm ashamed.
>
> Modified: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerAware.java
> ===================================================================
> --- modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerAware.java 2010-04-14 12:21:26 UTC (rev 12492)
> +++ modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerAware.java 2010-04-14 12:50:21 UTC (rev 12493)
> @@ -45,6 +45,7 @@
> beanManagerProviders.add(ServletContextBeanManagerProvider.DEFAULT);
> beanManagerProviders.add(JndiBeanManagerProvider.DEFAULT);
> beanManagerProviders.add(JndiBeanManagerProvider.JBOSS_HACK);
> + beanManagerProviders.add(SingletonBeanManagerProvider.DEFAULT);
> }
>
> protected BeanManager getBeanManager()
>
> Added: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerPickupExtension.java
> ===================================================================
> --- modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerPickupExtension.java (rev 0)
> +++ modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/BeanManagerPickupExtension.java 2010-04-14 12:50:21 UTC (rev 12493)
> @@ -0,0 +1,56 @@
> +/*
> + * JBoss, Home of Professional Open Source
> + * Copyright 2010, Red Hat, Inc., and individual contributors
> + * by the @authors tag. See the copyright.txt in the distribution for a
> + * full listing of individual contributors.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package org.jboss.seam.faces.cdi;
> +
> +import javax.enterprise.event.Observes;
> +import javax.enterprise.inject.spi.AfterBeanDiscovery;
> +import javax.enterprise.inject.spi.BeanManager;
> +import javax.enterprise.inject.spi.Extension;
> +
> +/**
> + * Singleton(ish) extension that observes the AfterBeanDiscovery event and stores the BeanManager for access
> + * in places where injection is not available and JNDI or ServletContext access is not preferable.
> + *
> + * @author Nicklas Karlsson
> + *
> + */
> +public class BeanManagerPickupExtension implements Extension
> +{
> + private static BeanManagerPickupExtension instance;
> + private volatile BeanManager beanManager;
> +
> + public BeanManager getBeanManager()
> + {
> + return beanManager;
> + }
> +
> + public static BeanManagerPickupExtension getInstance()
> + {
> + return instance;
> + }
> +
> + public void pickupBeanManager(@Observes AfterBeanDiscovery e, BeanManager beanManager)
> + {
> + this.beanManager = beanManager;
> + BeanManagerPickupExtension.instance = this;
> + }
> +}
>
> Added: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/SingletonBeanManagerProvider.java
> ===================================================================
> --- modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/SingletonBeanManagerProvider.java (rev 0)
> +++ modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/cdi/SingletonBeanManagerProvider.java 2010-04-14 12:50:21 UTC (rev 12493)
> @@ -0,0 +1,43 @@
> +/*
> + * JBoss, Home of Professional Open Source
> + * Copyright 2010, Red Hat, Inc., and individual contributors
> + * by the @authors tag. See the copyright.txt in the distribution for a
> + * full listing of individual contributors.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package org.jboss.seam.faces.cdi;
> +
> +import javax.enterprise.inject.spi.BeanManager;
> +
> +/**
> + * A BeanManager provider for an extension provided singleton
> + *
> + * @author Nicklas Karlsson
> + *
> + */
> +public class SingletonBeanManagerProvider implements BeanManagerProvider
> +{
> +
> + public static final BeanManagerProvider DEFAULT = new SingletonBeanManagerProvider();
> +
> + @Override
> + public BeanManager getBeanManager()
> + {
> + return BeanManagerPickupExtension.getInstance().getBeanManager();
> + }
> +
> +}
>
> Modified: modules/faces/trunk/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
> ===================================================================
> --- modules/faces/trunk/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension 2010-04-14 12:21:26 UTC (rev 12492)
> +++ modules/faces/trunk/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension 2010-04-14 12:50:21 UTC (rev 12493)
> @@ -1,3 +1,4 @@
> org.jboss.seam.faces.context.ViewScopedExtension
> org.jboss.seam.faces.context.FlashScopedExtension
> -org.jboss.seam.faces.context.FacesAnnotationsAdapterExtension
> \ No newline at end of file
> +org.jboss.seam.faces.context.FacesAnnotationsAdapterExtension
> +org.jboss.seam.faces.cdi.BeanManagerPickupExtension
>
> _______________________________________________
> seam-commits mailing list
> seam-commits(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-commits
14 years, 7 months