Skip to content

Instantly share code, notes, and snippets.

View lholmquist's full-sized avatar

Lucas Holmquist lholmquist

View GitHub Profile
lincolnhawk:server-netty lholmquist$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AeroGear SimplePush Server Netty 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ aerogear-simplepush-server-netty ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
lincolnhawk:server-netty lholmquist$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AeroGear SimplePush Server Netty 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ aerogear-simplepush-server-netty ---
[INFO] Deleting /Users/lholmquist/develop/projects/aerogear-simple-push-server/server-netty/target
[INFO]
13:51:23,268 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "ag-push.war"
13:51:24,045 INFO [org.jboss.as.pojo] (MSC service thread 1-7) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).
13:51:24,057 WARN [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016003: Found beans.xml file in non-standard location: "/Users/lholmquist/develop/jboss-as-7.1.1.Final/standalone/deployments/ag-push.war/WEB-INF/classes/META-INF/beans.xml", war deployments should place beans.xml files into WEB-INF/beans.xml
13:51:24,232 INFO [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for pushee-default
13:51:24,233 INFO [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for picketlink-default
13:51:24,322 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."ag-push.war".POST_
var data = {
id: "123456"
....
},
type = "android";
data.id = pushApplicationID + "/" + type;
applicationPipe.save( data, {
//Create a notifier with the vertx apadter
notifierVertx2 = AeroGear.Notifier({
name: "client2",
settings: {
autoConnect: true,
connectURL: window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + "/eventbus",
onConnect: function() {
console.log( "connected" );
},
//creating a stompws noftifier, is we add the channels here, there is a connection error
notifierStomp = AeroGear.Notifier({
name: "stompClient",
type: "stompws",
settings: {
connectURL: "ws://localhost:61614/stomp",
channels: [ stompChannel ]
}
});
@Produces
public CorsConfiguration demoConfig() {
    return CorsConfig.enableCorsSupport()
            .anyOrigin()
            .enableCookies()
            .maxAge(20)
            .enableAllRequestMethods()
            .validRequestHeaders("accept, content-type");

}

@lholmquist
lholmquist / idb.md
Last active December 16, 2015 21:21

indexedDB Thoughts

current DataManager api

create a new datamanager with a default memory adapter

var dm = AeroGear.DataManager( "simple" );
completed: true
created_at: "2013-05-01T19:52:48Z"
description: null
duration: 1
ended_at: "2013-05-01T20:30:09Z"
high_bid: Object
    amount: 18
    auction_id: 5
    committed: true

created_at: "2013-05-01T20:30:03Z"

###assuming you are in the base directory

cp -rf target/ag-push JBOSS_HOME/standalone/deployments/ag-push.war

do this only if you have a server side change or the first time you deploy

touch JBOSS_HOME/standalone/deployments/ag-push.war.dodeploy