A resin composition for sealing an organic electroluminescent device, comprising: a drying agent, a curable component, and a binder resin; wherein the resin composition is obtained by pulverizing a mixture of the drying agent, the binder resin and a solvent so that a mean diameter of the drying agent becomes 5 um or less, and then mixing the curable component with the mixture; and wherein a surface roughness Ra of the shear failure surface after curing the resin composition is 0.5 μm or more, and 2.0 μm or less, wherein the surface roughness Ra of the shear failure surface is measured according to the following method: 1. an adhesive film having a thickness of 20 um is produced from the resin composition, together with peel sheets on both sides of the adhesive layer; 2. a peel sheet provided on a side adhering to the organic electroluminescent device is peeled off, and the adhesive film and a 5mm-square glass are stuck together while heating at 60°C; 3. after peeling away the peel sheet provided on the adhesive layer at a side adhering to a seal substrate, the adhesive film is compressed onto a 12mm-square glass under the conditions of 60°C/500 gf/3 s; 4. the thus-prepared sample is subjected to thermal curing at 100°C in a heating furnace for 3 hours; 5. while horizontally applying a head to the 5mm-square adhesive film portion of the sample in which glass/ adhesive film/glass are laminated in this order, a shear force is applied until breaking and the adhesive film portion is broken down; and 6. the surface roughness Ra of the broken adhesive film is measured using a surface profile-measuring laser microscope. a drying agent, a curable component, and a binder resin; wherein the resin composition is obtained by pulverizing a mixture of the drying agent, the binder resin and a solvent so that a mean diameter of the drying agent becomes 5 um or less, and then mixing the curable component with the mixture; and wherein a surface roughness Ra of the shear failure surface after curing the resin composition is 0.5 μm or more, and 2.0 μm or less, wherein the surface roughness Ra of the shear failure surface is measured according to the following method: 1. an adhesive film having a thickness of 20 um is produced from the resin composition, together with peel sheets on both sides of the adhesive layer; 2. a peel sheet provided on a side adhering to the organic electroluminescent device is peeled off, and the adhesive film and a 5mm-square glass are stuck together while heating at 60°C; 3. after peeling away the peel sheet provided on the adhesive layer at a side adhering to a seal substrate, the adhesive film is compressed onto a 12mm-square glass under the conditions of 60°C/500 gf/3 s; 4. the thus-prepared sample is subjected to thermal curing at 100°C in a heating furnace for 3 hours; 5. while horizontally applying a head to the 5mm-square adhesive film portion of the sample in which glass/ adhesive film/glass are laminated in this order, a shear force is applied until breaking and the adhesive film portion is broken down; and 6. the surface roughness Ra of the broken adhesive film is measured using a surface profile-measuring laser microscope. 1. an adhesive film having a thickness of 20 um is produced from the resin composition, together with peel sheets on both sides of the adhesive layer; 2. a peel sheet provided on a side adhering to the organic electroluminescent device is peeled off, and the adhesive film and a 5mm-square glass are stuck together while heating at 60°C; 3. after peeling away the peel sheet provided on the adhesive layer at a side adhering to a seal substrate, the adhesive film is compressed onto a 12mm-square glass under the conditions of 60°C/500 gf/3 s; 4. the thus-prepared sample is subjected to thermal curing at 100°C in a heating furnace for 3 hours; 5. while horizontally applying a head to the 5mm-square adhesive film portion of the sample in which glass/ adhesive film/glass are laminated in this order, a shear force is applied until breaking and the adhesive film portion is broken down; and 6. the surface roughness Ra of the broken adhesive film is measured using a surface profile-measuring laser microscope.