Re: Custom ClassLoader

"Justin T. Sampson" <[email protected]> Tue, 15 Oct 2013 01:07:20 -0700
Newsgroups gmane.comp.java.prevayler
Message-ID <CAAshuuEH3b2udt2k1W=x9twtyx8AePBaSs1SYtpky9S_ANBi9w@mail.gmail.com>
JavaSerializer has a one-arg constructor that takes a ClassLoader. Does
that not accomplish what you want? And then you can register the serializer
instance with configureJournalSerializer and/or configureSnapshotSerializer
on PrevaylerFactory.
On Oct 12, 2013 11:09 AM, "Christian Stein" <[email protected]> wrote:

> Hi everybody,
>
> I'm using Prevayler 2.6 and want to configure a custom class loader,
> especially for the JavaSerializer. As far as I can see, the
> PrevaylerFactory and the PrevaylerImpl aren't providing an easy way to set
> a custom class loader. Although http://jira.codehaus.org/browse/PRV-18 should
> have done it? Was the support removed along the way from 2.03 to 2.6?
>
> My temporary solution (read hack) is to provide an own JavaSerializer
> implementation, the uses the current thread context class loader instead of
> null, like the no-arg constructor does.
>
> Cheers,
> Christian
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> To unsubscribe go to the end of this page:
> http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
> _______________________________________________
> "Databases in Memoriam" -- http://www.prevayler.org
>
>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk

_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org