Hello ,
I see that we have 2 situations and I am not clear about what exactly is your requirment so I will explain them both .
1) If you are looking load balancing , then YES you need 2 default routes with same prefenrence value so that we can have loaad balancing based on "PER SESSION" and not per packet as seen in the configuration . In Configuration it say per packet , but its actually per session in SRX ( Since SRX is session based ) . For this you can refer :
https://kb.juniper.net/InfoCenter/index?page=content&id=KB23417&actp=search
2) If you have 2 routes with 2 different priorities , like you have mentioned :
route 0.0.0.0/0 {
qualified-next-hop 1.1.1.1 {
preference 15;
}
qualified-next-hop 2.2.2.2 {
preference 25;
}
}
By the was this configuration is correct .
In this case you have primary route as 1.1.1.1 always and once this fails , it will switch to 2.2.2.2 . If this is your requirment , then the above configuration is correct and you can implement IP monitoring for route failover .
http://kb.juniper.net/InfoCenter/index?page=content&id=KB25052&actp=search%C2%A0
But the following configuration is incorrect as this configuration applies same preference value to both route :
route 0.0.0.0/0 {
next-hop [ 1.1.1.1 2.2.2.2 ];
preference 15;
}
So this will be applied if you need to have loadbalancing as mentioned in point number 1 . I hope its clear for you .