Can you set compression port on JMS client?

I think I figured it out. you have to overide the host value of the connection factory by calling setHost when the SolConnectionFactory is returned. This is the connection host and port that is used to establish the JMS connection. The URL you listed in the JNDI is only for the JNDI lookup.