The ideal off the shelf heater would be a cartridge heater but they tend to be at least 1" long, need mains voltage and are very expensive. Here is a cheap 12V alternative: -
It is a vitreous enamel wire wound resistor that can handle surface temperatures up to 450°C. It is a 6.8Ω RWM 6 x 22 rated at 10W, but I am overloading it somewhat to get 240°C.
I bought a pack of five from RS. Farnell and Newark also stock them I believe.
I drilled a hole to accept it in a 19 x 19 x 8mm block of aluminium with an M6 tapped hole for the heater barrel and a small hole for a thermistor.
The tapped hole is at right angles so that the hot zone is as short as possible. It could be made parallel to get more contact area.
The outside diameter of the resistor measured 6.3mm so I drilled a 1/4" hole for it. That was too tight so I drilled it out to 6.5mm. I then wrapped aluminium kitchen foil around the resistor to make it a tight fit and rammed it in.
Here it is under test with a random bit of tube to simulate a heater barrel.
It needs about 11W (8.7V) to get to 240°C. 14.7W (10V) gives 300 °C. I haven't run it for very long so no guarantees it will last, but I can't see why not.
Compared to the aluminium clad resistors I tried before, these are cheaper and you get a more compact heater with a smaller surface area to lose heat from. Also making connections should be no problem with normal solder because the wires are long enough to cool down.