Revision: a8cf181fc76c
Author:   [email protected] <[email protected]>
Date:     Thu Aug 23 04:55:03 2012
Log:      Issue 128:    SS7 Service name is ambiguous
http://code.google.com/p/jss7/source/detail?r=a8cf181fc76c

Modified:
 /service/pom.xml
 /service/src/main/config/jboss-beans.xml
 /service/src/main/java/org/mobicents/ss7/SS7Service.java

=======================================
--- /service/pom.xml    Wed Aug  8 04:55:15 2012
+++ /service/pom.xml    Thu Aug 23 04:55:03 2012
@@ -11,7 +11,7 @@
        <name>Mobicents SS7 :: Service</name>

        <properties>
-               <ss7.name>Mobicents SS7</ss7.name>
+               <ss7.name>Mobicents jSS7</ss7.name>
                <ss7.vendor>TeleStax</ss7.vendor>
                <ss7.version>${pom.version}</ss7.version>
        </properties>
=======================================
--- /service/src/main/config/jboss-beans.xml    Thu Aug 23 04:26:00 2012
+++ /service/src/main/config/jboss-beans.xml    Thu Aug 23 04:55:03 2012
@@ -199,6 +199,7 @@
        <!-- Mobicents SS7 Service -->
<!-- ==================================================================== -->
        <bean name="MAPSS7Service" class="org.mobicents.ss7.SS7Service">
+               <constructor><parameter>MAP</parameter></constructor>
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="org.mobicents.ss7:service=MAPSS7Service",exposedInterface=org.mobicents.ss7.SS7ServiceMBean.class,registerDirectly=true)
                </annotation>
                <property name="jndiName">java:/mobicents/ss7/map</property>
@@ -207,6 +208,7 @@
                </property>
        </bean>
        <bean name="CAPSS7Service" class="org.mobicents.ss7.SS7Service">
+               <constructor><parameter>CAP</parameter></constructor>
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="org.mobicents.ss7:service=CAPSS7Service",exposedInterface=org.mobicents.ss7.SS7ServiceMBean.class,registerDirectly=true)
                </annotation>
                <property name="jndiName">java:/mobicents/ss7/cap</property>
@@ -215,6 +217,7 @@
                </property>
        </bean>
        <bean name="ISUPSS7Service" class="org.mobicents.ss7.SS7Service">
+               <constructor><parameter>ISUP</parameter></constructor>
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="org.mobicents.ss7:service=ISUPSS7Service",exposedInterface=org.mobicents.ss7.SS7ServiceMBean.class,registerDirectly=true)
                </annotation>
                <property name="jndiName">java:/mobicents/ss7/isup</property>
=======================================
--- /service/src/main/java/org/mobicents/ss7/SS7Service.java Sun Jun 17 10:46:24 2012 +++ /service/src/main/java/org/mobicents/ss7/SS7Service.java Thu Aug 23 04:55:03 2012
@@ -35,6 +35,7 @@
  */
public class SS7Service extends ServiceMBeanSupport implements SS7ServiceMBean {

+       private final String serviceName;
        private Object stack;

        private String jndiName;
@@ -43,6 +44,10 @@

        private static final String rLogo = " ]]]]]]]]] ";
        private static final String lLogo = " [[[[[[[[[ ";
+
+       public SS7Service(String serviceName){
+               this.serviceName = serviceName;
+       }

        @Override
        public void startService() throws Exception {
@@ -52,7 +57,7 @@
        }

        private String generateMessageWithLogo(String message) {
- return lLogo + getSS7Name() + " " + getSS7Version() + " " + message + rLogo; + return lLogo + getSS7Name() + " " + getSS7Version() + " " + this.serviceName+" "+ message + rLogo;
        }

        public String getSS7Name() {

Reply via email to