Article:
  Configuring JBoss 4.0 JDBC Connectivity
Subject:   SQL Server 2000
Date:   2004-10-11 05:16:02
From:   dvohra09
Response to: SQL Server 2000


What is the configuration error you are getting? Please post detail.


thanks,
Deepak

Main Topics Newest First

Showing messages 1 through 1 of 1.

  • SQL Server 2000
    2005-03-30 20:18:39  kalparser [View]

    The Hibernat-service.xml is like this:
    <server>
    <mbean code="org.jboss.hibernate.jmx.Hibernate"
    name="jboss.har:service=Hibernate">
    <attribute name="DatasourceName">java:MSSQLDS</attribute>
    <attribute name="Dialect">net.sf.hibernate.dialect.HSQLDialect</attribute>
    <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
    <attribute name="CacheProviderClass">
    net.sf.hibernate.cache.HashtableCacheProvider
    </attribute>
    </mbean>
    </server>

    And I create the session from a session bean:
    SessionFactory sf = (SessionFactory)ctx.lookup("java:/hibernate/SessionFactory");

    I got exception as below:
    javax.naming.NameNotFoundException: hibernate
    not bound


    Need help urgently!!
    Thanks!