From: Stefan L. <li...@no...> - 2004-04-14 12:58:59
|
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 |
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 > > |
From: Kal A. <ka...@te...> - 2004-04-15 08:52:05
|
Hi Stefan, I've just committed an initial implementation of TopicMapSystemFactory. It compiles, but I haven't had chance to test it, but if you get chance to try it out and let me know if it works today I can have a go at finishing it off on the train on the way home ;-) The implementation uses the TopicMapSystemFactory.setProperty() method to setup the TM4J provider configuration, so the code for using it would be something like: TopicMapSystemFactory factory = TopicMapSystemFactory.newInstance(); factory.setProperty("org.tm4j.topicmap.TopicMapProviderFactory", "org.tm4j.topicmap.hibernate.TopicMapProviderFactoryImpl") factory.setProperty("hibernate.dialect", ...); // Set other TM4J provider properties here factory.newTopicMapSystem(); Sorry to make you do my testing for me, but I'm not going to get chance now until the end of the day...if you can let me know if it works, that would be great! Cheers, Kal Kal Ahmed wrote: > 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 >> >> > > > > > > ------------------------------------------------------- > 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 > > |