Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Stopping Sicstus Prolog query via Jasper
Hi,

Sorry if this is off-topic, but I have tried everywhere to get help on this
and this is the most relevent newsgroup I can find.

I am writing an application which uses Sicstus Prolog as the back-end and
Java for the front-end. Java sets up a query and then uses the Sicstus'
Jasper API to get a result from Sicstus Prolog. These queries can take a
long time and I need to be able to allow the user to cancel them from the
Java interface.

My problem is that I cannot find a way to stop queries in Jasper once they
have been started. The SICStus class has a "stopServer" method, but this
does not stop all the queries when it is called like you think it would.

I have looked a variety of hacky solutions that I can use. For example,
having a callback to Java in my query inner loop which asks a Java method
periodically if it should quit or not. These types of solutions aren't
great however, because Sicstus could easily hang the whole application if
something went wrong and it increases the coupling of the two programs.

Any ideas of how I could make the Prolog query end on the users request
would be greatly appreciated.



Report this thread to moderator Post Follow-up to this message
Old Post
Ben
09-18-04 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.