Issue 54 in activemessaging: Deprecation warning from Stomp library/adapter

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 15, 2010, 4:51:47 PM7/15/10
to activemessagin...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 54 by ngeren: Deprecation warning from Stomp library/adapter
http://code.google.com/p/activemessaging/issues/detail?id=54

Was receiving deprecation warning for "send" method, staging it was being
deprecated in favor of the "publish" method. A quick fix to silence the
warning is to add the following method to activemessaging/adapters/stomp.rb
within the Connection class:

def send( *args )
publish( *args )
end

codesite...@google.com

unread,
Jul 15, 2010, 5:52:15 PM7/15/10
to activemessagin...@googlegroups.com

Comment #1 on issue 54 by ngeren: Deprecation warning from Stomp
library/adapter
http://code.google.com/p/activemessaging/issues/detail?id=54

LOL - That should have read:

"Was receiving deprecation warnings for "send" method, staging it was being

codesite...@google.com

unread,
Jul 16, 2010, 5:27:36 PM7/16/10
to activemessagin...@googlegroups.com

Comment #2 on issue 54 by ngeren: Deprecation warning from Stomp
library/adapter
http://code.google.com/p/activemessaging/issues/detail?id=54

This will support both older and the newer stomp libraries:

def send( *args )
return ( self.respond_to?( :publish ) ? publish( *args ) : super( *args )
)
end

Reply all
Reply to author
Forward
0 new messages