1 Reply Latest reply: May 12, 2013 8:02 AM by dvohra21 RSS

    POJOs or EJBs for worker classes spawned from Application Module?

    user576183
      Hello,

      I'm running JDev 11.1.2.3.0.

      I need to create a couple of worker classes that will be instantiated from my Application Module. The first will invoke PL/SQL via createCallableStatement. The second sends a message to a jabber server.

      In the Java EE world, I'd do this with stateless EJBs and use the @PreConstruct and @PostDestroy annotations to control the lifecycle.

      What is the recommended approach with ADF when using Classes to make these calls from an Application Module? Should one use POJOs and rely on WebLogic to handle garbage collection, or should/can one use EJB 3.0 stateless session beans?

      Many thanks.

      Edited by: user576183 on May 11, 2013 9:24 AM