[
https://jira.jboss.org/jira/browse/JBSEAM-4071?page=com.atlassian.jira.pl...
]
Norman Richards closed JBSEAM-4071.
-----------------------------------
Resolution: Cannot Reproduce Bug
I've tested this by changing the namespace of a stateful bean in the booking app and
verified that this works. Maybe there's something else going on in your example?
unused-160-98:booking orb$ svn diff
Index: src/org/jboss/seam/example/booking/HotelSearchingAction.java
===================================================================
--- src/org/jboss/seam/example/booking/HotelSearchingAction.java (revision 10275)
+++ src/org/jboss/seam/example/booking/HotelSearchingAction.java (working copy)
@@ -17,7 +17,7 @@
import org.jboss.seam.annotations.security.Restrict;
@Stateful
-@Name("hotelSearch")
+(a)Name("example.hotel.hotelSearch")
@Scope(ScopeType.SESSION)
@Restrict("#{identity.loggedIn}")
public class HotelSearchingAction implements HotelSearching
Index: resources/WEB-INF/components.xml
===================================================================
--- resources/WEB-INF/components.xml (revision 10275)
+++ resources/WEB-INF/components.xml (working copy)
@@ -10,6 +10,7 @@
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.1.xsd
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.1.xsd">
+ <import>example.hotel</import>
<core:init jndi-pattern="@jndiPattern@" debug="true"
distributable="@distributable@"/>
<core:manager conversation-timeout="120000"
Seam does not seem to honor import declarations for EJB3 components.
--------------------------------------------------------------------
Key: JBSEAM-4071
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4071
Project: Seam
Issue Type: Bug
Components: EJB3
Affects Versions: 2.1.1.GA
Environment: Windows Vista x64, JBoss 5.1.0.GA
Reporter: Arshad Mahmood
Under seam one name component like @Name("org.acme.components.SuperAction") and
then use an import statement in components.xml like
<import>org.acme.components</import>.
This allows the views to use "SuperAction" without the full name. It's a
nice feature as it stops component developers from polluting the namespace, but still
allows users to use a simple name for the action.
This works OK for basic Seam components, but not for EJB3 components. For these the
import declaration seems to be ignored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira