2 Replies Latest reply on Aug 13, 2004 11:36 PM by david.wade

    Jboss - Hibernate

    aksay

      Hi. I have 2 questions: where right place to talk about Jboss-Hibernate? and workaround for this:

      I'm trying to use 3.2.6RC1, and got this exception:
      java.lang.IllegalArgumentException: Unknown session scope for jndi name [java:/hibernate/HibernateFactory]
      at org.jboss.hibernate.session.SessionContext.getSessions(SessionContext.java:182)
      at org.jboss.hibernate.session.SessionContext.getSession(SessionContext.java:88)

      Thanks!
      AKsay.

        • 1. Re: Jboss - Hibernate
          aloubyansky

          For now try to ask this on

          JBoss & JBossCache
          Installation, integration, and usage of Hibernate with JBoss and JBossCache.

          on http://forum.hibernate.org/

          • 2. Re: Jboss - Hibernate
            david.wade

            You need to specify the right container configuration.

            If using XDoclet put this in your EJB JavaDoc

            @jboss.container-configuration name="Hibernate Stateless SessionBean"
            

            Otherise put the following in your jboss.xml in your ejb jar
             <session>
             <ejb-name>MyFacade</ejb-name>
             <jndi-name>ejb/MyFacade</jndi-name>
             <configuration-name>Hibernate Stateless SessionBean</configuration-name>
            
             <method-attributes />
             </session>