JohnT <jtroxel <at> yahoo.com> writes:

> 
> Geert Bevin <gbevin <at> uwyn.com> writes:
> 
> > 
> > ...
> > That sounds about right. However, if you want to set it up without  
> > any XML files (not even participants.xml), that should be possible  
> > too. Let me know if you want the details about that.
> > 
> > Actually, if you're looking at test examples for RIFE stuff, you can  
> > just delve into the sources and find the relevant test case there.  
> > For example:
> > https://svn.rifers.org/rife/trunk/src/unittests/com/uwyn/rife/ 
> > database/TestDbQueryManager.java
> > 

Actually, I looked at that.  These tests are using an XML file.  That's cool, 
but I still don't see why my code (below) doesn't work.  In the tests, they 
initialize with a participants file, then loop through the Datasources looking 
for a match.  I am simply trying to specify my specific datasource name in a 
property, and use that to get the actual Datasource from Datasources.  
Somehow, the property comes up null.  I'm sure it is something stupid...

Thanks.

 - JT
> 
> I'll check that out.  I would probably prefer to skip the XML, and I can't 
get 
> it to work anyway:
> 
>         Rep.initialize("rep/participants.xml");
> 
>         String dsStr = Rep.getProperties().getValueString("datasource");
> 
>         logger(this).info("Using datasource name " + dsStr);
> 
>         DS = Datasources.getRepInstance().getDatasource(dsStr);
> 
> ... Even though, in the debugger, it sure looks like the properties are 
> getting loaded correctly in initialize().
> 
> Thanks once again.
> 
>  - JT
> 




_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to