(UIX XML) Sharing Connection objects between BC4J and custom java.

If I have a UIX XML page that contains some BC4J application modules, then in the event handler I call [public static EventResult handleMyEventEvent (BajaContext context, Page page, PageEvent event..) ], which in turn calls some java classes I have written that take a java.sql.Connection object and access the database doing some updates/inserts with this Connection object (via JDBC)....HOW CAN I USE THE SAME TRANSACTION AS WAS USED IN THE BC4J APPLICATION MODULE...i.e. CAN I SHARE THE CONNECTION OBJECT BETWEEN BC4J AND MY OWN JAVA CLASSES THAT USE JDBC?
What are the best ways to share such a transaction?
Thanks,
Paul.

Would it be easier to use a custom method on the bc4j Application module?
Take this scenario...
1. User opens UIX XML web page which opens a bc4j App Module..it has a VO based on all employees.
2. User presses the add button and a new employee is created (using the bc4j App Module).
(Notice: no commit yet!)
3. User presses the submit button...fires event REVIEW_SALARY.
4. This event is 'handled' in the event section of the UML XML...it calls:-
public static EventResult handleREVIEW_SALARYEvent (BajaContext context, Page page, PageEvent event)...
5. I now want to call a java class I wrote that computes an employees new salary and updates the employee record with this new salary. This update will fail unless it is part of the same transaction as the one used by the bc4j App Module (that inserted the new employee).
How best to proceed from here?
How about having a method on the bc4j App Mod's VO called 'reviewSalary'? Calling this would use the same transaction? I could then call my java class from within the VO's method? However do I still have the same problem in that my java class expects to be passed the connection object?
The approach you suggested previously seems a touch dangerous....in that these are not 'publically exposed'...and a new release of JDev may break my code.
Thanks,
Paul.

Similar Messages

  • Urgent: problem with sharing HttpSession  object between Jsp and servlets.

    Hi,
              We are using weblogic 6.0 sp2.
              I m setting a particular object in session in a servlet using
              session.setAttribute() but when i try to retrieve that object using
              session.getAttribute() in a jsp page the value of that object is null. Is
              there any way to configure HttpSession in weblogic so that jsps and servlet
              can share the same session? Or any workaround for this problem.
              Any help in this regard is appreciated.
              Thanks
              -Shree
              

    Just a guess, but it sounds like you have cookies turned off and are not
              using encodeURL. Try enabling cookies and see if that solves the problem.
              Also, it is generally good practice to use encodeURL to protect yourself
              from users who disable session cookies.
              Here's how we use encodeURL in our Servlets:
              gotoPage("/jsp/someJSP.jsp");
              private void gotoPage( String address,
              HttpServletRequest request,
              HttpServletResponse response )
              throws ServletException, IOException
              RequestDispatcher dispatcher =
              etServletContext().getRequestDispatcher( response.encodeURL( address ));
              dispatcher.forward( request, response );
              "Shree Unde" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              > We are using weblogic 6.0 sp2.
              > I m setting a particular object in session in a servlet using
              > session.setAttribute() but when i try to retrieve that object using
              > session.getAttribute() in a jsp page the value of that object is null. Is
              > there any way to configure HttpSession in weblogic so that jsps and
              servlet
              > can share the same session? Or any workaround for this problem.
              > Any help in this regard is appreciated.
              > Thanks
              > -Shree
              >
              >
              

  • My home sharing continually fails between mac and apple tv 2.

    my home sharing continually fails between mac and apple tv 2, even during watching a movie.  I go to the mac to re-turn on home sharing but it is still on.  Any tips?  I also have to turn off and back on at the mac every time i switch on my apple tv.

    Sharing Stopped working again over night.
    I went to Apple Support Artical TS2972
    As soon as I did this Home Sharing started working
    http://support.apple.com/kb/TS2972
    Firewall Section
    5. Check Firewall Settings
    If you have a firewall enabled in your router or computer, make sure that the firewall is not blocking communication between your computers. Home Sharing uses TCP port 3689 and UDP port 5353 to communicate with shared iTunes libraries.
    In addition, Apple TV and Mac computers will use port 123 to set the time automatically. Incorrect date and time on either the computer or Apple TV can cause errors for Home Sharing and connections in general.
    If you are unsure whether your router has a firewall or the required ports open, test additional devices or another network to help isolate the issue. If the devices tested work on another home network, it is your router or network configuration.
    For Mac OS X, you don't have to edit the port addresses, but make sure the firewall in Apple () menu > System Preferences > Security > Firewall are not set to:
    Block all incoming connections
    Allow only essential services
    If you use another security/firewall software on your computer or router, follow this article or contact the manufacturer or check the documentation on how to open TCP ports 123 and 3689 as well as UDP ports 123 and 5353.
    It made sense to me, but its still puzzling me after restarting a router would (in my first attempt) resolve the issue for a day.  This this time I applied the port forwarding TCP and UDP ports and saved the settings in the DLink DIR-655 and both my iPad2 and iPhone 3GS were now again finding the share. My ATV2 is also now accepting the Share.
    Tommorrow will be the true test.

  • Serialize the object between Server and Client?

    Hello friends,
    What is the important to Serialize the object between server and client?
    Thanks
    tamilvanan

    in which context ??
    Anyways,checkout the below link and try to understand how do we convert Serializable Object's State to in Stream and send it over network.
    http://java.sun.com/j2se/1.4.2/docs/guide/serialization/examples/index.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • HT4557 Can home sharing be done between just and ipad and iPhone?

    Can home sharing be done between just and ipad and iPhone?

    No. Home sharing is done from your iTunes library on your computer, not from one iDevice to another iDevice.

  • Shared file system between Int and ext server(DMZ) in R12.1.3 for iRec

    Dear Friends,
    we are using R12.1.3 and we planned to use iRec module.
    so we decided to go with External web tier and it will be placed in DMZ for external users.
    Is it possible to have shared file system between internal and external web server when external server is in DMZ?
    Is it safe to go with shared application Tier file system between internal and external server (or) to have seperate file system in externel web tier?
    Regards,
    DB

    Take a look at Note 380490.1 DMZ Deployment for R12.
    Also For Specific Load balancer 727171.1 Up to 12.x but alot of the information is still usefull based on hardware loadbalancer
    Also Note 1309013.1 has some good information on SSO/OAM Intergration with E-Business Suite

  • Difference between workbench and customizing request?

    Hello
    Can somebody tell me the differance between workbench and customizing requests? Should they be transported in differant ways?
    Thanks

    Hello ,
    Changes to Customizing settings are recorded in Customizing requests.When you release the requests, the current status of the recorded settings is exported, and can then be imported into the consolidation system and, if necessary, into subsequent delivery systems.
    The client settings determine whetherchanges to the Customizing settings are possible the changes are recorded
    When you create Customizing requests, the transport target is automatically assigned the standard transport layer by the R/3 System.
    Work Bench Requests
    Workbench requests record changes made to ABAP Workbench objects.There are local and transportable Workbench requests. (Local Workbench requests have the target system <space>.)The package of the object and the transport route settings in the Transport Management System determine whether changes are recorded in a local or a transportable Workbench request
    Message was edited by:
            Karthik Egamparam Venkataraman

  • Difference in the Balance between FS10N and Customer Balances in Local Curr

    Hi,
    When i am trying to match the Balances between FS10N and Customer Balances in Local Currency for the Period 8, we are getting the difference, The reconcilliaton Account was changed on 30.08.2010.
    Please help Us in tracing the differences between FS10N and Customer Balances in Local Currency.
    What could be the possible reasons for the differences..
    Thanks

    Hi Varshani,
    Please use the program/report SAPF070 to compare or reconcile your AR with GL balances. You can use SAPF071 to correct any inconsistencies. Provided below documentation for these programs.
    SAPF070  - Compare Documents and Account Transaction Figures
    Description
    This program compares debit and credit transaction figures in customer, vendor, and G/L accounts with the debit and credit totals from documents posted in the corresponding posting period (accounting reconciliation). The sales totals are also compared for customer and vendor accounts. There is no separate comparison for special G/L transactions.
    A comparison for G/L accounts can be made in company code currency and in parallel currencies (such as group currency). A comparison for customer and vendor accounts can only be made in company code currency.
    After the program has finished, a message is issued to the user that started the program. This message summarizes the results of the reconciliation.
    Output
    The program compares the totals of an account on a periodic basis. If the debit and credit total differs between account and documents, the account is printed with the debit and credit totals and the difference.
    Differences in G/L accounts are shown per transaction currency. The first line shows the amount in local currency, the second line shows the amounts in transaction currency.
    If a document which falls within the selection range is posted during the program run, the program is terminated since a reliable result can no longer be delivered.
    SAPF071 - Adjust Balances after Comparing Documents/Transaction Figures
    Description
    If a financial accounting comparative analysis (SAPF190) or a comparison of documents and transaction figures (SAPF070) shows that there are differences between documents and transaction figures, you can use this program to make an adjustment. The documents form the basis for this adjustment. The program adjusts the (redundant) transaction figures, which are only totals of amounts from documents.
    Requirements
    All of the following listed requirements must be fulfilled:
    1. A financial accounting comparative analysis (SAPF190) or a comparison of documents and transaction figures (SAPF070) must be made, and differences must be found between documents and transaction figures.
    2. There must not be any inconsistent documents found. These are listed in both SAPF070 and SAPF190 as well as in this program.
    3. There cannot be any problems in the other modules. Caution: You have to check this yourself. Financial Accounting may be correct but the other modules may not be, and this will adversely affect the program run.
    4. You can only make the adjustment in the ledgers which are compared by program SAPF070. This is ledger 00 or a user-defined ledger for all parallel local currencies except the group currency. (The program displays these ledgers). You have to adjust any additional ledgers as well as average balance ledgers yourself.
    5. No documents during the period in which you are adjusting transaction figures can be archived. Caution: You must ensure that these documents are not archived by establishing appropriate organizational rules and procedures.
    Only use this program after consulting with SAP or after checking the prerequisites thoroughly.
    You should adjust all differences together for a single company code. By setting the program parameters you can limit the adjustment to G/L currency types or to balances in subledgers.
    It is advisable to execute a test run first, which will list any differences that are found.
    Further notes - Authorizations
    Repair program authorization group (F_005)
    Company code authorization         (F_BKPF_BUK)
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Sep 28, 2010 1:30 PM

  • Differentiate between Items and Customer Items

    Differentiate between Items and Customer Items
    pls try to give information about this
    thanx

    Hi Joel,
    Funny you mentioned it, because just today I was thinking about that, and I thought that if it will happen, I will rant you on your forum dereliction of duties. So it seems you’re off the hook now :)
    Anyway, judging from the last 3.0/3.0.1 versions it seems like you are doing your other duties very well so I really don’t mind you keeping the lead.
    Best regards,
    Arie.

  • Home sharing not working between itunes and apple tv, I've read all help articles I could find... still nothing

    Hey there!
    Here's every detail of the problem:
    1- My iTunes (10.5.2) doesn't give me any options for apple tv in any menu. Some troubleshooting article I remember said something like «go to Settings - Apple TV - Always Search for Apple TVs» or something like that, yet my itunes settings have NOTHING for Apple TV.
    2- Following all setup instructions and usual troubleshooting solutions, i KNOW that all options and settings available to me are set correctly and everything  should work normally, yet my iTunes shows no recognition of my Apple TV AND my Apple TV «Computers» menu is nothing but a «Home Sharing is turned on, make sure that all Home Sharing devices are using the same Apple ID account» message.
    3- Of course, yes, all my devices ARE setup with the same Apple ID account, with Home Sharing turned on everywhere. Also I'm not using a Firewall, and none of my devices have any trouble connecting to my one and only router, all at once.
    So I figure the main problem is my itunes acting like Apple TV doesn't exist. Any ideas/solutions?
    Thanks in advance.

    Sharing Stopped working again over night.
    I went to Apple Support Artical TS2972
    As soon as I did this Home Sharing started working
    http://support.apple.com/kb/TS2972
    Firewall Section
    5. Check Firewall Settings
    If you have a firewall enabled in your router or computer, make sure that the firewall is not blocking communication between your computers. Home Sharing uses TCP port 3689 and UDP port 5353 to communicate with shared iTunes libraries.
    In addition, Apple TV and Mac computers will use port 123 to set the time automatically. Incorrect date and time on either the computer or Apple TV can cause errors for Home Sharing and connections in general.
    If you are unsure whether your router has a firewall or the required ports open, test additional devices or another network to help isolate the issue. If the devices tested work on another home network, it is your router or network configuration.
    For Mac OS X, you don't have to edit the port addresses, but make sure the firewall in Apple () menu > System Preferences > Security > Firewall are not set to:
    Block all incoming connections
    Allow only essential services
    If you use another security/firewall software on your computer or router, follow this article or contact the manufacturer or check the documentation on how to open TCP ports 123 and 3689 as well as UDP ports 123 and 5353.
    It made sense to me, but its still puzzling me after restarting a router would (in my first attempt) resolve the issue for a day.  This this time I applied the port forwarding TCP and UDP ports and saved the settings in the DLink DIR-655 and both my iPad2 and iPhone 3GS were now again finding the share. My ATV2 is also now accepting the Share.
    Tommorrow will be the true test.

  • Sharing an object between Servlets

    I am using a Connection object to query a database from a few different servlets. Is there a way I can pass it between the Servlets, so that I don't have to keep re-opening the connection for each Servlet?

    I may have mis-understood your question. Do you want to keep the "same" connection open between servlets, e.g. pass around ResultSet objects? If so, and I've not tried this with connection pooling, it should still work, you simply pass the connectin reference object to the other servlet and don't close it. Though most will probably call this bad development practice (e.g. leaving connections open while jumping around Servlets). If so, I like to here the "best practice" approach.
    bRi

  • Home sharing not working between mac and pc, but it is fine between mac and mac. Help!!!

    Good Evening Dear Gurus,
    Hi, I am writing this to ask for help regarding home sharing. Yes I do know they are several threads out there that already explains or rather given solution on how to tackle this problem. BUT the my problem is rather different. I am no computer expert myself, so here is the problem, apparently MY MAC can home share with another MAC, but both of this MAC cannot home share with the PC.
    Does anyone encounter this kind of problem before? Can anyone help a poor guy out? Thanks in advance. love to hear from the community soon!
    Thanks!

    Sharing Stopped working again over night.
    I went to Apple Support Artical TS2972
    As soon as I did this Home Sharing started working
    http://support.apple.com/kb/TS2972
    Firewall Section
    5. Check Firewall Settings
    If you have a firewall enabled in your router or computer, make sure that the firewall is not blocking communication between your computers. Home Sharing uses TCP port 3689 and UDP port 5353 to communicate with shared iTunes libraries.
    In addition, Apple TV and Mac computers will use port 123 to set the time automatically. Incorrect date and time on either the computer or Apple TV can cause errors for Home Sharing and connections in general.
    If you are unsure whether your router has a firewall or the required ports open, test additional devices or another network to help isolate the issue. If the devices tested work on another home network, it is your router or network configuration.
    For Mac OS X, you don't have to edit the port addresses, but make sure the firewall in Apple () menu > System Preferences > Security > Firewall are not set to:
    Block all incoming connections
    Allow only essential services
    If you use another security/firewall software on your computer or router, follow this article or contact the manufacturer or check the documentation on how to open TCP ports 123 and 3689 as well as UDP ports 123 and 5353.
    It made sense to me, but its still puzzling me after restarting a router would (in my first attempt) resolve the issue for a day.  This this time I applied the port forwarding TCP and UDP ports and saved the settings in the DLink DIR-655 and both my iPad2 and iPhone 3GS were now again finding the share. My ATV2 is also now accepting the Share.
    Tommorrow will be the true test.

  • Testing SSL Connections, differences between ABAP and JAVA stacks

    Hello,
       I am trying to test an outbound SSL connection to a partner.   I already have multiple outbound connections to many partners, but this new one is causing an issue.   Our firewalls between the two sites are opened as required, I verified that I can telnet to the 443 port of their sever.   I then attempted to connect to their URL, via a Java SOAP message, and it is rejected.  Some kind of error regarding our handshake.
       In an attempt to troubleshoot the issue I entered their URL in SM59 as a HTTPS connection, tested it, it worked fine.   Which indicates to me that the ABAP side works fine.
       I do the same on the Java stack, via the SOA Manager: Destinations, and it fails.
    "Error during ping operation: Error while silently connecting org.w3c.www.protocol.http.Http.Eception: Peer sent alert: Alert Fatal: unexpected message"
      I was thinking that maybe the remote partner only allows specific types of SSL version connection, and the Java side is too low.  i.e. the partner only allows TLS v1, and we are attempting to use SSL v2.    Is there a place to set this on the Java side?  I know I can set inbound parameters on ICM via SMICM.
      Any help or assistance would be most appreciated.
    Thanks,
    Michael Montone

    Hi,
    I suggest that you verify if you use the same release of the SAP Cryptolib  for the ABAP and the Java stack.
    This could explain a difference of support for SSL or TLS.
    Regards,
    Olivier

  • Sharing Photo's between Aperture and iPhoto and syncing to iPads, etc

    Here is my problem.
    I have 5 Macs (1 iMac, 4 laptops.) There are 4 people in my family and we have the family pack of iLife. The iMac is where everything sits with a time capsule and Drobo hanging off of it - about 6 TB's of data. Each Mac sync's with a variety of iPods, iTouchs and iPads. All linked to a user. So for example, all my oldest son's devices sync with only his laptop.
    Well, I finally fixed my media (songs, movies, TV shows, etc) problem by leveraging home share in iTunes and authorizing all my Macs. But not so lucky yet for Photo's.
    Here is the my photo dilemma.
    I like Aperture for the editing and ability to handle large libraries better. So I have Aperture installed on the iMac where everything sits. iPhoto is also installed on the iMac and iPhoto is on all 4 other laptops. Prior to moving to Aperture, sharing photo's between computers was relatively easy using sharing in iPhoto - although it appears sharing in iPhoto is different than home share in iTunes. I converted my iPhoto library on the iMac to Aperture - now sharing is a pain in the neck.
    Ideally, a Home Share like feature would be built into Aperture and iPhoto with another feature that would allow you to "check for new photos" on the laptops and pull them into Aperture - but wishful thinking right now.
    So my while my 2 new iPads are awesome - they are basically useless for Photo's as they are synced to 2 laptops that use iPhoto, but all my Photos are in Aperture on the iMac.
    Thoughts anyone????
    Thanks

    What was the question?
    Regards
    TD

  • Sharing a VLAN between FWSM and ACE (Routed Mode)

    Anybody in here with experience on sharing a Vlan between an ACE and a FWSM module?
    I have a transfer network between the ACE and the FWSM in the same chassis. FWSM gets several vlans and ACE gets some Vlans.
    I wanted to configure it like this.
    firewall vlan group 10 <FWSM only vlans>
    firewall vlan group 20 <shared FWSM and ACE vlan>
    or
    svclc vlan group 20 <shared FWSM and ACE vlan>
    svclc vlan group 30 <ACE only vlans>
    The design hides the client side network and the server side network for the ACE behind the FWSM module.
    Layout:
    |-- Clients <--> MSFC <--> FWSM <--> ACE <--> Server --|
    So allocation on the 65xx would be like this.
    firewall module n vlan-group 10,20
    svclc module n vlan-group 20,30
    Any obvious issues with this design if you share the vlan(s) referred in group 20 with both modules?
    FWSM and ACE will be in routed mode.
    Thanks for reading...
    Roble

    Never mind...
    Just found the perfect answer for this in a another posting from Syed.
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Data%20Center&topic=SNA%20Data%20Center%20Networking&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1dddee0b/0#selected_message
    Roble

Maybe you are looking for