[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1498) inject JBoss service EJB with @In

Dilip Ramji (JIRA) jira-events at lists.jboss.org
Mon Oct 19 19:12:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12490434#action_12490434 ] 

Dilip Ramji commented on JBSEAM-1498:
-------------------------------------

Will this intercept MBean invocations and wrap them in a Seam context, or do these MBeans have to be invoked explicitly from within a Seam context? Our legacy app has a "jboss-service.xml" file with lots of MBeans and scheduled invocations set up. I was using the Seam timer feature to simulate invocation of these beans on startup in "components.xml" using the MBeans as components. Trouble is, though, that randomly some of the invocations on these components had null values injected into the dependencies so NPEs would be thrown. Also, this method does not solve the problem that these are MBeans and need to be treated as such. I'm hoping with the MBeanProxy, I'd be able to keep the service definitions as they are, and simply be able to have Seam intercept the invocations and wrap them in a context.

> inject JBoss service EJB with @In
> ---------------------------------
>
>                 Key: JBSEAM-1498
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-1498
>             Project: Seam
>          Issue Type: Feature Request
>          Components: EJB3
>            Reporter: koen handekyn
>            Assignee: Norman Richards
>            Priority: Minor
>             Fix For: 2.0.1.CR1
>
>
> to inject a Service EJB into a seam component, for consistency it would certainly be very nice to be able to inject it within SEAM with @In and optionally adding an @Name attribute to the service class. it would be more consistent and shorter than the standard jboss approach (below)
>   private GlobalConfigurationMBean globalConfiguration;
>   
>   @Depends ("upr:service=globalConfiguration")
>   public void setGlobalConfiguration(final GlobalConfigurationMBean globalConfiguration)
>   {
>      this.globalConfiguration = globalConfiguration;
>   }
>   

-- 
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

        


More information about the seam-issues mailing list