Modeling of semi shperical pressure vessel in ANSYS


I was trying to do some analysis in ANSYS 10 on composite pressure vessel with semi chperical top and bottom. The cylinder is made of material 1 and  connected with a top and bottom semi shperical cap made of material 2. It seems like the connection between these sub strucutres are not correct. I was trying to use glue option to connect the sub structures. I believe to define a joint I have to secify something more. I am not sure how to solve the problem. I was trying to search in google for possible tutorials could not find anything  what I am looking for. I need some suggestion on  how to define the joint between two structures.  Any kind of suggestion is appreciated. Thank you.