jboss-weld Questions

2

Solved

We're starting to experiment with implementing our backend services using CDI. The scenario is this: EJB with @Startup is started when EAR deployed. An ApplicationScoped bean is injected onto this...
Lascar asked 5/12, 2011 at 12:18

1

Solved

[UPDATE: After discussion on the Glassfish forums/ML at http://forums.java.net/jive/thread.jspa?messageID=480532 a bug was filed against Glassfish https://glassfish.dev.java.net/issues/show_bug.cgi...
Stefaniastefanie asked 18/8, 2010 at 5:41

3

I have two Jars A and B where A depends on B. Jar B has a single class: @ApplicationScoped public class MyManagedBean { private String user; public MyManagedBean(){ //Constructor necesary fo...
Brachylogy asked 30/9, 2011 at 11:58

3

Solved

I'm trying to inject a bean defined in a Spring context into a CDI managed component but I'm not successful. The bean is not injected, instead a new instance gets created each time the injection sh...
Todo asked 10/11, 2010 at 11:36

4

Solved

Because of CDI (and its implementation Weld), every POJO in JEE6 can be annotated with @Named, which makes the POJO accessible to the view. Does that mean that ManagedBeans are completely obsolet...
Apostil asked 28/5, 2010 at 16:48

1

Solved

I'm trying to get a POJO starting on startup within my Weld/Seam3 application but not having much luck. I've tried the following but none of them have worked: @Singleton public class StartupJobs {...
Diatomic asked 8/9, 2011 at 11:45

2

Solved

I'm trying to use CDI events in my backend services, on JBoss AS6 - ideally with maximum code reuse. I can see from the docs I can cut down on the qualifier annotation classes I have to create by ...
Carnotite asked 3/8, 2011 at 10:24

1

I like the way Guice makes it fairly straight forward to manually create your own modules each with their own bindings done in code. CDI on the other hand seems to rely more on magic rather than pr...
Jurassic asked 15/6, 2010 at 2:44

2

Solved

I have a Singleton EJB (javax.ejb.Singleton version. sigh.) which has a CDI observer method on it. When I try to deploy this to glassfish 3.1 the server fails to deploy the EAR file without any rea...
Photography asked 14/5, 2011 at 15:39

1

Solved

I just come from my tiny nice JavaSE/Guice world and am currently discovering the path of "carried by the container"-EE6. After having some trouble with Glassfish3.1, I just switched to JBoss and a...
Verdin asked 21/6, 2011 at 22:31

1

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 t...
Undertow asked 17/6, 2011 at 3:47

3

Solved

I've just switched to Weld to make use of CDI JSF 2 Beans + conversation scope. Here's my maven dependency : <dependency> <groupId>org.jboss.weld.servlet</groupId> <artifa...
Sidky asked 4/4, 2011 at 6:52

3

Solved

Currently I am trying to inject a stateless EJB into a CDI managed controller on Jboss 6 AS Final. The controller is managed in the context an accessible from the JSF pages. If I inject the statele...
Postobit asked 20/2, 2011 at 21:50

1

Solved

I've found lots of tutorials showing Weld code samples, but not an introductory overview. Could you please suggest an introductory article, or answer the following: What does Weld do/give you? H...
Leftwards asked 2/3, 2011 at 19:30

5

Solved

We have a situation where we provide an external configuration in form of a Map to our running programs. I have found that JSR-330 Dependency Injection gives a much cleaner way to use that configur...
Yoghurt asked 3/11, 2010 at 13:59

2

Solved

JSR-330 dependency injection can be applied to both Java SE and Java EE environments, while JSR-299 is titled "Contexts and Dependency Injection for the Java EE platform". Except strictly Java EE...
Attica asked 26/8, 2010 at 12:54

2

Solved

Let's say I have an interface called SocialNetworkService, and three implementations - TwitterService, FacebookService and FriendFeedService. Now I want, whenever my managed bean (or whatever web ...
Dora asked 24/10, 2010 at 17:19

1

After 2 days of debugging and trying I have no other idea than asking you for a solution. I want to use CDI (on JEE6) in a Tomcat WebApp with only simple plain old java objects (yet). As far as I ...
Granulose asked 1/10, 2010 at 10:9

1

Solved

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...
Tranquillize asked 10/8, 2010 at 16:1

2

Solved

I know it is still not quite popular, since the spec was released just a few months ago. I haven't "installed" weld yet, I'm just reading, and by this question I want to make sure I've understood ...
Aiken asked 15/2, 2010 at 8:41

5

I've looked at JBoss' Weld Reference Implementation of JSR-299 Contexts and Dependency Injection, and I wanted to know how others CDI implementations compare to each other. Specifically, I know ab...
Suberin asked 16/2, 2010 at 2:58

© 2022 - 2024 — McMap. All rights reserved.