if you are using a swing appication ,
and you want to use ejb , simply you can use
jndi for looking up the jndi name that you specified
for your ejb in the deployment descriptor.
and call ejb method from your swing application.
you do not neeed to use servlet!