Hibernate Search 4 を使用して初心者レベルのプログラムを作成しました。プログラムを実行するたびに、必要なトランザクション (データベースへのレコードの保存など) が実行されますが、プログラムは終了しません。バックグラウンドでスレッドが実行されているようですが、どのスレッドが実行されているのか、またその理由がわかりません。
public static void main(String[] args) {
Session sess= HibernateUtil.getSf().getCurrentSession();
FullTextSession fts = org.hibernate.search.Search.getFullTextSession(sess);
Item it= new Item();
it.setTitle("Batman");
it.setDescription("bat man super hero ");
Item it2= new Item();
it2.setTitle("Mario");
it2.setDescription("super mario was game ");
Transaction t= fts.beginTransaction();
fts.save(it);
fts.save(it2);
t.commit();