I am not sure about the JBoss class, but you can make a bat file that will copy your Jar file from its source directory to the '%JBOSS_HOME%\server\default\deploy' directory. That will deploy your EJB under the default config. Replace 'server' in above path with 'all' or 'minimal' as per your requirements.
Then later on, if you want, you can write your own class that will just invoke the bat file.
Alternatively, you can also define a task in 'ant' for that purpose.