From: Kal A. <ka...@te...> - 2004-04-15 08:17:53
|
Hi Stefan, I'll include an implementation in TM4J 0.9.3 - I'm also just finished with adding the other TMAPI index implementations, so I'll make a new version as soon as I have the TopicMapSystemFactory implementation done. Cheers, Kal Stefan Lischke wrote: > Hi, > > i just wanted to use TMAPI wrappers but i did not found a > TopicMapSystemFactory. > > i dont want to include any TM4J specific code, so my plan is to do the > follwoing: > ------------ > //provider factory > System.setProperty("ProviderFactory",org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl"); > > > //provide properties > System.setProperty("hibernate.connection.url", > "jdbc:mysql://localhost/tm4j"); > System.setProperty("hibernate.connection.username","tm4j"); > System.setProperty("hibernate.connection.password","tm4j"); > System.setProperty("hibernate.connection.driver_class","com.mysql.jdbc.Driver"); > > System.setProperty("hibernate.dialect","net.sf.hibernate.dialect.MySQLDialect"); > > > //The TM4J TopicMapSystemFactory > !!! > System.setProperty("org.tmapi.core.TopicMapSystemFactory",org.tm4j.tmapi.core.TopicMapSystemFactoryImpl"); > > > TopicMapSystemFactory tmsystemfac = > TopicMapSystemFactory.newInstance(); > this.tmsystem = tmsystemfac.newTopicMapSystem(); > ------------ > > Im the meantime i'll implement such a TopicMapFactory by myself > containing the following Line: > newInstance(){ > m_tmSystem = new > org.tm4j.tmapi.core.TMAPITopicMapSystemImpl("org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl",System.getProperties()); > > } > > stefan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Tm4j-developers mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-developers > > |