SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 08-17-2010, 02:28 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
The biggest issue is the sage MediaFile is not serializable, which is why I am converting that to an Integer before passing those events around ( Also the SystemMessages if I recall correctly is not serializable). I think using the native sageAPI call from java, you can specify a remote client/server to execute a command, so you could make a plugin to call the event post on a remote system, but that would still mean pretty much writing a plugin to do all that work. I had used JMS because that remote call didn't exist at the time and I use it at work, so figured it was the way to go...

Thanks,
Jeff
Reply With Quote
  #22  
Old 08-17-2010, 03:34 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jphipps View Post
The biggest issue is the sage MediaFile is not serializable, which is why I am converting that to an Integer before passing those events around ( Also the SystemMessages if I recall correctly is not serializable). I think using the native sageAPI call from java, you can specify a remote client/server to execute a command, so you could make a plugin to call the event post on a remote system, but that would still mean pretty much writing a plugin to do all that work. I had used JMS because that remote call didn't exist at the time and I use it at work, so figured it was the way to go...
Although, I think the JMS solution is pretty good. I'm looking at integrating jms support in phoenix as well to support the client/server/client communications. JMS is nice because of it's asynchronous behaviour and the fact that is supports stream messages as well.
Reply With Quote
  #23  
Old 08-18-2010, 09:39 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
What jms software do you usually use? I usually use the one in Glassfish at work, but decided to use the Apache ActiveMQ.

Thanks,
Jeff
Reply With Quote
  #24  
Old 08-18-2010, 10:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jphipps View Post
What jms software do you usually use? I usually use the one in Glassfish at work, but decided to use the Apache ActiveMQ.

Thanks,
Jeff
When I implement it i'll probably just use the ActiveMQ libraries that you've added to the repository. I don't see any point in adding a different implementation. At work, we use WebSphere so that's not an option here (nor would I want it to be).
Reply With Quote
  #25  
Old 08-31-2010, 06:01 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Thanks to jphipps I've been successfully using OrtusMQ to happily pass around messages (including serializable objects) between the sage server and SageClients. The package is very easy to use and has been very reliable. I'd highly recommend it to anybody needing this functionality.

I've written a class that builds on OrtusMQ which allows clients to invoke methods on the server and return the results back to the client. If anybody is interested in using it just let me know.

Thanks jphipps!
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #26  
Old 08-31-2010, 07:14 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
Glad it is working well for you.. I have to submit an update for the ortus-mq module to fix a small bug I found and that new async event logic we discussed, so you want me to include those class as part of the plugin?

Thanks,
Jeff
Reply With Quote
  #27  
Old 08-31-2010, 07:23 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Jeff,

Feel free to edit what I sent you and include them. If I make changes or find bugs I'll let you know.

Also, you may want to update the manifest with the log4j dependency.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
most common cause of communication problems? tvmaster2 SageTV Media Extender 9 04-19-2010 10:46 AM
Sage losing communication with HDPVRs srothwell Hardware Support 5 03-18-2010 09:59 AM
Developing STV for Client and CLient on Server machine antplugger SageTV Studio 2 03-30-2006 05:09 PM
SageClient server communication dZeus SageTV Studio 2 01-06-2006 05:50 PM
W/PVR250 in client can client remote control server? mdmint General Discussion 8 05-01-2004 07:33 PM


All times are GMT -6. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.