Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet
Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet
- Subject: Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet
- From: Saad Laassel <email@hidden>
- Date: Thu, 23 Oct 2008 17:13:02 -0400
I was banging my head on this, so I thought I would share it with the group:
Our Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet, this results in ERXRemoteSynchronizer not being started when initialized using ERXObjectStoreCoordinatorSynchronizer.initialize(); since initialization depends on that notification being received (Line 87 in ERXObjectStoreCoordinatorSynchronizer.java):
NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("startRemoteSynchronizer", ERXConstant.NotificationClassArray), WOApplication.ApplicationDidFinishLaunchingNotification, null);
You can bypass that by doing this instead ERXObjectStoreCoordinatorSynchronizer.synchronizer().initializeRemoteSynchronizer();
As a confirmation I also overrode didFinishLaunching() from ERXApplication and that doesn't get called either when deployed as a servlet...
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden