Results 1 to 2 of 2

Thread: Injecting EJB3 local bean to Spring3 beans

  1. #1
    Join Date
    Mar 2009
    Location
    Canberra
    Posts
    6

    Default Injecting EJB3 local bean to Spring3 beans

    Hi
    I am using websphere7 , ejb3 , and spring3.2, and I am trying to inject a local Ejb bean into spring component in the web tier.
    I have no luck so far, if any body familiar with this situation please help, any link or sample code extc
    I am trying to use
    <jee:local-slsb id="myban" jndi-name="ejblocal:com.pp.AdminBeanLocal"
    business-interface="com.pp.AdminBeanLocal" />

    Thanks
    Philip

  2. #2
    Join Date
    Mar 2009
    Location
    Canberra
    Posts
    6

    Default

    Hi
    I found my problem, my Spring bean are annotated and it get created first. Then I configured in application-context.xml since the beans are created, the conatiner not recreating from the config file, that is how the injection fails.I wrote a blog in java lobby forum.

Posting Permissions

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