See http://activemq.apache.org/objectmessage.html. For tests using TomEE
embedded I use:
System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES",
"java.lang,java.util,org.apache.activemq,org.fusesource.hawtbuf,com.thoughtworks.xstream.mapper,com.mycompany.myapp");
The same as the documentation and it works fine. I agree with Romain that *
is a security risk (even if that did work). As for lack of documentation
the link I provided above was enough for me. What else are you looking for?
On Sat, Jan 9, 2016 at 6:06 PM, Romain Manni-Bucau <[email protected]>
wrote:
> Setting it as system props on both sides work. It is impacting but for
> security.
> Le 9 janv. 2016 23:50, "Scott Lovenberg" <[email protected]> a
> écrit :
>
> > sgjava <sgjava <at> gmail.com> writes:
> >
> > >
> > > Answering my own question, this property must be set on client and
> > server.
> > >
> >
> > Hi!
> >
> > Any chance you remember where/how you set this? My client and server are
> > on the same box/same JVM, but setting this as a karaf environment
> variable
> > gives me nothing, setting it via properties apparently won't be a thing
> > until 5.13.1 (not yet released as of 2016.01.09) and putting
> > "System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES","*");" in
> > both the client and the server's constructors has yielded no change in
> > behavior.
> >
> > As an aside; frankly, IMHO, this is breaking behavior for a point release
> > due to the lack of documentation and the fact that it's enabled by
> > default, in a core component, on a service that I already have to
> > authenticate with to connect to even within the same JVM.
> >
> >
>
--
Steven P. Goldsmith