following this stackoverflow post seems to have fixed it:
https://stackoverflow.com/questions/39080296/hazelcast-threads-prevent-tomee-from-stopping
creating a default producer:
@ApplicationScoped
public class NatsConnectionProducer {
@Resource(name = "baseAddressNats")
private
i am trying to subscribe to a nats streaming server in a singleton. the
idea is that it will listen for any messages from the queue while the
server is running.
it looks like it might work ok in production but during development if i
make any code change then it blows up with