On Fri, Feb 4, 2011 at 2:36 AM, Alex MadMind <alex.madm...@gmail.com> wrote: > Hello! > > I use camel-smpp in a Karaf/Spring project. > Here is the problem I observed when I stop/update my bundle SMPP endpoint > just closes the TCP connection to SMSC. > There is no unbind. This is a major problem for my project, because mobile > operator will not allow me to connect to SMSC without an unbind. > > Here is the error from SMPPSim: > > 2011.02.04 02:30:31 487 WARNING 18 packetLen[3] == -1, throwing EOFException > 2011.02.04 02:30:31 487 INFO 18 null > java.io.EOFException > at > com.seleniumsoftware.SMPPSim.StandardConnectionHandler.readPacketInto(Unknown > Source) > at > com.seleniumsoftware.SMPPSim.StandardConnectionHandler.runThread(Unknown > Source) > at com.seleniumsoftware.SMPPSim.StandardConnectionHandler.run(Unknown > Source) > at java.lang.Thread.run(Thread.java:662) > 2011.02.04 02:30:31 488 INFO 18 StandardConnectionHandler waiting for > connection > > This is the route in Camel/Spring: > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <camel:route> > <camel:from uri="smpp://id@localhost:2775?password=pass"/> > <camel:to uri="log:test"/> > </camel:route> > </camelContext> > > > Is there a way to add unbind on stop/update of the bundle? >
Could you take a look in the camel-smpp source code. Its most likely a matter of adding the unbind logic in the doStop method of the consumer. https://svn.apache.org/repos/asf/camel/trunk/components/camel-smpp/ And you are welcome to file a bug report at JIRA http://issues.apache.org/jira/browse/CAMEL And you may wanna try using the latest release to see if its fixed. But you can maybe see that from the source code. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/