Results 1 to 3 of 3

Thread: accessing bean factory from ejb

  1. #1
    Join Date
    Aug 2004
    Posts
    4

    Default accessing bean factory from ejb

    Hi,
    How to access bean factory from ejb beans? I would like to have one instance of bean factory in my jboss server. My questions are:
    * how to startup bean factory and bind it to jndi context?
    I will use AbstractStatelessSessionBean support with my own BeanFactoryLocator which will obtain reference to bean factory from jndi.

    Other ideas for accessing spring beans from ejbs are also welcome.

  2. #2
    Join Date
    Aug 2004
    Location
    Tacoma, WA USA
    Posts
    49

    Default

    There was a discussion about this on the mailing list. I believe if you searched the archives you'd find the details.

    You can find an example of how to access POJOs from an EJB here. It's a real working EJB code in the ejbtest integration sample, that's in Spring CVS. This 'Simple' EJB is actually used remotely:

    http://cvs.sourceforge.net/viewcvs.p...st/simple/ejb/

    The code has been moved to the "attic", but it's all still there...
    ElPapa

    The delusion that people care about what I think:
    http://www.codethought.com/blog

  3. #3
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Packages were refactories a while back, but all the sample code is still live. You sholdn't need to access anything in the attic.

    http://cvs.sourceforge.net/viewcvs.p...btest/#dirlist
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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