Try reading the ant docs !
Ant, whilst a very neat tool, is still only a deployment tool. It still only automates the step that javac, cp, mkdir etc etc does.
You need to read your weblogic docs for deploying ejb's and jms classes before you configure your ant build file.