These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Need Help in Registering event Listeners
PostPosted: Mon Jan 23, 2006 5:10 am 
Newbie

Joined: Fri Nov 18, 2005 5:55 am
Posts: 6
I am having problem with registering event listeners even though i followed exactly as directed in its reference. I have extended the saveAndUpdateListeners and i registered programatically as follows:

Configuration configuration = new Configuration();

sessionFactory = configuration.configure().buildSessionFactory();

configuration.getSessionEventListenerConfig().setSaveOrUpdateEventListener(new SaveOrUpdateEventListenerImpl);

Now whenever SaveOrUpdate is called, this SaveOrUpdateEventListenerImpl isnt called, only default SaveOrUpdateEventListener is called. Please help me out here, what am i missing here??

_________________
Haroon Khan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 12:02 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
did u miss something here (new SaveOrUpdateEventListenerImpl????)

configuration.getSessionEventListenerConfig().setSaveOrUpdateEventListener(new SaveOrUpdateEventListenerImpl());

_________________
sHeRiN
thanks for your ratings ...... :)


Top
 Profile  
 
 Post subject: Problem in registering event listeners programatically
PostPosted: Tue Jan 24, 2006 1:24 am 
Newbie

Joined: Fri Nov 18, 2005 5:55 am
Posts: 6
I apologize, i accidently left out the paranthesis in code snippet, i have tried with exactly the code in the given reference but its NOT working, can anyone tell me what is to be done exactly when we try to register event listeners programmaticaly??? Because they dont seem to bind when we register them programmaticaly. Thank You.

_________________
Haroon Khan


Top
 Profile  
 
 Post subject: Problem in registering event listeners programatically
PostPosted: Tue Jan 24, 2006 1:44 am 
Newbie

Joined: Fri Nov 18, 2005 5:55 am
Posts: 6
I apologize, i accidently left out the paranthesis in code snippet, i have tried with exactly the code in the given reference but its NOT working, can anyone tell me what is to be done exactly when we try to register event listeners programmaticaly??? Because they dont seem to bind when we register them programmaticaly. Thank You.

_________________
Haroon Khan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.