Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Not able to run strategy with neo4j
 Post subject: Not able to run strategy with neo4j Post rating: 0   New post Posted: Fri 29 Apr, 2011, 17:19 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Dear Support!

We was trying to build application with storage backend based on neo4j graph database. I attached sample code. Application compiled without any problems, starting and after one or two seconds closing without any notice.
@RequiresFullAccess specified, all libraries included.
I checked, database also initiated, at least, database engine created all infrastructure.
No errors, just suddenly stop.

P.S.
I was trying to attach archive with neo4j libraries but your server dont allow me to do it. Here is link on archive:
https://axonsoftware.biz/customers/neo.zip


Attachments:
File comment: Demo strategy code
Neo.java [1.93 KiB]
Downloaded 330 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Not able to run strategy with neo4j database engine Post rating: 0   New post Posted: Mon 02 May, 2011, 08:18 

User rating: -
Hi there,
it might be that the shutdown lifecycle hook is called to early. Have you checked that

@Override
public void onStop() throws JFException {
//Closing databaes
db.shutdown();
}

Is only called once per application start/stop? Is "public class Neo implements IStrategy" really a Singleton?

You could even ask on the Neo4j mailing list, https://lists.neo4j.org/mailman/listinfo/user

/peter neubauer


 
 Post subject: Re: Not able to run strategy with neo4j database engine Post rating: 0   New post Posted: Mon 02 May, 2011, 17:32 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

onStop called only once. Actually, it called when strategy stopping his work to perform cleanup.
Thing is that in our case strategy calling onStart, initiate database and then, instead of continue execution, shutting down without any notice.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com