Auto reload room-level extension?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
endquote
Posts: 35
Joined: 29 Dec 2006, 00:39
Location: Seattle, WA
Contact:

Auto reload room-level extension?

Post by endquote »

I'm working on an app which uses a zone-level extension and a room-level extension. The config looks like this:

Code: Select all

<Zone name="slasher">

	<AutoReloadExtensions>true</AutoReloadExtensions>

	<Extensions>
		<extension name="slasher" className="slasher.as" type="script" />
	</Extensions>

	<Rooms>
		<Room name="lobby" isPrivate="false" isTemp="false" autoJoin="true">
			<Extensions>
				<extension name="slasherGame" className="slasherGame.as" type="script" />
			</Extensions>
		</Room>
	</Rooms>
	
	<DatabaseManager active="true">
		<Driver>com.mysql.jdbc.Driver</Driver>
		<ConnectionString>jdbc:mysql://localhost:3306/slasher</ConnectionString>
		<UserName>root</UserName>
		<Password></Password>
		<TestSQL><![CDATA[SELECT id FROM game LIMIT 1]]></TestSQL>
		<MaxActive>10</MaxActive>
		<MaxIdle>10</MaxIdle>
		<OnExhaustedPool>grow</OnExhaustedPool>
		<BlockTime>5000</BlockTime>
	</DatabaseManager>

</Zone>
If I modify the zone-level extension, it gets reloaded. If I modify the room-level one, it does not.

If I reload it from the admin console it works, but it doesn't so automatically like the zone-level one does.

Is there a fix for this?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Hi guys. I'm experiencing the same problem. Is there a solution for this?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

See --> http://forums.smartfoxserver.com/viewtopic.php?t=4117

I also would recommend turning off auto-reload extension during production.
Smartfox's forum is my daily newspaper.
Post Reply