Im getting a NullPointerException when I call the getProvider method. What is up?
One of two things is happening. Most often it is simply that you don’t have the active-jms.properties file in your working directory. Try printing out your working directory to make sure you are indeed where you think you are (you can do this by calling getSystemProperty(“user.dir”)). The other option is that you are passing in the name of a provider that either isn’t spelled correctly or isn’t in the correct case–provider names are case sensative. Your best bet is to copy and paste the provider name from your active-jms.properties file.