Hi all,
Please correct me if I misunderstood you guys.
When using Morphia in a Servlet environment, basically I could store
one instance of DataStore into the application context and use it
later in my servlet code like doPost()?
There is no need to get the datastore in the time when a servlet is
initialized?
Thanks.
Yu
Is it so that I could construct an instance
On Jun 23, 10:18 pm, Scott Hernandez <
scotthernan...@gmail.com> wrote:
> That Datastore and support objects were written to bethread-safe, but
> they have been re-factored significantly since the last time I took a
> keen eye to them with that in mind.
>
> The Datastore (and Mapper) should be asthread-safe as driver underneath it.
>
> I think I posted a response a while about how I do scoping in guice
> for my app, but here they are:
>
> @Singleton Datastore
> @Singleton Mongo
> @Request MyServices/MyDAO (holds some user state)
>
> We need to add this to the wiki :) I've added an issue to track them
> (and the lack of them).
>
>
>
> On Wed, Jun 23, 2010 at 11:24 AM, Mike <
michael.m...@gmail.com> wrote:
> > Any comments on thethreadsafety of morphia? The underlying MongoDB
> > Java driver is said to bethreadsafe, but what about singleton