| Article: |
Configuring JBoss 4.0 JDBC Connectivity | |
| Subject: | SQL Server 2000 | |
| Date: | 2004-10-11 02:46:18 | |
| From: | HemantJoshi | |
|
Response to: SQL Server 2000
|
||
|
Dear Sir,
|
||
Showing messages 1 through 2 of 2.
-
SQL Server 2000
2004-10-11 05:16:02 Deepak Vohra [Reply | View]
-
SQL Server 2000
2005-03-30 20:18:39 kalparser [Reply | 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!





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