-
September 27th, 2011, 06:25 AM
#1
Automatic subscribe to different items
Hello
In the hello world example the subscribe method starts specific thread
public void subscribe(String itemName, Object itemHandle,
boolean needsIterator)
throws SubscriptionException, FailureException {
if (itemName.equals("greetings")) {
gt = new GreetingsThread(itemHandle);
gt.start();
}
}
we are trying to start the thread in init method so even if the subscribe method is not called the thread should run on server side processing the data
public void init(Map params, File configDir) throws DataProviderException {
}
The problem we are getting with the itemHandle Object
can anyone provide a snippet of code to call the thread in init method, as we tried in init method but giving error on server console for the itemHandle object in
listener.smartUpdate function
Similar Threads
-
By bartol82 in forum Adapter SDKs
Replies: 1
Last Post: August 30th, 2011, 10:15 AM
-
By antiGuru in forum Adapter SDKs
Replies: 1
Last Post: February 5th, 2010, 09:55 AM
-
By rd2008 in forum General
Replies: 9
Last Post: October 10th, 2008, 10:38 AM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 02:11 PM
-
By CitiMan in forum Adapter SDKs
Replies: 8
Last Post: November 30th, 2006, 04:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:21 PM.
Bookmarks