JInvite is a simple Java API which makes it easy to add invite capabilities to Java - the ability for existing members of your web service to invite other members. jinvite是一个简单的Java API使得它很容易添加邀请的能力, Java的-的能力,现有成员您的W eb服务,邀请其他成员。 This capability was in the early days of GMail and now widely adopted by Web 2.0 (beta) sites for limiting site load and gradually increasing capacities.这种能力是在成立之初Gmail和现在广泛采用的Web 2.0 (测试版)网站限制网站的负荷和逐步增加的能力。

The API constitutes of two simple methods:空气污染指数构成的两个简单的方法:
1. 1 。 Inviter.getInviteCode(conn, invitingUser) - Creates invitation code inviter.getinvitecode (连通, invitinguser ) -创建邀请码
2. 2 。 Inviter.confirm(conn,incomingInviteCode) - Confirms invitation code inviter.confirm (连通, incominginvitecode ) -确认邀请码

It requires a JDBC connection to store data.它需要一个JDBC连接来存储数据。 In the database you need to create a table with the following schema:在数据库中,您需要创建一个表与下列架构:
create table invite(code varchar(36) primary key, user varchar(50) not null, createdOn datetime not null); 创建表邀请(代码varchar ( 36 )主键,用户varchar ( 50 )不空, createdon日期时间不空) ;

This project checks out as an Eclipse Tomcat project.这个项目的检查作为一月食的Tomcat项目。 However you are not required to use Tomcat or even Eclipse.不过你不需要使用的Tomcat或什至月食。 You can download it您也可以下载它 here这里 .