Drain all the beans, rinse under cold water and drain again very thoroughly.
Cut 4 spring onions (scallions) into narrow slanting slices. Thinly slice the remainder and reserve for garnish.
Combine the pineapple and juice, ginger and syrup, lime rind and juice, soy sauce and cornflour in a bowl.
Heat the oil in the wok, swirling it around until really hot. Add the spring onions and stir-fry for a minute or so. Add the green beans and bamboo shoots and continue stir-fry for 2 minutes.
Add the pineapple and ginger mixture and bring just to the boil.
Add the canned beans and stir until very hot - about a minute or so.
Season to taste, and serve with freshly boiled rice sprinkled with the reserved chopped spring onions, or serve as a vegetable accompaniment.