This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Maven | |
| #local | |
| mvn appengine:deploy | |
| #enviando p google, remember to copy the key that google sends and use it into the console | |
| mvn appengine:update | |
| #if something goes wrong, use this below, usually its a synchro error stuff | |
| mvn appengine:rollback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Enpoint | |
| #Declaration of a endpoint | |
| @ApiMethod(name = "getConferencesCreated", path = "getConferencesCreated", httpMethod = HttpMethod.POST) | |
| #Declaration of a attribute to be set as a entry on the endpoint | |
| public void setName(@Name(value="name of Atribute to be show") String atribute); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.appengine.api.utils.SystemProperty; | |
| import javax.mail.Message; | |
| import javax.mail.MessagingException; | |
| import javax.mail.Session; | |
| import javax.mail.Transport; | |
| import javax.mail.internet.InternetAddress; | |
| import javax.mail.internet.MimeMessage; | |
| try { | |
| Message message = new MimeMessage(session); | |
| InternetAddress from = new InternetAddress( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filename:src/main/webapp/WEB-INF/queue.xml | |
| <queue-entries> | |
| <queue> | |
| <name>emailqueue</name> | |
| <rate>1/s</rate> | |
| </queue> | |
| </queue-entries> | |
| calling it: | |
| Queue queue = QueueFactory.getDefaultQueue(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1- define a cron into the path/file /main/webapp/WEB-INF/cron.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <cronentries> | |
| <cron> | |
| <url>/daily_report</url> | |
| <description>Mail out a daily report</description> | |
| <schedule>every day 00:00</schedule> | |
| </cron> | |
| <cron> | |
| <url>/weekly_report</url> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| /** | |
| * @Author leonardocregis | |
| */ | |
| public class LineReplacer implements Filter<String> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Example for debug configurations | |
| -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static { | |
| dir = System.getProperty("user.dir") + "/src/test/resources/queue.xml"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>com.google.appengine</groupId> | |
| <artifactId>appengine-tools-sdk</artifactId> | |
| <version>${gae.version}</version> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #commandos do vi | |
| :wq! (para salvar e sair) |
OlderNewer