From 6a2d1087f461a96aac5ab12f741a09d554d94dbd Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 11 Oct 2015 22:28:12 +0200 Subject: [PATCH] Launch this at startup ... :/ --- .../mxchange/jcountry/data/AddressbookCountrySingletonBean.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java b/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java index 311c348..57bc0f5 100644 --- a/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java +++ b/src/java/org/mxchange/jcountry/data/AddressbookCountrySingletonBean.java @@ -18,6 +18,7 @@ package org.mxchange.jcountry.data; import java.util.List; import javax.ejb.Singleton; +import javax.ejb.Startup; import javax.persistence.Query; import org.mxchange.jcoreee.database.BaseDatabaseBean; @@ -26,6 +27,7 @@ import org.mxchange.jcoreee.database.BaseDatabaseBean; *

* @author Roland Haeder */ +@Startup @Singleton (name = "country", mappedName = "ejb/addressbook-singleton-country", description = "A singleton session bean for country informations") public class AddressbookCountrySingletonBean extends BaseDatabaseBean implements AddressbookCountrySingletonBeanRemote { -- 2.39.5