Our Servers are hosted by Bb. We develop a building block and hope it auto-execute when Bb Server restarts.
Is the API available, or does anyone have any suggestion ?
Can you tell us more about this building block and what it does?
It is for an integration project between Bb and HR training. The building block will be scheduled to call the web service to pull the training information from HR Training into Bb. We hope this building block can auto-run when Bb Server restarts, which will make our work easier. Thank you.
Does the data become out of sync if there is a Blackboard service restart? Since there is more than one application server, maybe a restart is not the best way to trigger the desired action?
It is for Bb Learn. We can click a button in an interface to make the building block run at the back end. But when the Bb Learn Server restarts, our building block does not run. We think that it maybe good for us to trigger our building block when Bb Learn Server restarts. Thanks.
There's not really a way to do this. You can add code for when the B2 is created, and when its removed, but nothing to kick off code when the B2 initializes. You might be able to find a Java class out there that can tell when the web app is initialized (which it is at startup) and kick off code completely in the context of your own B2, but there's no real way to have Blackboard tell you about it.
Perhaps a better solution would be to use something like cron4j or quartz to run regularly scheduled tasks, and just have a regular check-in (daily, every 4 hours, once a week) from Learn to your server to see if there is any update. You could also implement your own web service in your B2 to push updates, so when you add training to your back end server, you can push the changes to Learn.
Retrieving data ...