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: 
Change both script tag's type attribute to `type="text/javascript"` instead of `type="text/jscript"`

```
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" 
        type="text/javascript" ></script>
<script type="text/javascript">
    $(document).ready(function () {
        alert('test');  
    });       
</script>

```
type="text/jscript" could be the problem. If you change that to type="text/javascript" it does seem to work.