Skip to content

Instantly share code, notes, and snippets.

View emag's full-sized avatar

Yoshimasa Tanabe emag

View GitHub Profile
package hello;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework</groupId>
<artifactId>gs-messaging-jms</artifactId>
<version>0.1.0</version>
<parent>
buildscript {
repositories {
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.M6")
}
}
@emag
emag / wildfly.yml
Created June 30, 2014 05:05
Ansible Playbook For WildFly
- hosts: wildfly-server
sudo: true
user: vagrant
tasks:
- name: get wildfly
get_url: url="http://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.tar.gz" dest=/opt
@emag
emag / .gitignore
Last active August 29, 2015 14:05
.gitignore
# For Project
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
@emag
emag / dot_gitignore
Created August 31, 2014 13:42
.gitignore
# For Project
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
@emag
emag / idea.desktop
Created November 29, 2014 17:07
IntelliJ IDEA desktop file. Put this in /usr/share/applications/idea.desktop
[Desktop Entry]
Type=Application
Name=IntelliJ IDEA
Comment=JetBrains IDE
Icon=/path/to/idea-install-dir/bin/idea.png
Exec=/path/to/idea-install-dir/bin/idea.sh
Terminal=false
Categories=Development;
@emag
emag / pom.xml
Created December 11, 2014 08:01
for arquillian-cube
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>arquillian-cube</groupId>
<artifactId>basic</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
@emag
emag / ViewScopedControllerTest.java
Last active August 29, 2015 14:12
Arquillian Warp
package viewscope;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.arquillian.warp.Activity;
import org.jboss.arquillian.warp.Inspection;
import org.jboss.arquillian.warp.Warp;
@emag
emag / test.md
Last active August 29, 2015 14:17
It takes several seconds(10 - 20 sec.) between WildFly container started and deployement.

The following table is GMT.

Stage Time
Sending client request 14:47:52
My WildFly container boot 14:47:53,395
(1) My WildFly container started 14:47:59,880
(2) App deployment start 14:48:17,550

Why does it takes sevral seconds by the time deployment(between (1) - (2))?