</condition>
</fail>
<target depends="dist,javadoc" description="Build whole project." name="default"/>
- <!--
- INITIALIZATION SECTION
+ <!--
+ INITIALIZATION SECTION
-->
<target name="-pre-init">
<!-- Empty placeholder for easier customization. -->
<target name="-init-taskdefs">
<fail unless="libs.CopyLibs.classpath">
The libs.CopyLibs.classpath property is not set up.
-This property must point to
+This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
-of NetBeans IDE installation and is usually located at
+of NetBeans IDE installation and is usually located at
<netbeans_installation>/java<version>/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.juser-core.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.juser-lib.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jcustomer-core.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.jphone-core.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.jphone-lib.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jshop-core.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jshop-ee-lib.jar}" todir="${build.classes.dir}"/>
+ <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${file.reference.pizzaservice-core.jar}" todir="${build.classes.dir}"/>
<copyfiles files="${reference.PizzaService-lib.jar}" todir="${build.classes.dir}"/>
</target>
<basename file="${file.reference.jcontacts-lib.jar}" property="manifest.file.reference.jcontacts-lib.jar"/>
<basename file="${file.reference.juser-core.jar}" property="manifest.file.reference.juser-core.jar"/>
<basename file="${file.reference.juser-lib.jar}" property="manifest.file.reference.juser-lib.jar"/>
+ <basename file="${file.reference.jcustomer-core.jar}" property="manifest.file.reference.jcustomer-core.jar"/>
<basename file="${file.reference.jphone-core.jar}" property="manifest.file.reference.jphone-core.jar"/>
<basename file="${file.reference.jphone-lib.jar}" property="manifest.file.reference.jphone-lib.jar"/>
+ <basename file="${file.reference.jshop-core.jar}" property="manifest.file.reference.jshop-core.jar"/>
+ <basename file="${file.reference.jshop-ee-lib.jar}" property="manifest.file.reference.jshop-ee-lib.jar"/>
+ <basename file="${file.reference.jmailer-ee.jar}" property="manifest.file.reference.jmailer-ee.jar"/>
<basename file="${file.reference.pizzaservice-core.jar}" property="manifest.file.reference.pizzaservice-core.jar"/>
<basename file="${reference.PizzaService-lib.jar}" property="manifest.reference.PizzaService-lib.jar"/>
<manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
- <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 jar-6 jar-7 jar-8 jar-9 jar-10 jar-11 jar-12 jar-13 "/>
+ <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 jar-6 jar-7 jar-8 jar-9 jar-10 jar-11 jar-12 jar-13 jar-14 jar-15 jar-16 jar-17 "/>
<attribute name="jar-1-Extension-Name" value="${manifest.file.reference.jcore.jar}"/>
<attribute name="jar-2-Extension-Name" value="${manifest.file.reference.jcoreee.jar}"/>
<attribute name="jar-3-Extension-Name" value="${manifest.file.reference.jcountry-core.jar}"/>
<attribute name="jar-7-Extension-Name" value="${manifest.file.reference.jcontacts-lib.jar}"/>
<attribute name="jar-8-Extension-Name" value="${manifest.file.reference.juser-core.jar}"/>
<attribute name="jar-9-Extension-Name" value="${manifest.file.reference.juser-lib.jar}"/>
- <attribute name="jar-10-Extension-Name" value="${manifest.file.reference.jphone-core.jar}"/>
- <attribute name="jar-11-Extension-Name" value="${manifest.file.reference.jphone-lib.jar}"/>
- <attribute name="jar-12-Extension-Name" value="${manifest.file.reference.pizzaservice-core.jar}"/>
- <attribute name="jar-13-Extension-Name" value="${manifest.reference.PizzaService-lib.jar}"/>
+ <attribute name="jar-10-Extension-Name" value="${manifest.file.reference.jcustomer-core.jar}"/>
+ <attribute name="jar-11-Extension-Name" value="${manifest.file.reference.jphone-core.jar}"/>
+ <attribute name="jar-12-Extension-Name" value="${manifest.file.reference.jphone-lib.jar}"/>
+ <attribute name="jar-13-Extension-Name" value="${manifest.file.reference.jshop-core.jar}"/>
+ <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.jshop-ee-lib.jar}"/>
+ <attribute name="jar-15-Extension-Name" value="${manifest.file.reference.jmailer-ee.jar}"/>
+ <attribute name="jar-16-Extension-Name" value="${manifest.file.reference.pizzaservice-core.jar}"/>
+ <attribute name="jar-17-Extension-Name" value="${manifest.reference.PizzaService-lib.jar}"/>
</manifest>
</target>
<target depends="compile" name="library-inclusion-in-manifest">
<copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.juser-core.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.juser-lib.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jcustomer-core.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.jphone-core.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.jphone-lib.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jshop-core.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jshop-ee-lib.jar}" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.pizzaservice-core.jar}" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${reference.PizzaService-lib.jar}" todir="${dist.ear.dir}/lib"/>
<manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
build.xml.stylesheet.CRC32=5910fda3@1.55.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=be5d8e80
-nbproject/build-impl.xml.script.CRC32=c48d23aa
+nbproject/build-impl.xml.data.CRC32=9e5ca144
+nbproject/build-impl.xml.script.CRC32=c2a539b2
nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.55.1
file.reference.jcoreee.jar=lib/jcoreee.jar
file.reference.jcountry-core.jar=lib/jcountry-core.jar
file.reference.jcountry-lib.jar=lib/jcountry-lib.jar
+file.reference.jcustomer-core.jar=lib/jcustomer-core.jar
+file.reference.jmailer-ee.jar=lib/jmailer-ee.jar
file.reference.jphone-core.jar=lib/jphone-core.jar
file.reference.jphone-lib.jar=lib/jphone-lib.jar
file.reference.jshop-core.jar=lib/jshop-core.jar
${file.reference.jcontacts-lib.jar}:\
${file.reference.juser-core.jar}:\
${file.reference.juser-lib.jar}:\
+ ${file.reference.jcustomer-core.jar}:\
${file.reference.jphone-core.jar}:\
${file.reference.jphone-lib.jar}:\
${file.reference.jshop-core.jar}:\
${file.reference.jshop-ee-lib.jar}:\
+ ${file.reference.jmailer-ee.jar}:\
${file.reference.pizzaservice-core.jar}:\
${reference.PizzaService-lib.jar}:\
${file.reference.cdi-api.jar}
source.reference.jcoreee.jar=../../jcoreee/src/
source.reference.jcountry-core.jar=../jcountry-core/src/
source.reference.jcountry-lib.jar=../jcountry-lib/src/
+source.reference.jcustomer-core.jar=../jcustomer-core/src/
+source.reference.jmailer-ee.jar=../jmailer-ee/src/
source.reference.jphone-core.jar=../jphone-core/src/
source.reference.jphone-lib.jar=../jphone-lib/src/
source.reference.jshop-core.jar=../../jshop-core/src/
<included-library dirs="200">file.reference.jcontacts-lib.jar</included-library>
<included-library dirs="200">file.reference.juser-core.jar</included-library>
<included-library dirs="200">file.reference.juser-lib.jar</included-library>
+ <included-library dirs="200">file.reference.jcustomer-core.jar</included-library>
<included-library dirs="200">file.reference.jphone-core.jar</included-library>
<included-library dirs="200">file.reference.jphone-lib.jar</included-library>
+ <included-library dirs="200">file.reference.jshop-core.jar</included-library>
+ <included-library dirs="200">file.reference.jshop-ee-lib.jar</included-library>
+ <included-library dirs="200">file.reference.jmailer-ee.jar</included-library>
<included-library dirs="200">file.reference.pizzaservice-core.jar</included-library>
<included-library dirs="200">reference.PizzaService-lib.jar</included-library>
<source-roots>
import org.mxchange.jcontacts.contact.utils.ContactUtils;
import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
-import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;;
-import org.mxchange.jcontacts.contact.utils.ContactUtils;
-
+import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
/**
* A contact EJB
* <p>
*/
package org.mxchange.jcountry.data;
-import de.chotime.jratecalc.database.BasePizzaDatabaseBean;
import java.text.MessageFormat;
import java.util.GregorianCalendar;
import java.util.List;
--- /dev/null
+/*
+ * Copyright (C) 2016 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jmailee.model.delivery;
+
+import java.io.Serializable;
+import java.text.MessageFormat;
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.jms.ObjectMessage;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import org.mxchange.jcoreeelogger.beans.local.logger.Log;
+import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
+
+/**
+ * A message queue for sending out emails
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@MessageDriven (
+ name = "rateCalcEmail",
+ description = "A message bean for email delivery",
+ activationConfig = {
+ @ActivationConfigProperty (propertyName = "destinationLookup", propertyValue = "jms/pizzaservice-email-queue"),
+ @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue")
+ }
+)
+public class PizzaEmailDeliveryMessageBean implements MessageListener {
+
+ /**
+ * Logger bean
+ */
+ @Log
+ private LoggerBeanLocal loggerBeanLocal;
+
+ /**
+ * Default constructor
+ */
+ public PizzaEmailDeliveryMessageBean () {
+ try {
+ // Get initial context
+ Context context = new InitialContext();
+
+ // Lookup logger
+ this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+ } catch (final NamingException ex) {
+ // Continue to throw
+ throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
+ }
+ }
+
+ @Override
+ public void onMessage (final Message message) {
+ // Trace message
+ this.loggerBeanLocal.logTrace(MessageFormat.format("onMessage: message={0} - CALLED!", message)); //NOI18N
+
+ // Is the message castable to ObjectMessage?
+ if (null == message) {
+ // message is null
+ throw new NullPointerException("message is null"); //NOI18N
+ } else if (!(message instanceof ObjectMessage)) {
+ // Not castable
+ throw new ClassCastException(MessageFormat.format("message cannot be casted to ObjectMessage: {0}", message)); //NOI18N
+ }
+
+ // Securely cast it
+ ObjectMessage objectMessage = (ObjectMessage) message;
+
+ // Init instance
+ Serializable object;
+
+ try {
+ // Get object from it
+ object = objectMessage.getObject();
+ } catch (final JMSException ex) {
+ // Log exception ...
+ this.loggerBeanLocal.logException(ex);
+
+ // ... and don't continue
+ return;
+ }
+
+ // Debug message
+ this.loggerBeanLocal.logDebug(MessageFormat.format("onMessage: object={0}", object)); //NOI18N
+
+ // Does this object implement WrapableCheckout ?
+ if (null == object) {
+ // object cannot be null
+ throw new NullPointerException("object is null"); //NOI18N
+ } else if (!(object instanceof WrapableEmailDelivery)) {
+ // Not proper interface used
+ throw new ClassCastException(MessageFormat.format("object does not implement WrapableEmailDelivery: {0}", object)); //NOI18N
+ }
+
+ // Cast the object to the wrapper interface
+ WrapableEmailDelivery emailDelivery = (WrapableEmailDelivery) object;
+
+ // Trace message
+ this.loggerBeanLocal.logTrace("onMessage: EXIT!"); //NOI18N
+ }
+
+}
+++ /dev/null
-/*
- * Copyright (C) 2016 Cho-Time GmbH
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jmailee.model.delivery;
-
-import java.io.Serializable;
-import java.text.MessageFormat;
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.MessageDriven;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.ObjectMessage;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import org.mxchange.jcoreeelogger.beans.local.logger.Log;
-import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
-
-/**
- * A message queue for sending out emails
- * <p>
- * @author Roland Haeder<rhaeder@cho-time.de>
- */
-@MessageDriven (
- name = "rateCalcEmail",
- description = "A message bean for email delivery",
- activationConfig = {
- @ActivationConfigProperty (propertyName = "destinationLookup", propertyValue = "jms/jratecalc-email-queue"),
- @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue")
- }
-)
-public class RateCalcEmailDeliveryMessageBean implements MessageListener {
-
- /**
- * Logger bean
- */
- @Log
- private LoggerBeanLocal loggerBeanLocal;
-
- /**
- * Default constructor
- */
- public RateCalcEmailDeliveryMessageBean () {
- try {
- // Get initial context
- Context context = new InitialContext();
-
- // Lookup logger
- this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
- } catch (final NamingException ex) {
- // Continue to throw
- throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
- }
- }
-
- @Override
- public void onMessage (final Message message) {
- // Trace message
- this.loggerBeanLocal.logTrace(MessageFormat.format("onMessage: message={0} - CALLED!", message)); //NOI18N
-
- // Is the message castable to ObjectMessage?
- if (null == message) {
- // message is null
- throw new NullPointerException("message is null"); //NOI18N
- } else if (!(message instanceof ObjectMessage)) {
- // Not castable
- throw new ClassCastException(MessageFormat.format("message cannot be casted to ObjectMessage: {0}", message)); //NOI18N
- }
-
- // Securely cast it
- ObjectMessage objectMessage = (ObjectMessage) message;
-
- // Init instance
- Serializable object;
-
- try {
- // Get object from it
- object = objectMessage.getObject();
- } catch (final JMSException ex) {
- // Log exception ...
- this.loggerBeanLocal.logException(ex);
-
- // ... and don't continue
- return;
- }
-
- // Debug message
- this.loggerBeanLocal.logDebug(MessageFormat.format("onMessage: object={0}", object)); //NOI18N
-
- // Does this object implement WrapableCheckout ?
- if (null == object) {
- // object cannot be null
- throw new NullPointerException("object is null"); //NOI18N
- } else if (!(object instanceof WrapableEmailDelivery)) {
- // Not proper interface used
- throw new ClassCastException(MessageFormat.format("object does not implement WrapableEmailDelivery: {0}", object)); //NOI18N
- }
-
- // Cast the object to the wrapper interface
- WrapableEmailDelivery emailDelivery = (WrapableEmailDelivery) object;
-
- // Trace message
- this.loggerBeanLocal.logTrace("onMessage: EXIT!"); //NOI18N
- }
-
-}
*/
package org.mxchange.jphone.phonenumbers.mobileprovider;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import java.text.MessageFormat;
import java.util.GregorianCalendar;
import javax.ejb.Stateless;
*/
package org.mxchange.jphone.phonenumbers.phone;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import java.text.MessageFormat;
import java.util.List;
import javax.ejb.Stateless;
*/
package org.mxchange.jphone.phonenumbers.phone;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import javax.ejb.Stateless;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
*/
package org.mxchange.jphone.phonenumbers.phone;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import java.text.MessageFormat;
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
*/
package org.mxchange.jusercore.model.login;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import java.text.MessageFormat;
import javax.ejb.EJB;
import javax.ejb.Stateless;
*/
package org.mxchange.jusercore.model.register;
-import de.chotime.jratecalc.database.BaseRateCalcDatabaseBean;
import java.text.MessageFormat;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.persistence.PersistenceException;
import javax.persistence.Query;
import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
import org.mxchange.jusercore.exceptions.UserNotFoundException;
* General customer bean
*/
@EJB
- private RateCalcCustomerSessionBeanRemote customerBean;
+ private PizzaCustomerSessionBeanRemote customerBean;
@Override
public Customer addCustomer (final Customer customer) throws CustomerAlreadyRegisteredException, ContactAlreadyAddedException {