Search found 8 matches

by harlanji
08 Feb 2012, 00:27
Forum: SFS2X Questions
Topic: Spring + 2X
Replies: 12
Views: 17070

Hey chenjie19891104: I have since changed this to have the following code: private void initSpringContext() { context = new GenericXmlApplicationContext(); context.setClassLoader(ServiceAdapter.class.getClassLoader()); context.load("classpath:/META-INF/s...
by harlanji
07 Feb 2012, 23:49
Forum: OpenSpace v2 discussions and help
Topic: Detecting avatar movement stopped near friend avatar?
Replies: 1
Views: 4777

Detecting avatar movement stopped near friend avatar?

Hi, I have been searching the boards for a while looking for how to detect when an avatar has stopped. It seems that I can do it with onMovementStop on my sub-class, or AvatarEvent.STOP_MOVEMENT if I have a trigger location. Perhaps there is another method I've overlooked? Neither of these seem to q...
by harlanji
06 Feb 2012, 20:59
Forum: SFS2X Questions
Topic: Base Classes and Serialization
Replies: 13
Views: 14011

As stated earlier we don't support inheritance Let me clarify: we don't 100% exclude supporting inheritance in the future It is more the future aspect that I'm interested in, it's pretty clear that it doesn't work now. I don't see any of these 'non-trivial' problems in this case, I see simply a bro...
by harlanji
04 Feb 2012, 22:06
Forum: SFS2X Questions
Topic: Base Classes and Serialization
Replies: 13
Views: 14011

I'm having a similar problem,a lso using RC3. Basically, if I don't have a field on class I am trying to serialize, SitAction in this case, but it exists on the super class, I get an exception--note that I do have a public setter, see below. 13:55:56,791 WARN [SocketReader] protocol.SFSProtocolCodec...
by harlanji
08 Dec 2011, 22:01
Forum: RedBox 2X
Topic: Double license the connections used with RedBox?
Replies: 1
Views: 9478

Double license the connections used with RedBox?

Hi, I see that RedBox uses a second connection for A/V: » Does the RedBox use a second connection for audio/video streaming? Yes. The RTMP protocol used to communicate with the Red5 server works on port 1935 and its data traffic is separated from the SmartFoxServer 2X protocol.
There are many adv...
by harlanji
13 Oct 2011, 02:27
Forum: SFS2X Questions
Topic: ClassLoader issues with room extensions
Replies: 2
Views: 5068

Yes that's what happens We explain all the details here: http://docs2x.smartfoxserver.com/AdvancedTopics/advanced-extensions#classLoading Thanks, I must've glossed over that part the first time. I can see a solution now, but I am not completely convinced that having one ClassLoader per instance of ...
by harlanji
08 Oct 2011, 17:14
Forum: SFS2X Questions
Topic: ClassLoader issues with room extensions
Replies: 2
Views: 5068

ClassLoader issues with room extensions

Hello, I am developing my first extension, which I have designed to include a Zone extension and various extensions for the Room level that implement different logic for different types of Rooms. Essentially I want my Spring context with DB connections/ws clients/remote credentials and the like to l...
by harlanji
15 Sep 2011, 02:02
Forum: SFS2X Questions
Topic: Spring + 2X
Replies: 12
Views: 17070

I realize this is an old thread, but to help future generations, this code works for me: ClassLoader origLoader = Thread.currentThread().getContextClassLoader(); ClassLoader extensionLoader = getClass().getClassLoader(); Thread.currentThread().setContextClassL...

Go to advanced search