You have to collect your baggage, then re-check in and then go through Customs.
I thought that, outbound, the bags are tagged through? Does JQ not interline bags domestic to international? They do between JQ and QF (dom to int). Obviously on the return EVERYONE must clear customs with their bag if going from an 'international' to 'domestic' service.