Question: I have a Camel route such as: 

```
<route errorHandlerRef="myDeadLetterErrorHandler">
    <from uri="activemq:queue:source"/>
    <to uri="activemq:queue:destA">
    <to uri="activemq:queue:destB">
    <to uri="activemq:queue:destC">
</route>

```

When one endpoint fail, I set a redeliveryPolicy to retry to send the message some times and if it always fail the message is redelivered to the DeadLetter Queue. 

Now I'm looking for a method to send the message from the deadletter queue to the failure endpoint.. does someone have any suggestions? 

I was thinking to build a processor that extract the info of the failure endpoint like this:

```
String lastEndpointUri = exchange.getProperty(Exchange.TO_ENDPOINT, String.class);

```

And then build some kind of dynamic routing... isn't there a simpler solution?

Answer: 
Remove the attribute : `type="text/jscript"` or replace it with `text/javascript` and see if that works
error is here: 

```
<script type="text/jscript">

```

It should be like this:

```
<script type="text/javascript">

```