最近要做一个基于Vertx.io的pub/sub的功能,具体代码可见vertx-pubsub,这个web框架比较新,目前还没有很好的IDE支持,下面介绍下自己摸索的基于eclipse/maven的一个开发环境。 最近还写了一个基于Grails集成Redis/Atmosphere的pub/sub 的sample,有兴趣的可以看看grails-atmosphere-redis-feed
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xplusz.vertx</groupId>
<artifactId>vertx-feed</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>vertx-feed</name>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
<junit.version>3.8.1</junit.version>
<vertx.version>1.3.1.final</vertx.version>
<jruby.version>1.7.3</jruby.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.vert-x</groupId>
<artifactId>vertx-core</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>org.vert-x</groupId>
<artifactId>vertx-testframework</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>org.vert-x</groupId>
<artifactId>vertx-platform</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>org.vert-x</groupId>
<artifactId>vertx-lang-jruby</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<version>${jruby.version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>codehaus</id>
<url>http://repository.codehaus.org/org/codehaus</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
13 April 2013 Suzhou, ChinaVertx.io是最近在研究的一个基于事件驱动的框架,发现它的扩展性极强,nio,事件可以穿透web页面,基于pub/sub的eventBus等,有时间再写具体的介绍。Cheers!