Extract is highly concentrated. If you use the same amount of real rum there won't be a much of a rum flavor. If you can substitute the rum for another liquid in the recipe it might work, but I wouldn't trust it and, again it will alter the product. If the rum flavoring goes into a whipped cream part of the eclairs you cannot use the amount of real rum you need to get the flavor you want because it will water down the cream if you use more than the recipe calls for in extract.
I could maybe give a better answer if I had the recipe.
You can make the eclairs using a different extract flavor.