I want to get the Instance of UsersFileRepository or UserRepository.
So i have to create an Instance of class of James,
And how to create a Instance of class James.
  I write a test code,but I think there is something wrong with it.
   
     DefaultConfigurationBuilder builder=new DefaultConfigurationBuilder();
   Configuration 
conf=builder.buildFromFile("D:\\JAVA\\MailServer\\james-2.2.0\\apps\\james\\SAR-INF\\config.xml");
   James j=new James();
   j.configure(conf);
     j.initialize();
     j.getUserRepository(anyone);
   
  This short code doesn't work at all,plz give a sample,I hard to know how to 
create it.
thx!

                
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  

Reply via email to