Difference in Context,InitialContext and Session Context
5 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dipendra_Jha
Posted On:   Sunday, November 18, 2001 06:19 AM


What is the difference between Context,InitialContext and Session Context?How they are used?

Re: Difference in Context,InitialContext and Session Context

Posted By:   RATHAKRISHNAN_K  
Posted On:   Monday, November 19, 2001 12:52 AM


javax.naming.Context is an interface
that provides methods for binding a name
to an object. It's much like the RMI
Naming.bind() method.


javax.naming.InitialContext is a Context
and provides implementation for methods
available in the Context interface.


Where as SessionContext is an EJBContext
object that is provided by the EJB
container to a SessionBean in order for
the SessionBean to access the information and/or services or the container.


There is EntityContext too which is also
and EJBContext object that'll be provided to an EntityBean for the purpose of the EntityBean

accessing the
container details.


In general, the EJBContext (SessionContext and EntityContext), AppletContext and

ServletContext help
the corresponding Java objects in knowing about its 'context' [environment in which they

run], and to
access particular information and/or service.


Whereas, the javax.naming.Context is for the purpose of 'NAMING' [by the way
of referring to] an object.

Re: Difference in Context,InitialContext and Session Context

Posted By:   RATHAKRISHNAN_K  
Posted On:   Monday, November 19, 2001 12:51 AM


javax.naming.Context is an interface
that provides methods for binding a name
to an object. It's much like the RMI
Naming.bind() method.


javax.naming.InitialContext is a Context
and provides implementation for methods
available in the Context interface.


Where as SessionContext is an EJBContext
object that is provided by the EJB
container to a SessionBean in order for
the SessionBean to access the information and/or services or the container.


There is EntityContext too which is also
and EJBContext object that'll be provided to an EntityBean for the purpose of the EntityBean

accessing the
container details.


In general, the EJBContext (SessionContext and EntityContext), AppletContext and

ServletContext help
the corresponding Java objects in knowing about its 'context' [environment in which they

run], and to
access particular information and/or service.


Whereas, the javax.naming.Context is for the purpose of 'NAMING' [by the way
of referring to] an object.

Re: Difference in Context,InitialContext and Session Context

Posted By:   RATHAKRISHNAN_K  
Posted On:   Monday, November 19, 2001 12:51 AM


javax.naming.Context is an interface
that provides methods for binding a name
to an object. It's much like the RMI
Naming.bind() method.


javax.naming.InitialContext is a Context
and provides implementation for methods
available in the Context interface.


Where as SessionContext is an EJBContext
object that is provided by the EJB
container to a SessionBean in order for
the SessionBean to access the information and/or services or the container.


There is EntityContext too which is also
and EJBContext object that'll be provided to an EntityBean for the purpose of the EntityBean

accessing the
container details.


In general, the EJBContext (SessionContext and EntityContext), AppletContext and

ServletContext help
the corresponding Java objects in knowing about its 'context' [environment in which they

run], and to
access particular information and/or service.


Whereas, the javax.naming.Context is for the purpose of 'NAMING' [by the way
of referring to] an object.

Re: Difference in Context,InitialContext and Session Context

Posted By:   RATHAKRISHNAN_K  
Posted On:   Monday, November 19, 2001 12:51 AM


javax.naming.Context is an interface
that provides methods for binding a name
to an object. It's much like the RMI
Naming.bind() method.


javax.naming.InitialContext is a Context
and provides implementation for methods
available in the Context interface.


Where as SessionContext is an EJBContext
object that is provided by the EJB
container to a SessionBean in order for
the SessionBean to access the information and/or services or the container.


There is EntityContext too which is also
and EJBContext object that'll be provided to an EntityBean for the purpose of the EntityBean accessing the
container details.


In general, the EJBContext (SessionContext and EntityContext), AppletContext and ServletContext help
the corresponding Java objects in knowing about its 'context' [environment in which they run], and to
access particular information and/or service.


Whereas, the javax.naming.Context is for the purpose of 'NAMING' [by the way
of referring to] an object.

Re: Difference in Context,InitialContext and Session Context

Posted By:   RATHAKRISHNAN_K  
Posted On:   Monday, November 19, 2001 12:50 AM


javax.naming.Context is an interface
that provides methods for binding a name
to an object. It's much like the RMI
Naming.bind() method.


javax.naming.InitialContext is a Context
and provides implementation for methods
available in the Context interface.


Where as SessionContext is an EJBContext
object that is provided by the EJB
container to a SessionBean in order for
the SessionBean to access the information and/or services or the container.


There is EntityContext too which is also
and EJBContext object that'll be provided to an EntityBean for the purpose of the EntityBean accessing the
container details.


In general, the EJBContext (SessionContext and EntityContext), AppletContext and ServletContext help
the corresponding Java objects in knowing about its 'context' [environment in which they run], and to
access particular information and/or service.


Whereas, the javax.naming.Context is for the purpose of 'NAMING' [by the way
of referring to] an object.

About | Sitemap | Contact