Varnish comes off easily with chemical strippers and not extremely difficult with scrapers or sanders. However, if this is a commercially manufactured bed frame it is probably a sprayed on Lacquer of some type, which also will come off fairly easily with chemical strippers. I wouldn't try to glue them with the finish on as it will leave a visible joining line and the glue may not adhere well to the surface finish...