Persisting Data across different WebApps/Sessions

Hello all,
I am developing in an environment where multiple (web & enterprise) applications
are developed and deployed separately to the same clustered WebLogic infrastructure.
The applications are all owned by the same company, and usually co-exist quite
happily. I have a request from the business, for a new application I am developing,
to persist some user info for a logged in user on one application to another application,
acessible to the user via a link on page. The user should be able to click on
a link and access a different application but still have their data available
on the new app, if logged in.
As these applications are separate, afaik they cannot simply share session information
together. I need some mechanism, whereby one application can access the information
in the other application's session. Thus far I have considered these options:
1) Writing a cookie containing the info, this could be retrieved from the other
application, back from the client.
2) Send user data through to the second application via a query string. At the
moment this would be possible as a limited amount of information is required to
be shared.
3) Send unique field, such as userid, through to the second application, then
use this field to retrieve user's details from database shared with first application.
This seems OK in principle but my DBA's and security people may have other ideas.
4) Serialise a user object which could be picked up again by the second application.
As I don't know much about serialisation, where do objects get serialised to,
presumably the server they are running on, is there a particular location, would
there be security manager issues and would this be possible in a cluster?
5) Is there another way for web applications to share information with each other?
Thanks,
James

James,
All of these approaches seem legitimate. It seems like if the data is small,
the URL Query String approach would scale and perform well. However, the database
userid approach would entail a performance hit just like when you use JDBC persistence
for session information.
Additional, stateful session beans store serialized information based upon the
persistent-store-dir in the weblogic-ejb-jar.xml file
See
http://edocs.bea.com/wls/docs61/ejb/reference.html#1071686
"James Lawless" <[email protected]> wrote:
>
Hello all,
I am developing in an environment where multiple (web & enterprise) applications
are developed and deployed separately to the same clustered WebLogic
infrastructure.
The applications are all owned by the same company, and usually co-exist
quite
happily. I have a request from the business, for a new application I
am developing,
to persist some user info for a logged in user on one application to
another application,
acessible to the user via a link on page. The user should be able to
click on
a link and access a different application but still have their data available
on the new app, if logged in.
As these applications are separate, afaik they cannot simply share session
information
together. I need some mechanism, whereby one application can access the
information
in the other application's session. Thus far I have considered these
options:
1) Writing a cookie containing the info, this could be retrieved from
the other
application, back from the client.
2) Send user data through to the second application via a query string.
At the
moment this would be possible as a limited amount of information is required
to
be shared.
3) Send unique field, such as userid, through to the second application,
then
use this field to retrieve user's details from database shared with first
application.
This seems OK in principle but my DBA's and security people may have
other ideas.
4) Serialise a user object which could be picked up again by the second
application.
As I don't know much about serialisation, where do objects get serialised
to,
presumably the server they are running on, is there a particular location,
would
there be security manager issues and would this be possible in a cluster?
5) Is there another way for web applications to share information with
each other?
Thanks,
James

Similar Messages

  • Sharing data across different webapps using JSP/Servlet

    I have two different web applications running on same WebLogic server say webapp1 and webapp2. Webapp1 has servlet which redirects the user to JSP in webapp2. While redirecting I have to pass one string value to called JSP. I have achieved this by using QueryString as follows:
    response.sendRedirect(ConfigService.getProperty("com.twofactauth.caymanlogin.caymanurl", null)) + "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but i don't want to expose the value passed. I am searching the way to pass the value internally without exposing.
    so please tell me other way in which i can pass the value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both applications are deployed on same WebLogic instance.

    I have two different web applications running on same
    WebLogic server say webapp1 and webapp2. Webapp1 has
    servlet which redirects the user to JSP in webapp2.
    While redirecting I have to pass one string value to
    called JSP. I have achieved this by using QueryString
    as follows:
    response.sendRedirect(ConfigService.getProperty("com.t
    wofactauth.caymanlogin.caymanurl", null)) +
    "?userName=" + strCaymanUserName);
    but this expoes the value in browser address bar but
    i don't want to expose the value passed. I am
    searching the way to pass the value internally
    without exposing.
    so please tell me other way in which i can pass the
    value to called JSP without usign QueryString.
    I am using WebLogic 8.1 for deployments. Both
    applications are deployed on same WebLogic instance.I think a big part of the problem is that you want the functionality of a web app to be available to others, but you've locked it up behind a UI.
    I think this is one of the benefits of a service-oriented architecture. You start thinking about the system functionality apart from the UI. Your JSPs become just another client of the services you expose. Anyone can call those services, as long as they can see that service on their network.
    When I've done this I've started with a Spring service interface that is completely separate from the view layer. Once I have that, I can expose it to any other client either with web services (not preferred) or Spring HTTP remoting (preferred due to its simplicity).
    %

  • CS3/CS4 - Persistent data and different versions of plugin

    Hi there,
    In my plugin I have persistent data on e.g., the document and page items.
    Say that I'm in version 1.0 of my plugin has a single persistent data field on the document, and that is wish to add a second field for version 1.1.
    Does the SDK contain some form of functionallity for merging an old document into a new one that conform with the new fields?
    Basically, my problem is that I do not know if I'm allowed to read the new persistent field in my ReadWrite function, since the current document could be created using version 1.0.
    I guess that one solution is to tag the document with a version, and use that to determine the functionality of the ReadWrite function? However that do not seem as the most elegant solution...
    I hope somebody understands my problem, and has a more sophisticated solution
    Thanks
    Kind regards Toke

    There are basically two ways to deal with this situation.
    The first is to let InDesign treat your data as a blob, include your own version number in the blob and parse the blob yourself based on the version number.  In this scenario you generally keep your plug-in's version resources the same, so InDesign doesn't know you've changed data formats.
    The second is the InDesign way, in that you define a schema resource for each format version of your plug-in.  Doing this places constraints on your data, in that changes have to be moderately simple so that InDesign can apply changes to the older versions of your data to bring them up to the current schema.
    See Schema.fh in the SDK.
    The sample /Adobe_InDesign_CS4_Products_SDK/source/sdksamples/framelabel/FrmLbl.fr also uses schema resources.
    The key is to be careful about syncing changes in your data with changes to your plug-in's format version numbers, as well as keeping your data simple enough for the schema system to update it.  If you don't, then you need to get into schema updating code and a bunch more work.
    Jon

  • Querying data across different cache-clusters

    Hi,
    Say there are multiple clusters each containing DIFFERENT sets of cached data. I would like to know if someone knows how an application from within one cluster can read/query the data from the DIFFERENT clusters "DIRECTLY". Would we need to code in Coherence extend protocol API (if there is one such) in this case ? Does anyone know or done this ?

    Hi,
    Yes you would need to use Extend to be able to see one cluster from another. It is pretty straight forward, you just configure the cache mappings in the same way you would for any remote caches.
    JK

  • Trying to retrieve mixed data across different rows depending on row type

    I have a requirement to extract data from a table which happens to have different row types (header, row1, row2) in it. I thought the best way to explain what I want is to demonstrate by example!
    CREATE TABLE IFSAPP.KM_MSG_TEST (MESSAGE_ID NUMBER NOT NULL,
        MESSAGE_LINE NUMBER NOT NULL, NAME VARCHAR2(255 byte) NOT
        NULL, ERROR_MESSAGE VARCHAR2(255 byte), C00 VARCHAR2(2000
        byte), C01 VARCHAR2(2000 byte), C02 VARCHAR2(2000 byte),
        C03 VARCHAR2(2000 byte), C04 VARCHAR2(2000 byte), C05
        VARCHAR2(2000 byte), C06 VARCHAR2(2000 byte),
        N00 NUMBER, N01 NUMBER,
        D00 DATE)
        TABLESPACE IFSAPP_DATA_LARGE;
    insert into ifsapp.km_msg_test values('1353078','1','HEADER','','INTRST','OKM','','380','3','30025308','9',0,0,'');
    insert into ifsapp.km_msg_test values('1353078','2','ROW1','','7034724','','','1057627','43','001','331276180003',5,0,'');
    insert into ifsapp.km_msg_test values('1353078','3','ROW2','','3','0','','','C62','DE','',0,5,'');
    insert into ifsapp.km_msg_test values('1353078','4','ROW1','','7034724','','','1058169','26','002','331346110004',6,0,'');
    insert into ifsapp.km_msg_test values('1353078','5','ROW2','','3','0','','','C62','DE','',0,6,'');
    insert into ifsapp.km_msg_test values('1353078','6','ROW1','','7016169','','','1059062','14','003','331483070005',1,0,'');
    insert into ifsapp.km_msg_test values('1353078','7','ROW2','','3','0','','','C62','JP','',0,1,'');
    insert into ifsapp.km_msg_test values('1353078','8','ROW1','','7034724','','','1059062','41','004','331483205000',11,0,'');
    insert into ifsapp.km_msg_test values('1353078','9','ROW2','','3','0','','','C62','DE','',0,11,'');
    insert into ifsapp.km_msg_test values('1353078','10','ROW1','','7057032','','','1059062','43','005','331483215001',2,0,'');
    insert into ifsapp.km_msg_test values('1353078','11','ROW2','','3','0','','','C62','DE','',0,2,'');
    insert into ifsapp.km_msg_test values('1353078','12','ROW1','','7000235','','','1059732','1','006','331566005002',14,0,'');
    insert into ifsapp.km_msg_test values('1353078','13','ROW2','','3','0','','','C62','JP','',0,14,'');
    insert into ifsapp.km_msg_test values('1353078','14','ROW1','','7014091','','','1059732','10','007','331566050010',2,0,'');
    insert into ifsapp.km_msg_test values('1353078','15','ROW2','','3','0','','','C62','DE','',0,2,'');
    commit;
    select * from ifsapp.km_msg_test;
    Message_Id Message_Line Name    Error_Message C00     C01 C02 C03     C04 C05      C06            N00 N01 D00
    1353078    1            HEADER                INTRST  OKM     380     3   30025308 9              0   0
    1353078    2            ROW1                  7034724         1057627 43  001      331276180003   5   0
    1353078    3            ROW2                  3       0               C62 DE                      0   5
    1353078    4            ROW1                  7034724         1058169 26  002      331346110004   6   0
    1353078    5            ROW2                  3       0               C62 DE                      0   6
    1353078    6            ROW1                  7016169         1059062 14  003      331483070005   1   0
    1353078    7            ROW2                  3       0               C62 JP                      0   1
    1353078    8            ROW1                  7034724         1059062 41  004      331483205000   11  0
    1353078    9            ROW2                  3       0               C62 DE                      0   11
    1353078    10           ROW1                  7057032         1059062 43  005      331483215001   2   0
    1353078    11           ROW2                  3       0               C62 DE                      0   2
    1353078    12           ROW1                  7000235         1059732 1   006      331566005002   14  0
    1353078    13           ROW2                  3       0               C62 JP                      0   14
    1353078    14           ROW1                  7014091         1059732 10  007      331566050010   2   0
    1353078    15           ROW2                  3       0               C62 DE                      0   2C03 holds a reference number for ROW1s. I want to return the following:
    Master_Ref  Ref_Num  Line_No  Seq_No  Part_No   Qty
    30025308    1059062  14       003     7016169   1
    30025308    1059062  41       004     7034724   11
    30025308    1059062  43       005     7057032   2when I select on Ref_Num being 1059062
    Master_Ref=C05 from HEADER
    Ref_Num=C03 from ROW1
    Line_No=C04 from ROW1
    Seq_No=C05 from ROW1
    Part_No=Name from ROW1
    Qty=N00 from ROW1

    Hi,
    SQL> column Master_Ref FORMAT A9
    SQL> column Ref_Num FORMAT A9
    SQL> column Line_No FORMAT A3
    SQL> column Seq_No FORMAT A3
    SQL> column Part_No FORMAT A9
    SQL>
    SQL> select
      2    Header.C05 as Master_Ref,
      3    Row1.C03 as Ref_Num,
      4    Row1.C04 as Line_No,
      5    Row1.C05 as Seq_No,
      6    Row1.C00 as Part_No,
      7    Row1.N00 as Qty
      8  from km_msg_test Row1, km_msg_test Header
      9  where Row1.name = 'ROW1'
    10    and Header.name = 'HEADER'
    11    and Row1.message_id = Header.message_id
    12    and row1.C03 = '1059062'
    13  ;
    MASTER_RE REF_NUM   LIN SEQ PART_NO          QTY
    30025308  1059062   14  003 7016169            1
    30025308  1059062   41  004 7034724           11
    30025308  1059062   43  005 7057032            2Regards,
    Dima

  • Is it possible to link data across different/multiple PWA sites leveraging Master Project with the Subprojects feature?

    A couple different questions /similar scenarios
    1) Is it possible with Project Server 2010 to have several sites (http://server/pwa1 and
    http://server/pwa2 for example) communicate and build a Master Project at a third (or X) site (http://server/pwa3)
    2) Is it possible with Project Server 2010 to have several sites (http://server/pwa1 and
    http://server/pwa2 for example) communicate and build a Master Project at one of the original sites (http://server/pwa1 (for example))
    OR is there a better way to do this/more preferred way to do this. 
    We found this (http://social.technet.microsoft.com/Forums/projectserver/en-US/2379c3f2-6c80-46d7-8eac-3bc2ccb2d908/master-projectsubproject-with-sites-in-pwa-2010?forum=projectserver2010general)
    but its not what we're looking for
    3a) Issue/Example -
    We want to set up a site (http://server/pwa100) for just the president of the company - all the schedules of the subsites (/pwa99 + /pwa98) create a feed into an integrated master schedule/master project with subprojects(located
    in /pwa100). 
    3b-1) We also want to set up sub sites (http://server/pwa99 and
    http://server/pwa98) for each division VPs (and specific other people). These two sites would only allow specific user's project files to be viewed by each other...
    Can their project files have linkages between the two project sites (/pwa99 and /pwa98)? Meaning if user1 logs in to /pwa99 can he see a project file (given that they have permission) from /pwa98 in the same instance?
    3b-2) Can they see the project file in ProjPro and/or PWA ???
    3c) is it possible to have:
    + /pwa100 (pres)
    ++/pwa99 & /pwa98 (two vps)
    +++/pwa97 & /pwa96 & /pwa95 & /pwa-etc (minions)
    each rolling up to the next level (level 3 rolls up to level 2 which can roll up to level 1)

    kbwrecker,
    I agree with Dale. Having multiple sites will make this difficult to set up. 
    Not knowing how your Custom Groups/Categories have been set up, have you looked into using the "Project Permissions" feature to share projects. These permissions are 'additive' to the category permissions, so you could start out with people looking at the
    projects they are authorized to via categories, and then let them share/add people as needed basis. This will also satisfy the requirement of not-loading the projects with resources..
    And finally, the department and categories need not align, except that when projects from one dept are shared t another dept resource, the visibility of custom fieds will be affected.
    Hope I did not go off on a tangent there :)
    Prasanna Adavi,PMP,MCTS,MCITP,MCT TWitter: @prasannaadavi Blog: http://www.prasannaadavi.com
    Meant to get back to this earlier - your answer is close (because its what we currently do..sort-of)
    From my understanding of this issue the users are separated by department and can only see specific projects; however, when they try to share departments between users (so they can see their projects (dept a sees dept b projects)) this works - but there
    is a bigger issue/main issue.  
    main issue: when dept B adds a new project dept. A cannot see the new project in dept B.
    This can be eliviated by removing the user/s and re-adding them to the permission structure of the deptment but overall doing this several times based on user/s and projects being added it gets to be cumbersome and just plain annoying.
    Any help/additional thoughts would be great

  • Reference table data across different tables

    Hi all,
    is really impossible to have some table call the content of a cell in another table with Pages 2.0.2?
    Thanks in advance,
    Filippo

    No one has found a way of doing it, and the question has appeared repeatedly in this forum, so yes, it is likely impossible.

  • Persisting data using LDAP

    Is it possible to persist data (across sessions) in an LDAP service? I would like
    to be able to store preferences/configuration properties in an LDAP service and
    when I restart the application server those properties are persisted and can be
    retrieved using the InitialContext.lookup() method.
    Is this possible? If it is do application servers support this or do I need to
    install a separate LDAP service?
    Thanks,
    Mike

    Hi Mike,
    It is possible and there are different ways to access the LDAP server by
    either using the JNDI DirContext, Netscape LDAP API, or JDBC-LDAP bridge
    driver.
    You can choose whichever suits you best.
    On java.sun.com there is a very good tutorial on how to do this via JNDI
    and it is probably the easiest way to do what you need.
    Weblogic 7.0 and 8.1 come with an Embedded LDAP server so you wouldn't
    need a separate LDAP server if you use them. The documentation on how to
    connect and use/configure it is scarce at best but we managed to make it
    work just fine for us.
    If you use another version/vendor then you'll most probably need an
    external separate LDAP server.
    Regards,
    Dejan
    Mike wrote:
    Is it possible to persist data (across sessions) in an LDAP service? I would like
    to be able to store preferences/configuration properties in an LDAP service and
    when I restart the application server those properties are persisted and can be
    retrieved using the InitialContext.lookup() method.
    Is this possible? If it is do application servers support this or do I need to
    install a separate LDAP service?
    Thanks,
    Mike

  • Using session data across applications and subdomains

    Is there a way to share session <b>data</b>
    across different CF applications? across different subdomains?
    The goal here is single source login that stores complex data
    in a re-useable session scope. The current installation uses wddx
    to serialize the data and drop it into a cookie. I am looking for
    alternatives to the WDDX method as it has been causing a number of
    errors.
    For example I have application "a" at appA.domain.com ~ a
    user logs in an a session is created [domain cookies are set].
    I would like the user to be able to go to both
    appA.domain.com/subapp [which has its own application.cfm] and
    reuse the session created at appA.domain.com.
    Similarly I would like the session created appA.domain.com to
    carry over to appB.domain.com [which would has its own
    application.cfm file].
    Thanks for any help.
    ~jason.

    That would be known as cros-site scripting and most browsers
    disable that now, as it is a security issue if an application can
    read cookies from a different site domain.
    Sites that use cross-site data have to either pass it at the
    time accessig the other domain (via URL) or use a single database
    to record and recall data between applications.
    Passport is a good example. Even though you can use Passport
    on any site that offers it, the site ultimately tranfers you to the
    Passport website momentarily to collect your login and then
    transfers you back to your site along wth the credentials in a URL
    variable so your own site can then record the cookie and state you
    are logged in. It doesn't actually read the Passport cookie from
    your own site.
    If you were to create a DB that applies to multiple sites,
    you could figure out a way to populate session variables on
    separate sites by quering the DB for the data if there is no data
    currently stored, or if it detects that the referer was a different
    URL prior to loading the current site. Once it queries the data it
    can store the data in a session variable.

  • Data of different session are not getting refreshed.

    We used select one choice and it is bind to the iterator. Data of different session are not getting reflected.
    Problem Scenario : Two browsers are open with same screen . In browser-1, I am adding new item which display on drop down of same screen. But drop down of browser-2 is not displaying the new added value.
    Please let me know how to refresh the data of browser-2 if I added data on different session.
    //JSFF entry
    <af:selectOneChoice binding="#{backingBeanScope.Product.ICTCSTName}"
    id="iCTCSTName" simple="true"
    label="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.label}"
    required="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.hints.mandatory}"
    value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.inputValue}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.items}"
    binding="#{backingBeanScope.Product.si2}"
    id="si2"/>
    </af:selectOneChoice>
    //Pagedef entry
    <list IterBinding="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    ListOperMode="navigation"
    ListIter="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    id="tpCrudeSuperTypeFindAllPopulatedCT" DTSupportsMRU="true">
    <AttrNames>
    <Item Value="superTypeName"/>
    </AttrNames>
    </list>

    Are you sure backingBeanScope is the correct scope for your scenario?
    Session scope sound more appropriate to me.
    binding="#{backingBeanScope.Product.si2}"

  • How to store jsp session data of different user in util.hashmap

    how to store jsp session data of different user in java.util.hashmap
    and access the data of all user on the server side
    The same example is given in professional jsp but its not working.
    I can use getIds() of httpsessioncontext but it's depricated

    Hi
    I'm trying to make an example.
    With the following codes you can get the date from the session.
    request.getSession().getAttribute("sessionname")
    To store it in a hashmap you could do it like this ->
    Hashmap hm = new Hashmap();
    hm.put(Object key, request.getSession().getAttribute("sessionname"));
    I hope you understand it if not just write it!
    Cyrill

  • Reuse Dimdate across different database for different data models

    Hi,
    I am designing a new data model for a data mart. I need to add dimdate dimension in this data model. I noticed that dimdate already exists in another database and being used by another
    data model. Is it possible to re-use the existing dimdate table for my new data model? If so, what about the foreign key constraints? Normally we link the date columns from fact table to the dimdate keys. How would we achieve that in case we are using the
    same table across different databases?
    Any opinion on this will be highly appreciated.
    Thanks in Advance.
    Cheers!!

    You can create a copy of dimdate table to your new data warehouse.
    If both data marts were in a single data warehouse, then you don't required to copy. but as these are in two different databases then you just copy that.
    regarding FK relationship. you can connect any fact table to you date dimension. even if you want to use more than one instance of your date dimension, it would be simply adding multiple FK columns in your fact table (role playing dimension).
    For date dimension be sure that your date dimension covers most of the attributes required. here is an example of date dimension:
    http://www.rad.pasfu.com/index.php?/archives/156-Script-to-Generate-and-Populate-Date-Dimension-Version-2-Adding-Multiple-Financial-Years.html
    Regards,
    Reza
    SQL Server MVP
    Blog:  
    http://rad.pasfu.com  Twitter:
      LinkedIn:
    SQL Server Integration Services 2012 Tutorial Videos:
    http://www.radacad.com/CoursePlan.aspx?course=1

  • Preview Data in EAS across different essbase Servers

    Hello All,
    We are on 11.1.2.3 of EPM. In our Prod EAS I have Signed in using my AD user ID and added the two(one prod, one dev) essbase servers to the list of essbase servers. I was able to successfully add the two essbase servers. Now when I preview data on cube in dev it gives me the error "Cannot connect to olap service. Cannot connect to Essbase Server. Error: Essbase Error(1051293): Login fails due to invalid login credentials". This cannot be true because I would not be able to expand the essbase servers list and drill down to the database in order to preview it if the credentials were wrong. Also I am able to see the outlines and Calc scripts just fine. I am able to preview data on the prod cube just fine.
    Now, The same happens when I try to preview data in prod essbase cube when coming from Dev EAS. Which means am able to preview data only on dev essbase server cubes when coming from dev EAS and when I try to preview data on a prod cube when coming from Dev EAS i get the same invalid login credentials error.
    Could someone please help me understand if this is a bug or if this is how they intended it to work? Because we just upgraded from 11.1.1.4 and we were able to preview data across any essbase server no matter which EAS service we used.
    No SSL or Single Sign-on were used. Just active directory credentials. It happens only with an AD ID and not with a native directory ID. Please suggest on how this can be fixed.
    Thanks,
    Ted.

    I logged this with Oracle and the following is their response copy/pasted
    The issue which you have reported in this SR is a desired behavior. This behavior has been seen in latest versions only 11.1.2.x.
    In earlier version we can preview the data of any Essbase server added to any eas console.
    But form 11.1.2.x environment this behaviour has been changed.
    We did checked with development team on this earlier, and according to development team its a behavior by design.
    As dev environment and Prod environment have different registries , the preview data would work if Dev Essbase server added to Dev EAS only. like same holds good for prod or test environments.
    As same issue has been reported earlier , we form support has raised a bug with development team after reproducing the issue .
    But development team did not accept this as bug as this behavior was by design .
    So later we changed this bug to a enchantment request with development team to change this behavior.
    Bug 14622693 - PREVIEW DATA ON REMOTE ESSBASE HOST FAIL WHEN CONNECTED FROM EAS
    If this enhancement requested gets approved by development team ,Then it would be incorporated in future release.
    Thanks,
    Ted.

  • Session Facade and Access to a Non SQL Based Persistent Data Store

    Hi,
    We are currently using jDeveloper 10.1.3.5 and Oracle Application Server 10.1.3.5. We develop all our applications as Java portlets using Oracle PDK and they are exposed through Oracle Portal.
    In our environment, the persistent data is stored on a combination of an Oracle database and a non SQL based persistent data store.
    The way we access the non SQL persistent data store is by posting a URL and receiving an XML document back in response. This mechanism is used both for enquiry and update of the persistent store.
    We have to create a new XML schema for each entity that we need to access and there are software changes on both our environment (Java) and the non SQL based persistent data store.
    In an attempt to shorten development times we are looking to start using ADF faces and EJB3.
    We have downloaded the SRDemo tutorial and made it work but there are some challenges.
    1. The SRDemo seem to have a very minimal implementation of a business layer. From what I can see, it is essentially some straightforward wiring between database attributes and their viewable representation. Is there a demo/tutorial containing a bit more meat in the business layer that you are aware of?
    2. Given our non SQL based persistent data store, how would you go about implementing EJB3 for such scenario. Is it recommended at all? How would you go about integrating the rest of the application (business layer and representation layer) to data arriving from such source?
    3. SRDemo is not intended to be exposed as a portlet. Is there a tutorial that we can use incorporating JSR168, ADF Faces and EJB3 in the same application? I also understand that there is a JSF-JSR168 bridge available. Can you provide some pointers here? Where can we find it? Would we be able to use it in jDeveloper 10.1.3.5?
    Regards

    Matt,
    The only way to associate an "x-axis" with a signal in the Write Data VI would be to feed it waveforms, which are constrained to use time as the x-axis unit. There is really no way around this, so in my opinion, the best solution for you would be to use the "rows are channels" conversion and write the frequency and amplitude values to the file independently. Then when you read the file in DIAdem, take the two channels and build a graph out of them there.
    Regards,
    E. Sulzer
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • Using Toplink API to persist data to database

    My requirement is to persist data to the database (oracle) using Toplink Java API approach.
    I have a basic setup program, but its not solving the purpose.
    Kindly let me know where I am missing.
    package sample;
    import oracle.toplink.essentials.descriptors.ClassDescriptor;
    import oracle.toplink.essentials.descriptors.RelationalDescriptor;
    import oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl;
    import oracle.toplink.essentials.mappings.DirectToFieldMapping;
    import oracle.toplink.essentials.queryframework.DatabaseQuery;
    import oracle.toplink.essentials.sessions.Login;
    import oracle.toplink.essentials.sessions.UnitOfWork;
    public class EmployeeProject extends oracle.toplink.essentials.sessions.Project
    private ClassDescriptor classDescriptor;
    public EmployeeProject()
    applyPROJECT();
    applyLOGIN();
    classDescriptor = buildEmployeeDescriptor();
    addDescriptor(classDescriptor);
    System.out.println("classDescriptor.getMappings(): " + classDescriptor.getMappings());
    protected void applyPROJECT(){
    setName("Employee");
    protected void applyLOGIN()
    oracle.toplink.essentials.sessions.DatabaseLogin login = new oracle.toplink.essentials.sessions.DatabaseLogin();
    login.setDriverClassName("oracle.jdbc.OracleDriver");
    login.setConnectionString("jdbc:oracle:thin:ptyagi-pc.idc.oracle.com:1521:orcl");
    login.setUserName("system");
    login.setPassword("orcl");
    // Configuration Properties
    setDatasourceLogin((Login)login);
    // SECTION: DESCRIPTOR
    public ClassDescriptor buildEmployeeDescriptor() {
    RelationalDescriptor descriptor = new RelationalDescriptor();
    // specify the class to be made persistent
    descriptor.setJavaClass(sample.Employee.class);
    // specify the tables to be used and primary key
    descriptor.addTableName("EMP1");
    descriptor.addPrimaryKeyFieldName("EMP1.ID");
    // Descriptor Properties
    descriptor.useSoftCacheWeakIdentityMap();
    descriptor.setIdentityMapSize(100);
    descriptor.setAlias("Employee");
    // Mappings
    DirectToFieldMapping idMapping = new DirectToFieldMapping();
    idMapping.setAttributeName("id");
    idMapping.setFieldName("EMP1.ID");
    descriptor.addMapping(idMapping);
    DirectToFieldMapping nameMapping = new DirectToFieldMapping();
    nameMapping.setAttributeName("name");
    nameMapping.setFieldName("EMP1.NAME");
    descriptor.addMapping(nameMapping);
    DirectToFieldMapping salMapping = new DirectToFieldMapping();
    salMapping.setAttributeName("salary");
    salMapping.setFieldName("EMP1.SALARY");
    descriptor.addMapping(salMapping);
    return descriptor;
    public static void main(String [] args) {
    EmployeeProject empProj = new EmployeeProject();
    Employee emp = new Employee();
    emp.setID(1);
    emp.setName("Pulkita");
    emp.setSalary(100);
    DatabaseSessionImpl databaseSessionImpl = new DatabaseSessionImpl(empProj);
    databaseSessionImpl.login();
    databaseSessionImpl.beginTransaction();
    UnitOfWork unitOfWork = databaseSessionImpl.acquireUnitOfWork();
    unitOfWork.registerNewObject(emp);
    unitOfWork.commit();
    }

    The issue is with the line:
    databaseSessionImpl.beginTransaction();Since you began the transaction yourself you must also commit it. The easiest solution is to remove the above line and allow the UnitOfWork to begin and commit the transaction itself.
    Doug

Maybe you are looking for

  • Automatic Active Sync failed to Start at appropriate time

    Hellos, Its holiday season here. We had a FF Active Sync process that failed to start up. Ops noted an overheating CPU at 2am. Server was brought down.. App server stopped, Database stopped. Fan fixed and Server rebooted.. Database started Ok, App se

  • Error Message when attempting to connect to server directory List View.

    I just transferred my entire Mac (User, Hard Drive Files, Network, Time & Date) from one MacBook Pro 2.4 Ghz to another MacBook Pro 2.4 Ghz machine. Everything seemed fine but the following. My computer connects to a Mac OS X Server (10.5.2) in our o

  • Problem while invoking popup from backing bean

    I am invoking a popup from backing bean method. The same backing bean method has the business logic which depends on the data collected from popup(user enters some data on popup). So I need the business logic to be executed after popup comes up. The

  • Fatal error: installation failed prematurely because of an error

    Hi I need some helps here. I am doing the installation of BO XI Integration Kit for SAP Solutions. It was not successful. I have follow note 1391885 but no avail. SAPGUI 7.01 has been installed in the machine. The required sapjcorfc.dll file is copie

  • IDocs in BW

    Hi All, i want some fundamentals like what is idoc,how to create idocs. if any one have any documentation,please forward to me. this is mail id:[email protected] / [email protected] Thanks in advance. regards. surya.