[jetty-users] configuring Jetty NoSQL session manager with static attributes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jetty-users] configuring Jetty NoSQL session manager with static attributes

Julian Dunn
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:


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

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: [hidden email]


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
[hidden email]