Composite spherically symmetric configurations in Jordan-Brans-Dicke theory