Where to place functional tests in the (SVN) repository?
by Karel Piwko
Hi all,
I would like to commit functional tests into the SVN repository.
These tests are supposed to exercise functionality of the examples
provided with seam3-modules, weld-examples and/or special examples which
will exercise functionality through multiple seam3-modules (Example).
This tests are basically a multi-module Maven project where each
module is a test scoped dependency of the one of the Example.
I need to have own version tree within a repository, because
I would like to be able …
[View More]manage them individually without being stored in
the Example.
So, I would like to store them in https://svn.jboss.org/repos/weld/ftest
for Weld and https://svn.jboss.org/repos/seam/ftest for Seam 3,
respectively.
WDYT?
Karel
[View Less]
15 years, 3 months
Custom contexts-scopes
by Murat Can ALPAY
Is there a way to register custom contexts ?
As far as I search all the standard context are registered in the
WeldBootStrap class in a not so extensible way ? And Its unclear at least to
me how to add a new one.
Regards,
--
Murat Can ALPAY
http://mcatr.blogspot.com
15 years, 3 months
architecture diagram
by Dan Allen
Has anyone put together an architecture diagram that would help answer this
question:
> Is there an architecture diagram available that shows the relationships
between the Java EE container and CDI?
I think the root of the confusion is that some people are not understanding
the hand-off between CDI and the Java EE container. Probably the most
significant confusion comes from CDI and EJB. I get how it works in my head,
but I'm thinking having a diagram that shows this stuff in motion would
…
[View More]really help people understand it.
I'm mostly noting this down so that I don't forget it ;)
-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
[View Less]
15 years, 3 months
Generic Decorator
by Marius Bogoevici
Can anyone take a quick look at
org.jboss.weld.tests.decorators.generic.PartialDecoratorTest in
weld-core-tests and tell whether this use case is valid or invalid? I
can't seem to find anything prohibiting @Decorators to be themselves
generic (and be applied on @Dependent generic beans).
Thanks,
Marius
15 years, 3 months
JBoss Web Framework Kit and Seam
by Arbi Sookazian
As if EE6 wasn't novel and confusing enough with the change of names like
Web Beans to CDI, EJB Lite and new web/full profiles concept, etc. Now we
have some presumably new product offerings from JBoss:
http://www.jboss.com/pdf/JBbyRH_WFK_Datasheet.pdf
This one comes from out of nowhere: GWT, RichFaces, Struts, Spring, but no
Seam. No Seam. And I thought that RichFaces was an AJAX component library
for JSF. But no mention of JSF in the datasheet. Fantastic.
Oh but wait....
"Along with …
[View More]leading JBoss technologies Hibernate and Seam,
JBoss Web Framework Kit will be included in Red Hat Java
Enterprise Edition application server solutions, JBoss
Enterprise Application Platform and JBoss Enterprise Web
Platform to provide a complete, integrated environment
that supports any type of Java application. For deployments
that use the Apache Tomcat component of JBoss
Enterprise Web Server, JBoss Web Framework Kit can be
easily added to help round out any lightweight Java application
architecture."
I thought EJB Lite and web profile in EE6 was "lightweight", no? Or not
"light" enough? Because Tomcat starts up so fast.
So is JBoss/Redhat trying to gobble up some of SpringSource's customers and
market share and thus boost revenue?
Seam can integrate with Spring as was shown in SiA book. So why isn't Seam
included in this new JBoss WFK?
And does Redhat JEE app server mean JBoss 6 AS? And if yes, does that mean
JBoss 6 includes this WFK? Is it available in the current AS 6.0.0.M1
download?
[View Less]
15 years, 3 months
@ThreadScoped for Weld SE
by Peter Royle
Hi,
I've implemented ThreadContext and @ThreadScoped (revision 5267) for Weld SE.
Quick example:
---
public class DateFormatterProducer {
/** Produces a thread-safe date formatter (one instance per thread). */
@Produces @ThreadScoped
public SimpleDateFormat dateFormat() {
return new SimpleDateFormat("yyyyMMdd HHmm");
}
}
---
public class ThreadThing implements Runnable {
@Inject SimpleDateFormat dateFormat;
public void run() {
...
dateFormat.format(date)…
[View More];
...
}
}
---
public class MainClass {
public void main(@Observes ContainerInitialized, Instance<ThreadThing> threadThing, WeldContainer weld) {
Thread thread1 = new Thread(threadThing.select().get());
thread1.start();
Thread thread2 = new Thread(threadThing.select().get());
thread2.start();
thread1.join();
thread2.join();
weld.shutdown();
}
}
--- requires this decorator to be enabled ---
<beans>
<decorators>
<decorator>org.jboss.weld.environment.se.threading.RunnableDecorator</decorator>
</decorator>
</beans>
Anyone please let me know how you think this could be improved.
Thanks,
Pete R.
[View Less]
15 years, 3 months