I'm trying to persist sessions to a Mongo database and I've almost got it 
working except for one thing. I can't seem to figure out how to pass a static 
member variable through XML in order to configure the Mongo driver's ability to 
read from slaves.

Here's my configuration file:

https://gist.github.com/2897842

The line that does not seem to work is this:

<Set name="ReadPreference" 
type="com.mongodb.ReadPreference">com.mongodb.ReadPreference.SECONDARY</Set>

I get:

java.lang.IllegalStateException: Unknown type com.mongodb.ReadPreference
java.lang.reflect.InvocationTargetException

Can anyone suggest a way to make this work?

- Julian

--
Julian C. Dunn
Systems Operations Engineer

SecondMarket, Inc.
26 Broadway, 12th Floor
New York, NY 10004

v: 212-668-6687
f: 212-483-1045
e: [email protected]

---------------------------------------------------------------------------

This message is intended only for the addressee. Please notify sender by e-mail 
if you are not the intended recipient. If you are not the intended recipient, 
you may not copy, disclose, or distribute this message or its contents to any 
other person and any such actions may be unlawful.
SecondMarket, Inc. (Member FINRA/SIPC/MSRB) ("SecondMarket") does
not accept time sensitive, action-oriented messages or transaction orders, 
including orders to purchase or sell securities, via e-mail.
SecondMarket reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the SecondMarket e-mail system and archived in 
accordance with FINRA and SEC regulations.
This message is intended for those with an in-depth understanding of the high 
risk and illiquid nature of alternative assets and these assets may not be 
suitable for you. This message is not a solicitation for an order, and there is 
not enough information contained in this message in which to make an investment 
decision and any information contained herein should not be used as a basis for 
this purpose. SecondMarket does not produce in-house research, make 
recommendations to purchase or sell specific securities, provide investment 
advisory services, or conduct a general retail business.
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to