{"id":18045411,"url":"https://github.com/lance/dm-ispan-preso","last_synced_at":"2025-08-01T00:02:41.816Z","repository":{"id":1660766,"uuid":"2386940","full_name":"lance/dm-ispan-preso","owner":"lance","description":"Sample code and presentation notes StrangeLoop 2011 talk","archived":false,"fork":false,"pushed_at":"2011-09-16T14:01:36.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:48:46.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lance.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-14T17:27:09.000Z","updated_at":"2013-09-30T17:40:37.000Z","dependencies_parsed_at":"2022-09-04T11:21:40.178Z","dependency_job_id":null,"html_url":"https://github.com/lance/dm-ispan-preso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fdm-ispan-preso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fdm-ispan-preso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fdm-ispan-preso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fdm-ispan-preso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lance","download_url":"https://codeload.github.com/lance/dm-ispan-preso/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T18:13:05.786Z","updated_at":"2025-04-05T03:41:58.704Z","avatar_url":"https://github.com/lance.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Notes and sample code from the StrangeLoop 2011 presentation.\n\n\n $ cat .rvmrc\nrvm use jruby-1.6.4@beer --create\n\n $ . .rvmrc \nUsing /Users/lanceball/.rvm/gems/jruby-1.6.4 with gemset beer\n\n $ gem install torquebox-server --pre --source http://torquebox.org/2x/builds/LATEST/gem-repo/\nFetching: torquebox-core-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-transactions-2.x.incremental.427.gem (100%)\nFetching: blankslate-2.1.2.4.gem (100%)\nFetching: torquebox-configure-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-messaging-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-naming-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-rake-support-2.x.incremental.427.gem (100%)\nFetching: torquebox-security-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-vfs-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-web-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-cache-2.x.incremental.427-java.gem (100%)\nFetching: torquebox-stomp-2.x.incremental.427.gem (100%)\nFetching: torquebox-2.x.incremental.427.gem (100%)\nFetching: thor-0.14.6.gem (100%)\nFetching: torquebox-server-2.x.incremental.427-java.gem (100%)\nError: Your application used more memory than the safety cap of 500m.\nSpecify -J-Xmx####m to increase it (#### = cap size in MB).\nSpecify -w for full OutOfMemoryError stack trace\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ jurby -S -J-Xmx1024m gem install torquebox-server --pre --source http://torquebox.org/2x/builds/LATEST/gem-repo/\n-bash: jurby: command not found\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ jruby -S -J-Xmx1024m gem install torquebox-server --pre --source http://torquebox.org/2x/builds/LATEST/gem-repo/\nSuccessfully installed torquebox-server-2.x.incremental.427-java\n1 gem installed\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ gem install bundler\nFetching: bundler-1.0.18.gem (100%)\nSuccessfully installed bundler-1.0.18\n1 gem installed\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ bundle install\nFetching source index for http://torquebox.org/2x/builds/LATEST/gem-repo/\nFetching source index for http://rubygems.org/\nUsing rake (0.9.2) \nInstalling addressable (2.2.6) \nInstalling bcrypt-ruby (2.1.4) \nUsing bundler (1.0.18) \nInstalling dm-core (1.1.0) \nInstalling fastercsv (1.5.4) \nInstalling json (1.4.6) \nInstalling dm-serializer (1.1.0) \nInstalling dm-timestamps (1.1.0) \nInstalling stringex (1.2.2) \nInstalling uuidtools (2.1.2) \nInstalling dm-types (1.1.0) \nInstalling haml (3.1.3) \nInstalling rack (1.3.2) \nInstalling sass (3.1.7) \nInstalling tilt (1.3.3) \nInstalling sinatra (1.2.6) \nUsing torquebox-core (2.x.incremental.427) \nUsing torquebox-cache (2.x.incremental.427) \nYour bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.\n\n $ torquebox\nTasks:\n  torquebox deploy ROOT     # Deploy an application to TorqueBox\n  torquebox undeploy ROOT   # Undeploy an application from TorqueBox\n  torquebox run             # Run TorqueBox\n  torquebox cli             # Run the JBoss AS7 CLI\n  torquebox env [VARIABLE]  # Display TorqueBox environment variables\n  torquebox help [TASK]     # Describe available tasks or one specific task\n\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ torquebox deploy .\nDeployed: dm-ispan-preso-knob.yml\n    into: /Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/deployments\n\n\u003e\u003e lanceball @ Neptune (jruby-1.6.4@beer) ~/dm-ispan-preso [master*] \u003c\u003c  \n $ cat /Users/lanceball/.rvm/gems/jruby-1.6.4\\@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/deployments/dm-ispan-preso-knob.yml\n--- \napplication: \n  root: /Users/lanceball/dm-ispan-preso\nenvironment: {}\n\n\n $ torquebox run\n=========================================================================\n\n  JBoss Bootstrap Environment\n\n  JBOSS_HOME: /Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss\n\n  JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home//bin/java\n\n  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\n\n=========================================================================\n\n16:20:35,588 INFO  [org.jboss.modules] JBoss Modules version 1.0.2.GA\n16:20:35,864 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA\n16:20:35,909 INFO  [org.jboss.as] JBoss AS 7.x.incremental.109 \"Lightning\" starting\n16:20:36,556 INFO  [org.torquebox.jobs.as] readElement\n16:20:36,557 INFO  [org.torquebox.jobs.as] done readElement\n16:20:36,717 INFO  [org.torquebox.bootstrap] Bootstrapping TorqueBox\n16:20:36,718 INFO  [org.torquebox.bootstrap] ===\u003e /Users/lanceball/.rvm/rubies/jruby-1.6.4\n16:20:36,718 INFO  [org.torquebox.bootstrap] Adding: /Users/lanceball/.rvm/rubies/jruby-1.6.4/lib/jruby.jar\n16:20:36,720 INFO  [org.torquebox.bootstrap] Swizzle: [org.jboss.modules.ResourceLoaderSpec@76a8a314, org.jboss.modules.ResourceLoaderSpec@396ab2e8]\n16:20:36,734 INFO  [org.torquebox.core.as] Initializing TorqueBox Core Subsystem\n16:20:36,736 INFO  [org.torquebox.cdi.as] Initializing TorqueBox CDI Subsystem\n16:20:36,738 INFO  [org.torquebox.jobs.as] Initializing TorqueBox jobs Subsystem\n16:20:36,740 INFO  [org.torquebox.messaging.as] Initializing TorqueBox Messaging Subsystem\n16:20:36,742 INFO  [org.torquebox.security.as] Initializing TorqueBox Auth Subsystem\n16:20:36,743 INFO  [org.torquebox.services.as] Initializing TorqueBox Services Subsystem\n16:20:36,746 INFO  [org.torquebox.stomp.as] Initializing TorqueBox STOMP Subsystem\n16:20:36,756 INFO  [org.torquebox.web.as] Initializing TorqueBox Web Subsystem\n16:20:36,761 INFO  [org.torquebox.cache.as] Initializing TorqueBox Cache Subsystem\n16:20:36,812 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.\n16:20:36,880 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)\n16:20:36,882 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.\n16:20:36,888 INFO  [org.jboss.as.logging] Removing bootstrap log handlers\n16:20:36,917 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)\n16:20:36,937 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.\n16:20:36,991 INFO  [org.jboss.as.jacorb] (Controller Boot Thread) Activating JacORB Subsystem\n16:20:37,062 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem\n16:20:37,107 INFO  [org.jboss.as.naming] (MSC service thread 1-15) Starting Naming Service \n16:20:37,109 INFO  [org.jboss.as.mail.extension.MailSessionAdd] (MSC service thread 1-7) Bound mail session [java:jboss/mail/Default]\n16:20:37,110 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem\n16:20:37,126 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem\n16:20:37,131 INFO  [org.jboss.remoting] (MSC service thread 1-12) JBoss Remoting version 3.2.0.Beta2\n16:20:37,138 INFO  [org.xnio] (MSC service thread 1-12) XNIO Version 3.0.0.Beta3\n16:20:37,150 INFO  [org.xnio.nio] (MSC service thread 1-12) XNIO NIO Implementation Version 3.0.0.Beta3\n16:20:37,265 INFO  [org.jboss.as.webservices] (Controller Boot Thread) Activating WebServices Extension\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread) Welcome to TorqueBox AS - http://torquebox.org/\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread)   version........... 2.x.incremental.427\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread)   build............. 427\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread)   revision.......... afad7f23a297e6daed35fff16f4f70a1814773d9 +modifications\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread)   built with:\n16:20:37,288 INFO  [org.torquebox.core.as] (Controller Boot Thread)     JBossAS......... 7.x.incremental.109\n16:20:37,289 INFO  [org.torquebox.core.as] (Controller Boot Thread)     Quartz.......... 1.8.5\n16:20:37,289 INFO  [org.torquebox.core.as] (Controller Boot Thread)     JRuby........... 1.6.4\n16:20:37,322 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-13) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/local/ImageMagick-6.6.9/lib/:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java\n16:20:37,347 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-15) JBoss Web Services - Stack CXF Server 4.0.0.Beta3\n16:20:37,363 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-5) Starting remote JMX connector\n16:20:37,375 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem\n16:20:37,421 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-14) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080\n16:20:37,425 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) Listening on /127.0.0.1:9999\n16:20:37,448 INFO  [org.torquebox.core.runtime] (MSC service thread 1-9) Creating ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: global)\n16:20:37,667 WARN  [jacorb.codeset] (MSC service thread 1-7) Warning - unknown codeset (MacRoman) - defaulting to ISO-8859-1\n16:20:37,685 INFO  [org.jboss.as.connector] (MSC service thread 1-16) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)\n16:20:37,704 INFO  [org.jboss.as.jacorb] (MSC service thread 1-7) CORBA ORB Service Started\n16:20:37,743 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ExampleDS]\n16:20:37,749 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/data/messagingjournal,bindingsDirectory=/Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/data/messagingbindings,largeMessagesDirectory=/Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/data/messaginglargemessages,pagingDirectory=/Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/data/messagingpaging)\n16:20:37,764 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-12) Bound data source [java:jboss/datasources/ExampleXADS]\n16:20:37,776 WARNING [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.\n16:20:37,776 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) Registered connection factory java:/JmsXA\n16:20:37,795 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-3) HornetQ resource adaptor started\n16:20:37,796 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra\n16:20:37,855 INFO  [org.jboss.as.jacorb] (MSC service thread 1-7) CORBA Naming Service Started\n16:20:37,950 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-6) Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5455 for CORE protocol\n16:20:37,951 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-6) Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol\n16:20:37,952 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) Server is now live\n16:20:37,953 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) HornetQ Server version 2.2.7.Final (HQ_2_2_7_FINAL_AS7, 121) [2cba9529-dfd8-11e0-ab10-e0f8474154b8] started\n16:20:37,955 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.queue.testQueue\n16:20:38,023 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-2) Bound messaging object to jndi name java:/queue/test\n16:20:38,044 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-5) Bound messaging object to jndi name java:/ConnectionFactory\n16:20:38,046 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-7) Bound messaging object to jndi name java:/RemoteConnectionFactory\n16:20:38,047 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-14) trying to deploy queue jms.topic.testTopic\n16:20:38,070 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-14) Bound messaging object to jndi name java:/topic/test\n16:20:39,143 INFO  [org.torquebox.core.runtime] (MSC service thread 1-9) Disabling POSIX ENV passthrough for global runtime (TORQUE-497)\n16:20:41,123 WARN  [org.torquebox.core.runtime] (MSC service thread 1-9) No initializer set for runtime\n16:20:41,141 INFO  [org.torquebox.core.runtime] (MSC service thread 1-9) Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: global) in 3.56s\n16:20:41,152 INFO  [org.jboss.as.deployment] (MSC service thread 1-7) Started FileSystemDeploymentService for directory /Users/lanceball/.rvm/gems/jruby-1.6.4@beer/gems/torquebox-server-2.x.incremental.427-java/jboss/standalone/deployments\n16:20:41,171 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.x.incremental.109 \"Lightning\" started in 5994ms - Started 134 of 200 services (66 services are passive or on-demand)\n16:20:41,175 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) Starting deployment of \"dm-ispan-preso-knob.yml\"\n16:20:41,381 ERROR [stderr] (MSC service thread 1-2) ADJUSTER BEFORE stompAppMetaData=null\n16:20:41,435 INFO  [org.torquebox.cache.as] (MSC service thread 1-11) Adding dependency on: org.torquebox.cache:main to deployment \"dm-ispan-preso-knob.yml\"\n16:20:41,437 INFO  [org.jboss.as.jpa] (MSC service thread 1-11) added javax.persistence.api dependency to dm-ispan-preso-knob.yml\n16:20:41,477 INFO  [org.torquebox.messaging.tasks] (MSC service thread 1-6) Deploying task queue: /queues/torquebox/dm-ispan-preso/tasks/torquebox_backgroundable\n16:20:41,660 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.queue./queues/torquebox/dm-ispan-preso/tasks/torquebox_backgroundable\n16:20:41,687 INFO  [org.torquebox.core.as] (MSC service thread 1-11) Completely deployed: dm-ispan-preso-knob.yml in 409ms\n16:20:41,688 INFO  [org.torquebox.core.runtime.SharedRubyRuntimePool] (MSC service thread 1-16) Starting web runtime pool asynchronously\n16:20:41,691 INFO  [org.torquebox.core.runtime] (Thread-31) Creating ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, app: dm-ispan-preso, context: web)\n16:20:41,701 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-2) Bound messaging object to jndi name java:/queues/torquebox/dm-ispan-preso/tasks/torquebox_backgroundable\n16:20:41,808 INFO  [org.jboss.web] (MSC service thread 1-4) registering web context: \n16:20:41,841 INFO  [org.torquebox.core.runtime] (Thread-31) Disabling POSIX ENV passthrough for web runtime (TORQUE-497)\n16:20:41,863 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed \"dm-ispan-preso-knob.yml\"\n16:20:43,198 INFO  [org.torquebox.core.runtime] (Thread-31) Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, app: dm-ispan-preso, context: web) in 1.5s\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fdm-ispan-preso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flance%2Fdm-ispan-preso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fdm-ispan-preso/lists"}