[Red5] FW: Problem with latest trunk build
Cameron Price
cameronprice at iinet.net.au
Fri Jan 9 23:20:10 PST 2009
Hi Everyone,
I've been developing a web video/audio live conferencing system for a while,
and have just faced some performance issues with 0.7.0, so went ahead and
downloaded the latest trunk to see if my app would work ok.
After fixing the logging and changes to iterators on the getConnections
call, everything looks pretty good, my performance issues have gone which is
great.
The last issue is with a sharedobjectlister class I have, and the fact that
it keeps coming up with this warning in the log:
2009-01-09 21:22:43,087 [pool-4-thread-109] WARN org.red5.server.Context -
Bean lookup failed for chat_so..soservice in the application context
The thing is the sharedobjectlistener is working fine, so there is no
functionality issues, but I like to keep a clean log. It seems to be
related to war applications from the getBean call in the Red5 API
This is how im creating the listener in the application.java
synchronized(mSORoomListeners)
{
//This listener keeps a record of the last 10 chats people had.
ChatTextObjectListener objCurrListener = new
ChatTextObjectListener();
mSORoomListeners.add(objCurrListener);
objCurrListener.RoomName = room.getContextPath();
chat_so.addSharedObjectListener(objCurrListener);
}
This is a bit of the ChatTextObjectListener class
public class ChatTextObjectListener implements ISharedObjectListener
{
int miCount = 0;
private final int iMaxCount = 10;
public String RoomName;
public static final Log log = LogFactory.getLog(Application.class);
public ConcurrentLinkedQueue<String> mMessages = new
ConcurrentLinkedQueue<String>();
public void onSharedObjectSend(ISharedObjectBase so,
String method,
List params)
{
if (method.equals("onMsgSend"))
{
//Got to the on message send area.
if (miCount >= iMaxCount)
{
//Remove oldest chat line.
mMessages.poll();
}
else
{
miCount++;
}
mMessages.add((String)(params.toArray()[0]));
log.info((String)(params.toArray()[0]));
}
}
...........
Thanks,
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090110/eb989631/attachment-0001.html>
More information about the Red5
mailing list