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
/* | |
* Copyright 2008-2011 Red Hat, Inc, and 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. | |
* | |
* This software is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
[WARNING] NoMethodError: undefined method `add_element' for nil:NilClass | |
[WARNING] enable_messaging_jmx at /Users/Bruno/opensource/torquebox/build/assembly/lib/assembly_tool.rb:285 | |
[WARNING] transform_config at /Users/Bruno/opensource/torquebox/build/assembly/lib/assembly_tool.rb:428 | |
[WARNING] chdir at org/jruby/RubyDir.java:335 | |
[WARNING] transform_config at /Users/Bruno/opensource/torquebox/build/assembly/lib/assembly_tool.rb:419 | |
[WARNING] transform_configs at /Users/Bruno/opensource/torquebox/build/assembly/bin/assemble.rb:163 | |
[WARNING] assemble at /Users/Bruno/opensource/torquebox/build/assembly/bin/assemble.rb:186 | |
[WARNING] (root) at /Users/Bruno/opensource/torquebox/build/assembly/bin/assemble.rb:194 | |
[WARNING] load at org/jruby/RubyKernel.java:1063 | |
[WARNING] (root) at -e:1 |
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
[INFO] Installing maruku gem v0.6.0 | |
[WARNING] ERROR: Error installing maruku: | |
[WARNING] maruku requires syntax (>= 1.0.0, ) | |
[WARNING] LoadError: no such file to load -- maruku | |
[WARNING] require at org/jruby/RubyKernel.java:1038 | |
[WARNING] require at file:/Users/Bruno/.m2/repository/org/jruby/jruby-complete/1.6.4/jruby-complete-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 | |
[WARNING] force_require at /Users/Bruno/opensource/torquebox/gems/bin/run-yard.rb:19 | |
[WARNING] (root) at /Users/Bruno/opensource/torquebox/gems/bin/run-yard.rb:24 | |
[WARNING] load at org/jruby/RubyKernel.java:1063 | |
[WARNING] (root) at -e:1 |
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
class BeerJob | |
def initialize | |
puts "Initializing scheduler #{Time.now}" | |
end | |
def run | |
begin | |
sleep(40000); | |
puts "Job was finished" |
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
/** | |
* Copyright 2011 Douglas Campos | |
* Copyright 2011 dynjs contributors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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
package com.abstractj.jobs; | |
import org.quartz.*; | |
import org.quartz.core.JobRunShell; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; |
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
package com.abstractj.jobs; | |
import org.quartz.*; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.Date; | |
/** | |
* User: Bruno |
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
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /Users/Bruno/rubyconfbr/torquebox-2.x.incremental.584/jboss | |
JAVA: /Library/Java/Home/bin/java | |
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<datasources> | |
<local-tx-datasource> | |
<jndi-name>DefaultDSBotelhos</jndi-name> | |
<connection-url>jdbc:mysql://127.0.0.1:3306/meh</connection-url> | |
<driver-class>com.mysql.jdbc.Driver</driver-class> | |
<user-name>root</user-name> | |
<password>root</password> |
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
➜ torquebox (2x-dev) cd modules/jobs | |
➜ jobs (2x-dev) mvn -s ../../support/settings.xml clean package | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building TorqueBox Jobs Module 2.0.0.beta2-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4:clean (default-clean) @ torquebox-jobs --- |