[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread j-n00b
Jaikiran, I just tried the @Service notation: | package ae; | | import javax.annotation.Resource; | import javax.ejb.TransactionAttribute; | import javax.ejb.TransactionAttributeType; | | import org.apache.log4j.Logger; | import org.jboss.ejb3.annotation.Depends; | import org.

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread j-n00b
Master.java package ae; | | import javax.annotation.Resource; | | import org.apache.log4j.Logger; | | import ae.Calculator; | | public class Master implements MasterMBean { | private static final Logger log = Logger.getLogger(Master.class); | | @Resource(mappedName =

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread jaikiran
anonymous wrote : public class Master implements MasterMBean { | What is this class (into which you are injection the EJB)? Are you using the @Service annotation? Or are you configuring the service through xml? Can you post the configurations? View the original post : http://www.jboss.com/i

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread j-n00b
Sure. I hope, this is everything you need: anonymous wrote : 11:32:01,640 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started | 11:32:01,812 INFO [STDOUT] | --- | GMS: address is 192.168.22.42:2527 | -

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread jaikiran
Please post the console logs when the server is being started and your application being deployed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204920#4204920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204920 ___

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-27 Thread j-n00b
Hey there! I have a similar question, but the @RemoteBinding Solution doesn't work. My JBoss AS 5.0.0.GA runs in "all" mode, because I need clustering capabilities. I have a usual EJB_JAR in folder "deploy" and a SAR in "deploy-hasingleton". The SAR contains an MBean which uses a SLSB defined

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread ALRubinger
"kolszew73" wrote : Ok i know, but ... it works fine in JBOSS 4.2.2 ! | I'm sympathetic to this in practice. So: [url]https://jira.jboss.org/jira/browse/EJBTHREE-1689[/ur] S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202529#4202529 Reply to th

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread kolszew73
Ok i know, but ... it works fine in JBOSS 4.2.2 ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202494#4202494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202494 ___ jbo

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread ALRubinger
"kolszew73" wrote : 1. This in not EJB3 compilant, i must use annotation org.jboss.ejb3.annotation.LocalBinding which is'n standard EJB annotation Strong words from someone trying to bypass spec scoping by injecting across unrelated JARs/EARs. ;) True story though. Looking forward we'll be mov

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread jaikiran
"kolszew73" wrote : | 2. I' have another problem, when i'm redeploy first jar, (secon not), during redeploy server stops/starts VatCounter but do not stop/start ComplexCounter (which is depended) (Jboss 4.2.2 stops/starts both). | ComplexCounter is dependent on VatCounter. So stopping/undep

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread jaikiran
anonymous wrote : 1. This in not EJB3 compilant, i must use annotation org.jboss.ejb3.annotation.LocalBinding which is'n standard EJB annotation Instead you can configure the jndi-name and local-jndi-name for the bean in a jboss.xml file. In EJB3.0 the spec does not talk about a standard defaul

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread kolszew73
Thanx, this works fine. But ... :) 1. This in not EJB3 compilant, i must use annotation org.jboss.ejb3.annotation.LocalBinding which is'n standard EJB annotation 2. I' have another problem, when i'm redeploy first jar, (secon not), during redeploy server stops/starts VatCounter but do not stop

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread jaikiran
Looks similar to http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138796. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202443#4202443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202443 ___

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean

2009-01-04 Thread NSchweig
For other people who are interested: Thats the code in the groupHandler now: | @IgnoreDependency | @EJB() private CourseHandlerRemote courseHandler; And thats it in the courseHandler: @EJB() private GroupHandlerRemote groupHandler; View the original post : http://www.jboss.com/index.ht

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean

2009-01-04 Thread NSchweig
Yeah! :-) Thats it. Thank you very much. Best regards, NSchweig View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199391#4199391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199391 __

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean

2009-01-03 Thread jaikiran
anonymous wrote : CourseHandler tries to inject groupHandler and vice versa You mean a circular dependency? Try adding @IgnoreDependency on one of the injections. See this for detatils http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117943 View the original post : http://www.jboss.com

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean

2009-01-03 Thread NSchweig
Hi, the only thing I see in the server.log that belongs to that error is: | ... | 2009-01-03 10:27:14,656 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): | | ***

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean

2009-01-02 Thread jaikiran
Please post the entire exception stacktrace and even the console logs. Which version of JBossAS and Java do you use? And are those EJBs part of the same deployed application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199298#4199298 Reply to the post :