Search code examples
javajakarta-eeantwebsphereejb-3.0

how to generate EJB 3 stub using ANT task


I am using WAS application server and EJB 3. I need to generate stubs for my EJBs . Is there any ANT task to generate EJB 3 stubs ?

I know createEJBStubs can be used, but it would be grateful If i can use ANT task.

Thanks


Solution

  • Based on this faq page, when websphere is generating the stubs using an ant task, it is actually calling createEJBStubs:

    <exec executable="${was.home}/bin/createEJBStubs.${suffix}">
    

    So that's probably what you should do as well.

    (It is peculiar that EJB stubs would be needed for EJB 3.0, as that's supposed to eliminate the need. However, it seems that with websphere, you still have to generate them)