readthefuckingmanual.net

[SOLVED] oracle.jms.AQjmsException: JMS-137: Payload factory must be specified for destinations with ADT payloads

Error added: 2021-06-11T08:43:39Z

0 people waiting for the answer...

1 answers found.

Answer 2662 (100.0% helpful)

Very hard to work out what the answer is with this.

I've been trying to use @JmsListener with AqJMS for quite a few hours now, and I just can't get past this problem.
There aren't really any good answers to it online, and the Oracle documentation isn't helpful.

The problem occurs as soon as I add
    @Bean
    public ConnectionFactory connectionFactory(DataSource dataSource) throws JMSException {
        return AQjmsFactory.getQueueConnectionFactory(dataSource);
    }
to my Config class.

The Oracle JMS error page says "For destinations containing ADT messages, a CustomDatumFactory for a java class that maps to the SQL ADT type of the destination must be specified"
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: