Revision: b5609d6c94ab
Author:   [email protected] <[email protected]>
Date:     Sun Sep  2 11:15:43 2012
Log:      Issue 136:Add TCAP Service in mobicents-ss7-service

http://code.google.com/p/jss7/source/detail?r=b5609d6c94ab

Modified:
 /.gitignore
 /service/src/main/config/jboss-beans.xml
/tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPProvider.java /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java

=======================================
--- /.gitignore Fri Apr 13 02:53:18 2012
+++ /.gitignore Sun Sep  2 11:15:43 2012
@@ -41,3 +41,4 @@
 PutObjectStoreDirHere
 # ignore mvn-rpmbuild repo
 /.m2
+*debuglog.txt
=======================================
--- /service/src/main/config/jboss-beans.xml    Sun Aug 26 10:31:02 2012
+++ /service/src/main/config/jboss-beans.xml    Sun Sep  2 11:15:43 2012
@@ -2,21 +2,7 @@
 <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns="urn:jboss:bean-deployer:2.0">

- <!-- ==================================================================== -->
-       <!-- MTP3 Properties -->
-       <!-- Define MTP3 routing label Format -->
- <!-- ==================================================================== --> - <bean name="RoutingLabelFormat" class="org.mobicents.protocols.ss7.mtp.RoutingLabelFormat"> - <constructor factoryClass="org.mobicents.protocols.ss7.mtp.RoutingLabelFormat"
-                       factoryMethod="getInstance">
-                       <parameter>ITU</parameter>
-               </constructor>
-       </bean>

- <!-- ==================================================================== -->
-       <!-- SCTP Properties -->
-       <!-- Used by M3UA layer -->
- <!-- ==================================================================== --> <bean name="SCTPManagement" class="org.mobicents.protocols.sctp.ManagementImpl">
                <constructor>
                        <parameter>SCTPManagement</parameter>
@@ -33,6 +19,16 @@
                </property>
        </bean>

+ <!-- ==================================================================== -->
+       <!-- MTP3 Properties -->
+       <!-- Define MTP3 PointCode Format -->
+ <!-- ==================================================================== --> + <bean name="RoutingLabelFormat" class="org.mobicents.protocols.ss7.mtp.RoutingLabelFormat"> + <constructor factoryClass="org.mobicents.protocols.ss7.mtp.RoutingLabelFormat" factoryMethod="getInstance">
+                       <parameter>ITU</parameter>
+               </constructor>
+       </bean>
+
<!-- ==================================================================== -->
        <!-- M3UA -->
        <!-- M3UAManagement is managing the m3ua side commands -->
@@ -43,12 +39,8 @@
                        <parameter>Mtp3UserPart</parameter>
                </constructor>
                <property name="persistDir">${jboss.server.data.dir}</property>
-               <property name="transportManagement">
-                       <inject bean="SCTPManagement" />
-               </property>
-               <property name="routingLabelFormat">
-                       <inject bean="RoutingLabelFormat" />
-               </property>
+ <property name="transportManagement"><inject bean="SCTPManagement" /></property> + <property name="routingLabelFormat"><inject bean="RoutingLabelFormat" /></property>
        </bean>

        <bean name="M3UAShellExecutor"
@@ -162,6 +154,18 @@
                <property name="maxDialogs">25000</property>
        </bean>

+ <bean name="TcapStack" class="org.mobicents.protocols.ss7.tcap.TCAPStackImpl">
+               <constructor>
+                       <parameter>
+                               <inject bean="SccpStack" property="sccpProvider" 
/>
+                       </parameter>
+                       <parameter>9</parameter>
+               </constructor>
+               <property name="dialogIdleTimeout">60000</property>
+               <property name="invokeTimeout">30000</property>
+               <property name="maxDialogs">25000</property>
+       </bean>
+
<!-- ==================================================================== -->
        <!-- CAP Service -->
<!-- ==================================================================== -->
@@ -210,10 +214,17 @@
<!-- ==================================================================== -->
        <!-- Mobicents SS7 Service -->
<!-- ==================================================================== -->
+       <bean name="TCAPSS7Service" class="org.mobicents.ss7.SS7Service">
+               <constructor><parameter>TCAP</parameter></constructor>
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="org.mobicents.ss7:service=TCAPSS7Service",exposedInterface=org.mobicents.ss7.SS7ServiceMBean.class,registerDirectly=true)
+               </annotation>
+               <property name="jndiName">java:/mobicents/ss7/tcap</property>
+               <property name="stack">
+                       <inject bean="TcapStack" property="provider" />
+               </property>
+       </bean>
        <bean name="MAPSS7Service" class="org.mobicents.ss7.SS7Service">
-               <constructor>
-                       <parameter>MAP</parameter>
-               </constructor>
+               <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>
@@ -222,9 +233,7 @@
                </property>
        </bean>
        <bean name="CAPSS7Service" class="org.mobicents.ss7.SS7Service">
-               <constructor>
-                       <parameter>CAP</parameter>
-               </constructor>
+               <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>
@@ -233,9 +242,7 @@
                </property>
        </bean>
        <bean name="ISUPSS7Service" class="org.mobicents.ss7.SS7Service">
-               <constructor>
-                       <parameter>ISUP</parameter>
-               </constructor>
+               <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>
=======================================
--- /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPProvider.java Mon Apr 23 10:53:14 2012 +++ /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPProvider.java Sun Sep 2 11:15:43 2012
@@ -22,10 +22,12 @@

 package org.mobicents.protocols.ss7.tcap.api;

+import java.io.Serializable;
+
 import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
 import org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog;

-public interface TCAPProvider {
+public interface TCAPProvider extends Serializable {

        /**
         * Create new structured dialog.
=======================================
--- /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java Wed Aug 1 23:25:10 2012 +++ /tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java Sun Sep 2 11:15:43 2012
@@ -89,22 +89,22 @@

private static final Logger logger = Logger.getLogger(TCAPProviderImpl.class); // listenres

- private List<TCListener> tcListeners = new CopyOnWriteArrayList<TCListener>();
-       protected ScheduledExecutorService _EXECUTOR;
+ private transient List<TCListener> tcListeners = new CopyOnWriteArrayList<TCListener>();
+       protected transient ScheduledExecutorService _EXECUTOR;
        // boundry for Uni directional dialogs :), tx id is always encoded
        // on 4 octets, so this is its max value
        //private static final long _4_OCTETS_LONG_FILL = 4294967295l;
-       private ComponentPrimitiveFactory componentPrimitiveFactory;
-       private DialogPrimitiveFactory dialogPrimitiveFactory;
-       private SccpProvider sccpProvider;
+       private transient ComponentPrimitiveFactory componentPrimitiveFactory;
+       private transient DialogPrimitiveFactory dialogPrimitiveFactory;
+       private transient SccpProvider sccpProvider;

-       private MessageFactory messageFactory;
-       private ParameterFactory parameterFactory;
+       private transient MessageFactory messageFactory;
+       private transient ParameterFactory parameterFactory;

-       private TCAPStackImpl stack; // originating TX id ~=Dialog, its direct
+ private transient TCAPStackImpl stack; // originating TX id ~=Dialog, its direct
                                                                        // 
mapping, but not described
        // explicitly...
-       private Map<Long, DialogImpl> dialogs = new HashMap<Long, DialogImpl>();
+ private transient Map<Long, DialogImpl> dialogs = new HashMap<Long, DialogImpl>();

        private int seqControl = 0;
        private int ssn;

Reply via email to