Results 1 to 2 of 2

Thread: Pitchfork and self-referencing @EJB injection.

  1. #1
    Join Date
    Sep 2007
    Posts
    10

    Default Pitchfork and self-referencing @EJB injection.

    If I have a service like the following, with a self referencing @EJB injection point,

    Code:
    class FooServiceImpl implement FooService {
    
      @EJB
      private FooService local
    
      ...
    
    }
    Pitchfork does not inject a self-referencing bean reference (proxy) here, rather it simply injects "this" which is a regular reference. (Therefore all calls through this reference will not invoke the regular interceptor stack for things like CMT, etc.).

    Can this be changed to inject a self-referencing bean reference instead? Otherwise, does anyone have any suggestions? Is there a better pattern for getting a self-referencing bean reference?

    (As an aside, JBoss 4.0.5+ supports injection of self-referencing @EJB's).

  2. #2
    Join Date
    Sep 2007
    Posts
    10

    Default

    Any solutions on this? Where can I log bugs against pitchfork? Pitchfork doesn't seem to have changed since January. Is it still maintained? Is there any overlap in functionality between pitchfork and the new JEE stuff in spring 2.5?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •