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這裡 .