Expand my Community achievements bar.

SOLVED

Command to start local server

Avatar

Former Community Member

Is there a way to start a local server using a command (or Ant) on Windows or Linux without having to open the LCCS SDK Navigator and click the "Local Server" button in the Developer Tools section?

1 Accepted Solution

Avatar

Correct answer by
Level 3

Here are the files. It should be noted that they're not very well

tested, but seem to work.

Unfortunately, you also need to build your own afcs.swc.

Here's the change you need to make in

com.adobe.rtc.messaging.MessageItem:

Look in createValueObject().

Replace this:

var bA:ByteArray = new ByteArray();

bA.writeObject(body);

writeObj.body = bA;

with this:

var bA:ByteArray = new ByteArray();

bA.writeObject(body);

bA.position = 0;

writeObj.body = bA;

You need to rewind the position of the cursor in the byteArray so that

it can be decoded properly.

As I said at the top. This is incomplete and probably has errors in

it, but I hope it helps.

Good luck!

-sandy

View solution in original post

4 Replies

Avatar

Former Community Member

No currently we don’t have any command line interface for starting the local server. You need to run the Navigator App and click on Local Server inside Developer Tools

Thanks

Hironmay Basu

Avatar

Level 3

I had the same need for my unit tests. I've been using a custom SessionManager with a custom Authenticator to handle it. (Also required some small changes to MessageItem because of a subtle bug.)

It does 90% of what a 'real' SessionManager does and has made my unit testing workable.

If you'd like I can post that for you.

-sandy

Avatar

Correct answer by
Level 3

Here are the files. It should be noted that they're not very well

tested, but seem to work.

Unfortunately, you also need to build your own afcs.swc.

Here's the change you need to make in

com.adobe.rtc.messaging.MessageItem:

Look in createValueObject().

Replace this:

var bA:ByteArray = new ByteArray();

bA.writeObject(body);

writeObj.body = bA;

with this:

var bA:ByteArray = new ByteArray();

bA.writeObject(body);

bA.position = 0;

writeObj.body = bA;

You need to rewind the position of the cursor in the byteArray so that

it can be decoded properly.

As I said at the top. This is incomplete and probably has errors in

it, but I hope it helps.

Good luck!

-sandy