create notification method and beans