Skip to Content
0
Former Member
Mar 15, 2007 at 10:50 AM

Sending Notifications

20 Views

Hi everybody!

We're trying to warn our portal users about some events, using the inbox channel. Using mail channel our code works perfect, but the inbox doesn´t appear to do anything. Here is the code:

RecipientFactory factory= new RecipientFactory("IBE");

IRecipient rec= factory.getRecipient(user);

ChannelFactory factory= new ChannelFactory("INBOX");

IChannel channel= factory.getChannel("INBOX");

INotificatorService serviceFactory= NotificatorServiceFactory.getInstance();

INotification notification = new OurNotification("1",new ResourceContext(getUser()));//OurNotification extends INotification

serviceFactory.send(rec,channel,notification);

Thank you! 😊