| 
					
						 Hi,
 
 My sessionfactory does not get bound to the JNDI tree. The exception that i am getting is OperationNotSupportedException. And the message is "rebind not allowed in a ReadOnlyContext". This i found after debugging the hibernate source code. I am attaching the hibernate.cfg.xml file. Can you let me know how to resolve the problem
 
 Thanks,
 Mrigank
 
 
 Mapping documents:
 <?xml version='1.0' encoding='utf-8'?>
 <!DOCTYPE hibernate-configuration PUBLIC
 "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
 "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
 <hibernate-configuration>
 <!-- a SessionFactory instance listed as /jndi/name -->
 <session-factory
 name="java:comp/env/MySessionFactory">
 <!-- properties -->
 <property name="connection.datasource">jdbc/myDataSource</property>
 <property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
 <property name="show_sql">true</property>
 <property name="use_outer_join">true</property>
 <property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property> 
 <property name="jndi.url">t3://localhost:7001</property> 
 <property name="transaction.manager_lookup_class"> 
       net.sf.hibernate.transaction.WeblogicTransactionManagerLookup 
     </property> 
     <property name="transaction.factory_class"> 
       net.sf.hibernate.transaction.JTATransactionFactory 
     </property> 
 
 <!-- mapping files -->
 <mapping resource="Item.hbm.xml"/>
 </session-factory>
 </hibernate-configuration> 
					
  
						
					 |