I have kept bees in bear habitat over 50 years. Technology has advanced into something that actually works perfectly. All that need be done is purchase a solar energizer. Some fiberglass push in stakes. A push in T shaped ground rod and a roll of highly visable polywire. I use a S 100 gallagher solar energizer, it will powerfully shock miles of fence and since I'm in the northern side of the equator I face it south for all day sun. I often turn it off in daytime too and never have had to buy a 20 dollar replacement battery yet either. Bear hibernate in winter so I put it away then. I only need one strand at knee high and that is 100% effective! When its early Spring and I have not put the fence back up yet a bear might push one or more of the approximately 50 hives over and eat some combs, start feeling stings and run away bawling in pain. It usually takes a week or two until they get craving sweets enough to try again but they dont like painful stings. They are all sensitive to pain and cry loud even when shocked. One strand at knee high scares them and they dont come back ever again, especially since they remember the time they were painfully driven away bawling with bees all over them. I figure it hurts them a few days just like it does me when I get badly stung. If you are where bears still exist then you will need a fence but the entire investment costs less than one fully mature beehive does and if you buy a quality energizer it will last decades as mine has. It requires that you make certain to keep all things from touching the wire. If grass grows up to your knee high wire it will shock the grass instead of the bear. I also keep cattle horses and deer from knocking over my hives with that knee high strand. The animals only need shocking once to fear the fence wire but they must see it. That's why you need a colorful polywire not bare metal wire. White yellow or orange is perfect. Metal wire is invisible and they dont know where or why the barrier is there. I have bought other energizer brands and was sorry because there are no regulations on the accuracy of the jouels power in USA nor the quality of the components. Gallagher invented the electric fence to keep his horse from destroying his fancy car. He does make the best. Also make sure there is no plastic under the wire because I've seen one video of a lazy guy who had plastic sheets under the wire to keep the grass from growing. If you step on plastic and touch the wire you won't even get a shock. He made a youtube video showing his fence didnt work but he turned off comments so nobody was allowed to tell him the victim's feet must touch the ground to get shocked by the wire instead of plastic. There is no reason to make something that is made to injure with tetanus rusty nails because you or someone else will surely step on them and might lose a foot like one of my friends did.