Skip to content

Instantly share code, notes, and snippets.

/*
* JBoss, Home of Professional Open Source
* Copyright (c) 2010, Red Hat Middleware LLC, and individual contributors
* as indicated by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
interface ResourceProvider<D, R> {
Resource provide(D deployment, R ref);
}
interface Resource {
Object getDependency();
Object getTarget();
}
interface Node {
D getDescriptor(Class<D> type);
String getName();
}
interface DescribedJavaEEServer extends Node {
Collection<DescribedJavaEEApplication> getApplications();
}
interface DescribedJavaEEApplication extends Node {
11:52:34,554 INFO [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=ejblite_appexception_stateless_annotated_ejbliteservlet_vehicle_web.war,name=AppExceptionBean,service=EJB3
11:52:34,555 INFO [org.jboss.ejb3.deployers.JBossASKernel] with dependencies:
11:52:34,555 INFO [org.jboss.ejb3.deployers.JBossASKernel] and demands:
11:52:34,555 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss.ejb:service=EJBTimerService; Required: Described
11:52:34,555 INFO [org.jboss.ejb3.deployers.JBossASKernel] and supplies:
11:52:34,555 INFO [org.jboss.ejb3.deployers.JBossASKernel] jndi:cts/ejblite_appexception_stateless_annotated_ejbliteservlet_vehicle_web.war/AppExceptionBean!local
11:52:34,556 INFO [org.jboss.ejb3.deployers.JBossASKernel] jndi:cts/ejblite_appexception_stateless_annotated_ejbliteservlet_vehicle_web.war/AppExceptionBean!com.sun.ts.tests.ejb30.common.appexception.AppExceptionLocalIF
11:52:34,556 INFO [org.jboss.ejb3.deployers.JBossASKernel] Class:com.sun.ts.tests.ejb30.
@wolfc
wolfc / JBossAS7.wiki
Created January 23, 2012 11:18
Features/JBossAS7

JBossAS7

frameless

import org.jboss.noxius.Noxius;
import javax.tools.ToolProvider;
public class bootstrap {
public static void main(final String[] args) throws Exception {
Noxius.with(ToolProvider.getSystemToolClassLoader()).execute("build.java", "build", args);
}
}
import java.io.File;
import java.lang.RuntimeException;
import java.lang.String;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class build {
private static void compile(final Collection<String> options) {
package org.jboss.noxius.bootstrap;
import javax.tools.DiagnosticCollector;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;
import java.io.Writer;
import java.net.URISyntaxException;
import java.net.URL;
$ FMVN_REPO=file:/tmp/repo1 ~/work/maven/fedora-maven/tmp/bin/fmvn -X package|head -20
/usr/lib/jvm/java
Apache Maven 3.0.3 (rNON-CANONICAL_2011-10-11_11-56_mockbuild; 2011-10-11 13:56:36+0200)
Maven home: /usr/share/maven
Java version: 1.7.0_b147-icedtea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.1.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.1-3.fc16.x86_64", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<versioning>
<latest>17</latest>
<release>17</release>
</versioning>
</metadata>