Okay, I just recognized that after searching internet, but I still wonder
why the code below works when I have one tomee (activemq) instance. Prior
to today, GoogleCalendarEvent did not need to implement Serializable.
public void updateGoogleCalendar(List<GoogleCalendarEvent> eventsToAdd)
throws Exception {
Message message = session.createMessage();
/*
*
http://stackoverflow.com/questions/6904048/object-with-collection-containing-serializable-non-primitive-objects-cant-be-s
*/
message.setObjectProperty("List<GoogleCalendarEvent>", eventsToAdd);
gCalProducer.send(message);
}
On Wed, Aug 5, 2015 at 6:52 PM, Romain Manni-Bucau <[email protected]>
wrote:
> Surely cause not serialized
> Le 5 août 2015 14:40, "Howard W. Smith, Jr." <[email protected]> a
> écrit :
>
> > Below, is what is in my tomee.xml for tomee 2nd instance,
> >
> > On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. <
> > [email protected]
> > > wrote:
> >
> > > For tomee 2nd instance, I changed server shutdown port, connector port,
> > > and add the following to tomee.xml:
> > >
> >
> > <!--
> > Internal ActiveMQ Broker
> > http://tomee.apache.org/jms-resources-and-mdb-container.html
> > -->
> > <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
> > BrokerXmlConfig = broker:(tcp://localhost:62616)
> > ServerUrl = tcp://localhost:62616
> > </Resource>
> >
> > <Resource id="MyJmsConnectionFactory" type="javax.jms.ConnectionFactory">
> > ResourceAdapter = MyJmsResourceAdapter
> > </Resource>
> >
> > <Container id="MyJmsMdbContainer" ctype="MESSAGE">
> > ResourceAdapter = MyJmsResourceAdapter
> > </Container>
> >
>