[EJB 3.0] - EJB 2.1 beans without mappedName
by sosopk
Hello
In my .ear file I have two jar files. one contains ejb3 beans. Another only ejb2.1 beans.
My problem is that when i want to inject EJB 2.1 beans in my EJB3 beans with
@EJB(name="ejb/myejb21", beanInterface=myejb21home.class)
or with
@EJB(name="ejb/myejb21", beanInterface=myejb21home.class, beanName="myejb21link")
jboss cannot find them. Although in ejb3 specification is indicated that ejb3 container must search for given business interface in the whole application.
The only thing I can do is to use mappedName with full jndi name. It is a problem because the jndi contains also the version number and mappedName allows no variables in @EJB to use variable jndi names.
Is it bug/feature in jboss ejb3 container?
Thank you beforehand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971932#3971932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971932
19 years, 7 months
[JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
by chuaky
4a. Delete .\booking\resources\META-INF\jboss-app.xml
4b. Create .\booking\resources\WEB-INF\jboss-app.xml with this content:
| <jboss-app>
| <app-name>seam-booking</app-name>
| </jboss-app>
|
5. Edit .\booking\resources\META-INF\application.xml, to remove the context-root tags. The result look like this:
| <application>
| <display-name>Seam Booking</display-name>
|
| <module>
| <web>
| <web-uri>jboss-seam-booking.war</web-uri>
| </web>
| </module>
| <module>
| <ejb>jboss-seam-booking.jar</ejb>
| </module>
| <module>
| <java>jboss-seam.jar</java>
| </module>
|
| </application>
|
6. Create .\booking\resources\WEB-INF\jboss-web.xml with this content:
| <jboss-web>
| <context-root>seam-booking</context-root>
| <class-loading>
| <loader-repository>
| seam.jboss.org:loader=seam-booking
| </loader-repository>
| </class-loading>
| </jboss-web>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971931#3971931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971931
19 years, 7 months
[JBoss Eclipse IDE (users)] - JBoss 4.0.4-GA won't start in Debug mode?
by dbs
Using Eclipse Callisto with JBoss 4.0.4-GA and JBoss-IDE 2.0.0-beta under Linux, with JDK 1.5.0_06.
I'd like to be able to set breakpoints and do hotspot code swapping, but this requires JBoss to be running in Debug mode. If I rightclick on my EAR file and say "Debug->Debug on Server" I get a dialog that says "JBoss is not running in Debug mode. Change? May require a restart" - No matter how many times I restart, or use the Servers->Start->Debug option to restart JBoss, that original dialog always appears, and my Debug perspective does not show debugging information.
Have I done something magical to stop Debug mode from starting? The ability to do code debugging is severely limited right now because any small change I make to my EJB's requires a packaging-rebuild, and a 'Run on Server' redploy of the application.
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971926#3971926
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971926
19 years, 7 months
[JBoss/Spring Integration] - Re: does spring deployer _require_ ejb?
by ddouglass
Thanks for the reply Ales, and for Jboss Spring deployer ;)
That's what I've been trying to do via unit test -- the JNDI lookup gets me back a Reference object that refers to the NamedXmlApplicationContext, but any attempt to use the object (casting to ApplicationContext or BeanFactory) fails down in the Spring AOP layers with IllegalArgumentException: object not of declared type.
I've culled the forums (this one and others, JBoss and Spring) but have failed to find the magic to actual make use of the bound context in any meaningful way. I'm sure I'm just missing something.
Note that the unit test I refer to is running out-of-container, but a similar "test" done via a simple deployed war is giving similar results, though I haven't configured any resource/resource-ref in web.xml, etc., yet.
I've got several backup plans: write a simple stateless EJB wrapper that just delegates to injected deps. from the context and have the webapps use the EJB (though I'm trying to avoid EJB altogether); or, for now, I can package the context/services directly into the war and work out these details for my next iteration.
Thanks for any help/pointers,
Doug
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971924#3971924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971924
19 years, 7 months