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.

Sending an email
 Post subject: Sending an email Post rating: 0   New post Posted: Tue 02 Mar, 2010, 14:50 

User rating: 0
Joined: Tue 02 Mar, 2010, 14:47
Posts: 3
Hi,
When I try to send an email from my Java code, a Dukascopy dialog pop's up asking me to allow the email operation.
How can i disable the pop? I use a Mac.

thanks,
axiom


 
 Post subject: Re: Sending an email Post rating: 0   New post Posted: Wed 10 Mar, 2010, 15:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please use RequiresFullAccess annotation

com.dukascopy.api
Annotation Type RequiresFullAccess
@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface RequiresFullAccess

When strategy loader sees this annotation for strategy class it asks user if he wants to allow the strategy full access. If such acceptance receives strategy classes, they are loaded with full access policy allowing to read/write any files, use sockets etc. Always try to avoid using this annotation, if only need to read/write to file - you have full access to "~/My Documents/My Strategies/files" folder. In this folder you can read or write any file without requesting the full access.


 

Jump to:  

  © 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