Limited resources in Delay Tolerant Network is one of the factors that must be considered when designing a routing protocol, such as energy and space buffer of the nodes, which are continuously depleted by the exchanges of the messages between nodes in order to use the resources effectively. We propose an extension of our approach BeeAntDTN named BeeAntDTN_ Eg, which take into account the energy level of the nodes that will play the role of relays and their buffer space in order to determine if the relays are able or not to participate in the message transport, we define a new visibility between the network nodes based on information collected by artificial bees to estimate the energy of the relay nodes at the time of encounter with the destination of the messages. The new proposed approach has proven through several simulations: energy efficient and an improvement in the lifetime of nodes compared to the routing protocols, Epidemic, spary and wait prophet, MaxPro and BeeAntDTN.