Jump to content

SSL


Guest

Recommended Posts

Message from: "Harry Rogers"

 

Hi Farshad

 

A couple more questions.

 

1. Is it on your roadmap to have SSl capability within the standalone

server deployment ?

 

2. Am I correct in thinking that the entire app has a single instance

of 'ServerModule' ? I.e. This would be global to all users. If so what

precautions need to be taken with regard to access to any members

created in it - that is how to be a good citizen within the thread

model used ?

 

Many thnaks

Harry

 

--

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

Hi Harry,

 

> A couple more questions.

>

> 1. Is it on your roadmap to have SSl capability within the standalone

> server deployment ?

>

 

Yes, my plan is to integrate SSL. I'm looking for best option to do this.

 

> 2. Am I correct in thinking that the entire app has a single instance

> of 'ServerModule' ?

 

Yes. ServerModule is a SingleTon and is created once per server.

 

>I.e. This would be global to all users.

 

Yes.

 

>If so what precautions need to be taken with regard to access to any

>members

> created in it -

 

It's native properties are thread-safe. If you put a Component on

ServerModule then Write(modify) accesses must be governed by some sort of

locking mechanisms. Actually, there are many few cases where you may want

to share server-wide global components. What you need most of the time is a

module which is private for a session: MainModule. (see below)

 

>that is how to be a good citizen within the thread model used ?

>

 

Each session creates a new and private copy of MainModule. That's the place

you may want to keep your session's global veriables and components; such as

DataSets, Connections, Tables and etc. (which are only accessible from forms

belonging to that session).

You can also create additional DataModules using uniGUI project wizard.

These DataModules will behave just like MainModule. i.e. each session will

have its private copy of DataModules.

 

Regards,

Farshad Mohajeri

 

 

 

 

 

 

 

.

 

Link to comment
Share on other sites

Message from: "Harry Rogers"

 

Farshad Mohajeri wrote:

 

> Hi Harry,

>

> > A couple more questions.

> >

> > 1. Is it on your roadmap to have SSl capability within the

> > standalone server deployment ?

> >

>

> Yes, my plan is to integrate SSL. I'm looking for best option to do

> this.

>

> > 2. Am I correct in thinking that the entire app has a single

> > instance of 'ServerModule' ?

>

> Yes. ServerModule is a SingleTon and is created once per server.

>

> > I.e. This would be global to all users.

>

> Yes.

>

> > If so what precautions need to be taken with regard to access to

> > any members created in it -

>

> It's native properties are thread-safe. If you put a Component on

> ServerModule then Write(modify) accesses must be governed by some

> sort of locking mechanisms. Actually, there are many few cases where

> you may want to share server-wide global components. What you need

> most of the time is a module which is private for a session:

> MainModule. (see below)

>

> > that is how to be a good citizen within the thread model used ?

> >

>

> Each session creates a new and private copy of MainModule. That's the

> place you may want to keep your session's global veriables and

> components; such as DataSets, Connections, Tables and etc. (which are

> only accessible from forms belonging to that session). You can also

> create additional DataModules using uniGUI project wizard. These

> DataModules will behave just like MainModule. i.e. each session will

> have its private copy of DataModules.

>

> Regards,

> Farshad Mohajeri

 

Many thanks

 

--

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...