[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2219) Introduce way to retrieve proxy object of a Seam JavaBean Component

Wolfgang Schwendt (JIRA) jira-events at lists.jboss.org
Wed Nov 7 11:41:44 EST 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-2219?page=all ]

Wolfgang Schwendt updated JBSEAM-2219:
--------------------------------------

        Summary: Introduce way to retrieve proxy object of a Seam JavaBean Component  (was: Introduce meth to retrieve proxy object of a Seam Component)
    Description: 
The EJB programming model requires that a Session Bean never passes a "this"-pointer to other client objects. Instead, 
javax.ejb.SessionContext provides a method getBusinessObject().   If a SessionBean wants to pass a reference pointing to itself to other  to clients, it first has to retrieve its own EJB object reference by calling SessionContext.getBusinessObject()  which it then can pass to other beans.     This reference returned by javax.ejb.SessionContext.getBusinessObject()
is the equivalent to Java's this pointer.     
 
With respect to Seam's interceptor framework, such a feature is missing as far normal JavaBean components are concerned.  It leads to subtile programming errors:



Consider 

org.jboss.seam.framework.Query
Method 

[To be completed, more editing follows]

  was:
sorry, accidentally hit the submit button.

More text will follow.


> Introduce way to retrieve proxy object of a Seam JavaBean Component
> -------------------------------------------------------------------
>
>                 Key: JBSEAM-2219
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2219
>             Project: JBoss Seam
>          Issue Type: Feature Request
>            Reporter: Wolfgang Schwendt
>
> The EJB programming model requires that a Session Bean never passes a "this"-pointer to other client objects. Instead, 
> javax.ejb.SessionContext provides a method getBusinessObject().   If a SessionBean wants to pass a reference pointing to itself to other  to clients, it first has to retrieve its own EJB object reference by calling SessionContext.getBusinessObject()  which it then can pass to other beans.     This reference returned by javax.ejb.SessionContext.getBusinessObject()
> is the equivalent to Java's this pointer.     
>  
> With respect to Seam's interceptor framework, such a feature is missing as far normal JavaBean components are concerned.  It leads to subtile programming errors:
> Consider 
> org.jboss.seam.framework.Query
> Method 
> [To be completed, more editing follows]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list