3 Replies Latest reply on Jan 18, 2010 2:38 PM by Clebert Suconic

    HornetQ integration in AS 6 - Necessary EJB3 change

    jaikiran pai Master
      Continuing the discussion from here http://community.jboss.org/message/520372#520372

      The question is how to set the right *default* resource adapter name based on the environment in which the EJB3 code runs. Since the *default* resource adapter name is something that the integration layer (= runtime environment) has knowledge of, i believe the piece of code which sets this default value should reside in that code base (i.e. outside EJB3 project codebase)

      I am thinking of a JBossMetadata post-processor implementation http://anonsvn.jboss.org/repos/jbossas/projects/metadata/ejb/trunk/src/main/java/org/jboss/metadata/process/processor/JBossMetaDataProcessor.java within the AS code base (the "server" module) which sets the metadata with a @ResourceAdapter corresponding to the default one being used in that environment. So for AS trunk, once it moves to HornetQ, this post processor will set the value to the HornetQ resource adaptor. And for EAP-5.x and other environments that processor will set it to jms-ra.rar or whichever is the correct resource adaptor in that runtime.