Jammy

Does anyone know where the expression to be "jammy" comes from? It means to be lucky but I don't know how widely it's used - just a UK thing?