Skip to content

Instantly share code, notes, and snippets.

View gaol's full-sized avatar
🌏
Learn to talk

Lin Gao gaol

🌏
Learn to talk
  • Red Hat
  • Beijing, China
  • 00:52 (UTC +08:00)
View GitHub Profile
@gaol
gaol / gist:1369041
Created November 16, 2011 02:06
netty depes in jbssws-native
[lgao@lgao core]$ find . -name "*.java" | xargs grep -n "import org.jboss.netty"
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:27:import org.jboss.netty.channel.ChannelHandlerContext;
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:28:import org.jboss.netty.channel.ChannelPipelineCoverage;
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:29:import org.jboss.netty.channel.ChannelStateEvent;
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:30:import org.jboss.netty.channel.ExceptionEvent;
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:31:import org.jboss.netty.channel.MessageEvent;
./src/main/java/org/jboss/ws/core/server/netty/AbstractNettyRequestHandler.java:32:import org.jboss.netty.channel.SimpleChannelUpstreamHandler;
./src/main/java/org/jboss/ws/core/server/netty/NettyHttpServerImpl.java:31:import org.jboss.netty.bootstrap.ServerBootstrap;
./src/m
@gaol
gaol / gist:1432437
Created December 5, 2011 05:32
vman properties
[lgao@lgao ~]$ cat .vman.properties
# Everything that can should inherit from jboss-parent.
# Third-party POMs that cannot (due to pre-existing parent reference) should have the plugin information from jboss-parent injected into them.
toolchain = http://download.devel.redhat.com/brewroot/repos/jb-eap-6-rhel-6-build/latest/maven/org/jboss/jboss-parent/9-redhat-1/jboss-parent-9-redhat-1.pom
# include BOMs for JBoss projects (eap-bom), AND third-party projects (thirdparty-bom)
boms = http://download.devel.redhat.com/brewroot/repos/jb-eap-6-rhel-6-build/latest/maven/org/jboss/component/management/jboss-dependency-management-all/6.0.1-redhat-1/jboss-dependency-management-all-6.0.1-redhat-1.pom, \
http://download.devel.redhat.com/brewroot/repos/jb-eap-6-rhel-6-latest/latest/maven/org/jboss/component/management/jboss-project-dependency-relocations/6.0.1-redhat-1/jboss-project-dependency-relocations-6.0.1-redhat-1.pom
@gaol
gaol / gist:2417827
Created April 19, 2012 01:54
List of removed files from fungal
fungal-0.11.0.Beta4/tools/tattletale/lib/tattletale.jar
fungal-0.11.0.Beta4/tools/tattletale/lib/javassist.jar
fungal-0.11.0.Beta4/tools/tattletale/lib/tattletale-ant.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/checkstyle.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/commons-cli.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/antlr.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/google-collect-snapshot.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/commons-beanutils-core.jar
fungal-0.11.0.Beta4/tools/checkstyle/lib/commons-logging.jar
fungal-0.11.0.Beta4/tools/cobertura/lib/asm-tree-3.0.jar
@gaol
gaol / gist:2496466
Created April 26, 2012 06:13
List of removed files from papaki
papaki-1.0.0.Beta3/tools/checkstyle/lib/checkstyle.jar
papaki-1.0.0.Beta3/tools/checkstyle/lib/commons-cli.jar
papaki-1.0.0.Beta3/tools/checkstyle/lib/antlr.jar
papaki-1.0.0.Beta3/tools/checkstyle/lib/google-collect-snapshot.jar
papaki-1.0.0.Beta3/tools/checkstyle/lib/commons-beanutils-core.jar
papaki-1.0.0.Beta3/tools/checkstyle/lib/commons-logging.jar
papaki-1.0.0.Beta3/tools/cobertura/lib/asm-tree-3.0.jar
papaki-1.0.0.Beta3/tools/cobertura/lib/log4j-1.2.9.jar
papaki-1.0.0.Beta3/tools/cobertura/lib/asm-3.0.jar
papaki-1.0.0.Beta3/tools/cobertura/lib/jakarta-oro-2.0.8.jar
@Entity
@Table(name = "Affected_Product")
public class AffectedProduct implements Serializable{
@Id
@GeneratedValue
private Long id;
@OneToMany(fetch = FetchType.LAZY, mappedBy = "product", cascade = {CascadeType.ALL})
@JoinTable
private Collection<LinkData> fixLocations;
@gaol
gaol / gist:5159223
Created March 14, 2013 06:14
How to persist one entity once, and refer it after that during one persistence call ?
Here is the situation:
Entity A:
-- List<Entity B>
Entity B:
-- List<Entity C>
@gaol
gaol / gist:92b893fe42dfde5ff30e
Last active August 29, 2015 14:20
teiid-jboss-integration dependency tree
[kylin@ksoong jboss-integration]$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building teiid-jboss-integration 8.11.0.Alpha3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ teiid-jboss-integration ---
[INFO] org.jboss.teiid:teiid-jboss-integration:jar:8.11.0.Alpha3-SNAPSHOT
[INFO] +- org.jboss.teiid:teiid-runtime:jar:8.11.0.Alpha3-SNAPSHOT:compile
@gaol
gaol / wildfly-core-duplicate-description-items
Last active December 1, 2015 06:52
Duplicate values in LocalDescriptions.properties files of wildfly and wildfly-core code bases
Duplicated items in File: ./controller/src/main/resources/org/jboss/as/controller/descriptions/common/LocalDescriptions.properties
core.management.security-realm.authorization.ldap.username-to-dn=User search configuration where the username is already a distinguished name.
core.management.security-realm.authorization.ldap.user-search.username-to-dn=User search configuration where the username is already a distinguished name.
Duplicated items in File: ./controller/src/main/resources/org/jboss/as/controller/descriptions/common/LocalDescriptions.properties
core.management.security-realm.authorization.ldap.user-search.username-filter.add=Add username fiter.
core.management.security-realm.authorization.ldap.user-search.username-filter.remove=Add username fiter.
Duplicated items in File: ./controller/src/main/resources/org/jboss/as/controller/descriptions/common/LocalDescriptions.properties
@gaol
gaol / Message is stored to page only
Created May 4, 2016 09:09
Message is stored to page only
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ActiveMQ Artemis Integration Tests 1.3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ integration-tests ---
[INFO] Deleting /sources/activemq-artemis/tests/integration-tests/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ integration-tests ---
@gaol
gaol / gist:feebbd48d37f347060c32a31c4523519
Created March 8, 2017 10:34
shutdown by interrupt long running servlet
18:30:25,628 DEBUG [io.undertow.request] (default I/O-1) Matched prefix path /long-running-servlet for path /long-running-servlet/HeavyProcessing
18:30:25,651 DEBUG [io.undertow.request.security] (default task-1) Attempting to authenticate HttpServerExchange{ GET /long-running-servlet/HeavyProcessing request {Accept=[*/*], User-Agent=[curl/7.51.0], Host=[127.0.0.1:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}, authentication required: false
18:30:25,653 DEBUG [io.undertow.request.security] (default task-1) Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@76806308 for HttpServerExchange{ GET /long-running-servlet/HeavyProcessing request {Accept=[*/*], User-Agent=[curl/7.51.0], Host=[127.0.0.1:8080]} response {X-Powered-By=[Undertow/1], Server=[WildFly/10]}}
18:30:25,653 DEBUG [io.undertow.request.security] (default task-1) Authentication result was ATTEMPTED for HttpServerExchange{ GET /long-running-servlet/HeavyProcessing re