With which maven dependencies can i create a standalone JMS client for Glassfish?

后端 未结 4 861
我在风中等你
我在风中等你 2020-12-06 19:05

i want to create a very simple JMS standalone client to a JMS Topic hosted on my Glassfish server.

My project is built using maven.

I know there seems to be

4条回答
  •  星月不相逢
    2020-12-06 19:16

    Well for me what worked was adding gf-client.jar from the glassfish installation folder, but adding gf-client from the maven repositories did not work.

    When using maven dependencies, I found that this worked: https://stackoverflow.com/a/10123034/516188

    
        org.glassfish.main.extras
        glassfish-embedded-all
        3.1.2
    
    

    It makes for a 62Mb final JAR file, but it works. Next thing I hit this problem though, used System.exit(0) for that one: Sending message with JMS hangs on exit

提交回复
热议问题