I assume we talk about EC2. My approach would be to launch a back-end, then put necessary files (your driver, tweak JBoss, etc), then rebundle the instance. Doing that you'll have your own, private AMI with back-end functionality, but with your changes.
Thanks a lot.
How can i didn't think about it