Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex RemoteObject in flex
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


bikrantsingh
RemoteObject in flex
1 Answer(s)      4 years and 2 months ago
Posted in : Flex


Hi.....

Please give me the solution of this problem
How do I get access to the J2EE session from my RemoteObjects?

please give the answer with example ASAP

Thanks

Advertisement
View Answers

October 22, 2010 at 5:01 PM


Ans:

For get access a J2EE session from RemoteObject in flex we have follow the following description.

Flex preconfigures a session servlet in the default web.xml file, which makes available a server-side Java object that can be used to access and modify the J2EE session for an application. By placing one of the following Remote object definitions in our Service Locator at services.mxml, we make available to our application a service that can get and set objects in the J2EE session, as well as remove objects from the session:

As with any other tag, the session service can use result and fault event handlers to handle requests to fetch items from the session.

The web.xml descriptor defines the name of the session servlet as servlet; therefore, we use one of the following examples to work with the J2EE session:

sessionObject.session( "set", "customerID", 500 ); sessionObject.session( "get", "customerID" ); sessionObject.session( "remove", "customerID" );

These three examples demonstrate how the session service is used to get, set, or remove items in the J2EE session from a Flex client.

As a best-practice, we recommend that access to the J2EE session be encapsulated in a client-side SessionDelegate Business Delegate in the same way that we recommend interaction with other server-side Java objects. Furthermore, because setting and getting items in the J2EE session is a relatively expensive operation compared with setting state on the client, we advocate using value objects in their role as ?bulk accessors? to get and set a number of related properties.



Related Tutorials/Questions & Answers:
RemoteObject in flex
RemoteObject in flex  Hi..... Why are my ValueObject member variables undefined in the results from my RemoteObjects requests? Please give me the answer Thanks
RemoteObject in flex
RemoteObject in flex  Hi..... Please give me the solution of this problem How do I get access to the J2EE session from my RemoteObjects? please give the answer with example ASAP Thanks
Advertisements
RemoteObject
RemoteObject  Hi........ Just tell me about How do I get Flex.... Thanks  Ans: Flex does not have any native database intergration functionality because flex works on client side. For database interaction we have
RemoteObject Data Calls
RemoteObject Data Calls  Hi..... please tell me about How do I make synchronous data calls? please give me an example for that...... Thanks
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider   You can visit the following link for detailed tutorial on the topic. May this will be helpful to you. http://www.roseindia.net/flex/flex-combo-box.shtml
Flex event
Flex event  Hi.... Please tell me about How to create your own event in flex? Thanks
Flex and Java
Flex and Java  hi..... Please give similiarities between Java and Flex. Thanks
Flex basic
Flex basic  Hi...... please just tell me about Can we run Flex applications in MAC? Thanks
Flex and Java
Flex and Java  Hi.... What are the config files that are used to connect Java and Flex applications? Please provide the solution of this prob so i connect java and flex.... Thanks
Flex and Java
Flex and Java  Hi...... Give the name of Collection which can be mapped to java and Flex and vice-versa. please give the name of all collections which is used in flex and java.. Thanks
Flex basic
Flex basic  Hi.... Can flex application communicate with each other on the client? please give me the answer ASAP..... Thanks   Ans: See the LocalConnection API In the flex documentation. Thanks
Flex Updates
Flex Updates  Sir, first Thanks For Good Resource for Every One! i am New to Flex... but,in Current Updates Tell Us Flex Becomes To down!(Sorry To say).. May I know Future groom & Advantage of Flex Over Other Web
Flex as a Service
Flex as a Service  Hi....... just tell me about How do I run Flex as a service? please give me an example if possible Thanks  Ans: Flex is not a server. It is the pert of your web application. you can use
Flex basic
Flex basic  Hi.... I want to know Do we need any plugins to run Flex applications? please give the ans ASAP....... Thanks
Flex basic
Flex basic  Hi.... can you tell me about Is Flex OS specific or operating system independent? please give the description about it....... Thanks
Flex application
Flex application  Hi..... What kind of applications you can create from flex? please give the name of these applications....... Thanks
Flex basic
Flex basic  Hi.......... I want to know about What is localToGlobal and globalToLocal in flex? please give me ans ASAP..... Thanks
Flex difference
Flex difference  Hi.... please tell me about What is the difference between Flex 2.0 and Flex 3.0? Thanks  Ans: There are some advantages of Flex3.0 over Flex 2.0 they are following: 1. Faster compilation time
Flex with JSP
Flex with JSP  i want to draw chart in jsp page using flex. how can i do that? any solution??   Flex charts You can visit the following links: http://www.roseindia.net/tutorial/flex/flex4/components/charteffect.html
Flex basic
Flex basic  Hi...... Please tell me about What are non-visual components in flex? What class do they extend? please give the name of these components....... Thanks
Adding a flex table in another flex table column
Adding a flex table in another flex table column  how to add a flex table in another flex table column
Adobe flex
Adobe flex  Hi... please give me the description about What is Adobe Flex? Thanks
Mask in Flex
Mask in Flex  Hi...... Is it possible to create 'gradient mask' in flex? please give me the ans ASAP..... Thanks in advance
XML in flex
XML in flex  Hi... just tell me about What is e4X and XML in flex? Thanks
Flex event
Flex event  hi...... How to capture and event if the component is disabled? please give an example..... Thanks in advance
Metadata in flex
Metadata in flex  Hi......... please tell me about the meta data in flex. Thanks
Image in Flex
Image in Flex  Hi..... Can you manipulate images using Flex programs? please give me the example....... Thanks
Flex Managers
Flex Managers  Hi... Please tell me about How to override Managers? give me an example for that.... Thanks
Advantage of Flex
are the Advantages and Disadvantages of flex? Thanks   Advantages: Flex IDE is very capable. Flex output is a movie and images is the major part of this movie. you can not directly download the flex running file. When we right click
Advertisements
 

 

 

DMCA.com