2 Replies Latest reply on Oct 14, 2014 11:26 AM by jandebryan

    Deploying Spring Application as Jar

    jandebryan

      Is it possible to deploy and run a spring application as a jar to JBOSS AS 7.1.1? I'm trying to determine how standalone services like a JMS consumers (or others that are not part of a web app) that uses the org.springframework.jms.listener.DefaultMessageListenerContainer can be deployed to JBOSS without including them within a WAR.  So, bundle the application as as jar file and deploy and have the DMLC startup and listen for messages. 

       

      I can successfully deploy the jar to JBOSS (it resolves the classpath and shows it as deployed, but the DMLC doesn't seems to actually start as it doesn't connect to the topic (configurations for internal connectivity to JMS topic were confirmed by way of an MDB).

        • 1. Re: Deploying Spring Application as Jar
          pmm

          DefaultMessageListenerContainer is sort of an issue because it opens threads. On WildFly you have ManagedExecutorService available which should make it possible to make DefaultMessageListenerContainer use JBoss threads.

          You should be able to deploy our application as a WAR or EAR. Even if you just use a server or ejb to kick off spring.

          • 2. Re: Deploying Spring Application as Jar
            jandebryan

            Thanks. In fact I was able to kick it off packaged as a war, didn't try and ear or using an EJB to kickstart it.