Many times.. It's a lot easier to overcome this problem with dogs than it is rabbits.
How long it takes, and what methods are best, really depends on the dog in question.. I had one who it only took a couple of weeks but he was the kind of dog who would do anything to please me and all I had to do was make say 'uh-uh' a few times and it was never an issue again.
With another dog the problem NEVER went away. I had 4 dogs at the time and she just did not like one of the others. She didn't want the other dog anywhere near me, on my bed (wether I was there or not) or in her crate. It created a very stressful situation for the other dog who was blind. I just had to stay on top of her. Send her to her crate when she started being pissy and block off my bedroom when I wasn't there. After about 2 years a friend of mine who wanted an older, quiet, well behaved dog took my blind fellow and I just didn't bring another dog home until my jealous girl passed on.
Turdle