Questions tagged [jboss-weld]

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI). CDI is the Java standard for dependency injection and contextual lifecycle management, a Java Community Process (JCP) specification that integrates cleanly with the Java EE platform. Any Java EE 6-compliant application server provides support for JSR-299 (even the web profile).

http://seamframework.org/Weld

See also

393 questions
6
votes
2 answers

Is interceptor really disabled by default?

I ran into this confusion today. Quote from Weld's documentation (right under Section 9.3), By default, all interceptors are disabled. We need to enable our interceptor. We can do it using beans.xml descriptor of a bean archive. However, this…
JBT
  • 8,498
  • 18
  • 65
  • 104
6
votes
3 answers

JEE6 REST Service @AroundInvoke Interceptor is injecting a null HttpServletRequest object

I have an @AroundInvoke REST Web Service interceptor that I would like to use for logging common data such as the class and method, the remote IP address and the response time. Getting the class and method name is simple using the InvocationContext,…
shonky linux user
  • 6,131
  • 4
  • 46
  • 73
6
votes
1 answer

Create interceptor qualifier thats ignore annotation value()

Is there a way to create a interceptor qualifier annotation that ignores the annotation string value for qualifying? for example: Log.java @Inherited @InterceptorBinding @Target({ElementType.METHOD,…
ethanxyz_0
  • 713
  • 12
  • 37
6
votes
3 answers

CDI injection loop

I'm running into a issue with CDI Injection into a Weld container in JBoss 7.1.1 I've got the following object model : @Stateless class ServiceEjb { @Inject A a; } class A { @Inject B b; } class B { @Inject A a; } When trying to inject A or B in…
jmcollin92
  • 2,896
  • 6
  • 27
  • 49
5
votes
3 answers

Richfaces 4 a4j:commandLink action not firing in rich:popupPanel

I seem to be having a problem where I have an a4j:commandLink on a rich:popupPanel but the action is not firing. The xhtml looks as follows:
Aaron Chambers
  • 1,354
  • 2
  • 12
  • 27
5
votes
1 answer

Can CDI inject remote instances of my Bean?

Can CDI inject EJB references in my remote EJB client? Actually I've a JUnit test case that runs locally on my system and access a EJB running on a standalone JBoss AS. I'm currently using JNDI to access remote business interface of the bean and…
Vicky
  • 5,380
  • 18
  • 60
  • 83
5
votes
6 answers

@PostConstruct called multiple time for @ConversationScoped bean

I have a @ConversationScoped bean, with a start method, like so: @PostConstruct public void start() { if (conversation.isTransient()) { conversation.begin(); log.debug("conversation.getId(): " + conversation.getId()); } } My…
Simon
  • 267
  • 1
  • 4
  • 14
5
votes
2 answers

JSF2 managed bean annotation + scope + injection confusion

I would like to achieve this idealism : To have only 1 implementation for the JSF Bean container, like to use only Spring or Weld but not both. Currently i am using Spring for my backend, so i prefer Spring. To have only 1 annotation, to choose…
Bertie
  • 17,277
  • 45
  • 129
  • 182
5
votes
3 answers

Weld - Asynchronous event observers

I am using Weld to observe events. I thought there was a way to specify if the observer was asynchronous or not, but I am not finding that annotation or documentation. Can observers be asynchronous, if so, what do I need to do to make that happen?
Walter White
5
votes
1 answer

Running a very simple Weld SE project in Eclipse

I've been using Seam 2 (also started looking into Java EE 6) in my web apps and a couple of days ago I found out that Seam's CDI can be leveraged in an SE application with Weld. According to Weld's Documentation page for Weld SE the setup is…
Andrey
  • 8,882
  • 10
  • 58
  • 82
5
votes
1 answer

In a CDI Passivation Capable bean, is it possible to have non-passivation capable dependencies be re-injected rather than passivated?

In a CDI Passivation Capable bean, is it possible to have non-passivation capable dependencies be re-injected rather than passivated? Consider this code: @SessionScoped public class UserData implements Serializable { @Inject private Logger log; …
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84
5
votes
1 answer

Wildfly 8.2: component.CREATE is missing

I just updated my Wildfly-8.1.0.Final installation to 8.2.0.Final and deployed my WAR application and ran into deployment error. It said ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613:…
Zhedar
  • 3,480
  • 1
  • 21
  • 44
5
votes
2 answers

Injecting EntityManager with a producer in tomcat

I am running a project using Hibernate and Weld CDI on tomcat 7. I have write a ServletContextListener to create the EntityManagerFactory and EntityManager during application startup. public class PersistenceListener implements…
Yashar
  • 1,122
  • 2
  • 15
  • 43
4
votes
3 answers

How to test EJB method call with Arquillian Weld EE Embedded

I would like to test an EJB, and I want to test it with Weld EE Embedded as I don't want to deploy an applicatoin server for that. Here is my class : @RunWith(Arquillian.class) public class EJBTest { @Deployment public static JavaArchive…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
4
votes
0 answers

using @Produces and @Inject across AS7 module dependencies

is it possible to use a CDI producer method defined in module A in order to CDI inject into a bean in a second module B? Is there any description on the relation between CDI and the JBoss Modules System? In producer.jar: import…
Ralf Sigmund
  • 517
  • 1
  • 4
  • 13