Announcement Announcement Module
Collapse
No announcement yet.
ejb-spring-hibernate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ejb-spring-hibernate

    Hi guys.

    For a few day I'm trying to solve a small problem.
    So, I have a Spring-Hibernate application.
    I've done one EJB to expose the services.
    With jUnit everything is OK. I'm loading the application context like this:

    RunWith(SpringJUnit4ClassRunner.class)
    ContextConfiguration(locations = { "classpath:/applicationContext.xml" })
    Transactional
    TransactionConfiguration(defaultRollback = false)
    public class TestServiceImpl {

    ...................


    }

    The EJB is in one modul, the rest in another modul. (jar file)
    The problem is that I don't know how to load the applicationContext.xml from my EJB (with the spring beans and hibernate sessionFactory declaration).

    Now when I'm trying to call my services from EJB, this (this is in my spring module, another modul than the ejb modul) does not work anymore

    Autowired
    Qualifier("xmlLanguageService")
    private MyService myServ;


    this above does not work.

    I've deleted the annotation sign because I cannot post it with.


    Any ideas?

    Thanks.
    Corneliu.
Working...
X