Multiple (200 +) processes with Jrun And Linux

Hello,
We have a server in our enviroment running the following:
2.4.9-e.27smp linux kernel
mysqld Ver 4.0.15-standard for pc-linux on i686
java version "1.4.1_05"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.1_05-b01)
Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode)
47205 Oct 3 2003 jrun 4.0 updater 1a
Starting the site with this command:
su -c 'cd /usr/local/jrun/logs/df_nohup; nohup
/usr/local/jrun/bin/jrun -config /usr/local/jrun/bin/df_jvm.config
-start sitename &' userid
We have 4 sites running on the machine each with the same
command with the site names changed etc.
Basicly when we start the sites each one generates 70+
process each, usually when the server first comes up there will be
240 + jrun process on it.
We have a very similar configuration on our dev server, and
it only starts 4 processes?
Any ideas why this production server is generating so many
processees?

Thanks a lot for taking your precious time to review my code, Bogdan.
I run an attempt using the additional flags you were suggesting but they didn't improve results.
Your pointers to the DB Reference and C API sound a little bit like RTFM. In fact, I didn't read all the stuff there but a good portion of it before I was asking for help ;-) The FAQ entry I mentioned leads exactly to the "Architecting Transactional Data Store" topic.
The code was modeled after the "The third way to architect Transactional Data Store applications is as a group of unrelated processes" using the DB_REGISTER flag.
It seems to take a senior expert to get my simple requirement done :-(
All I know now is I'm not alone:
Problem with multiple processes and DB_REGISTER
Re: Problem with multiple processes and DB_REGISTER
Does anybody has the code for developing multi-process program .thank you.
Re: does anybody has the code for developping multi-process program .thank you.
Any more ideas what to try next?

Similar Messages

  • Installing Multiple Operating Systems with grub and Arch Linux

    NOTE: Please keep in mind that there are many different ways to achieve this same result using various loop and ramdisk methods, read this with a separate window to jot down your comments and suggestions... this is ongoing for me so any help would be appreciated!
    Read the full article at Install Multiple Os without cds
    This is my first post and I plan on making this topic an official HOWTO with www.tldp.org.
    I have been into the computer security scene since 1990, but I realized that I had very little experience with the various LInux, Unix, and alternative Operating systems out there.
    I have a CD-RW drive but being a struggling computer security researcher I had no money for blank cd-recordables.  What follows is how I managed to install various operating systems on my computer (1 hard drive) without having to burn to a CD the ISO and then boot from that.
    I first partitioned my 120GB harddrive into 10 partitions, the 2nd partition is a small swap and the last partition is extra large because it holds all the ISO images..
    I then wrote a small shell script to automatically download (I love wget!)  the following.
    OpenBSD
    IpCOP
    Libranet
    Arch-Linux
    Fire
    Local Area Security
    Packet Master
    Devil-Linux
    FreeBSD
    Knoppix
    Helix
    Gentoo
    Yoper-Linux
    NetBSD
    RedHat
    Slackware
    The script also downloaded Installation manuals and md5 checksums.. (let me know if I should post... its pretty unsophisticated
    I installed Slackware (personal favorite) on hda1 using my last blank CD-R, note that I do not have a separate boot partitino.  (Should I?).  I also installed grub on the MBR.  I love grub, if you read through the man pages and all info you can find about grub, you can learn a whole lot.  Grub has much more features and capability than lilo, even though lilo comes installed by default with slack.
    I organize my kernel situation as follows...  In my /boot directory, I mkdir KERNEL, CONFIG, MAP, INITRD and that is a good way for me to keep my kernels and everything organized..  Another good way is a separate dir for each new kernel. 
    Since Arch-Linux is a solid distro, I'll use that as a first example.
    Here is the Arch-Linux section of my shell script
    goge Arch-Linux
    $w http://puzzle.dl.sourceforge.net/sourceforge/archlinux/arch-0.6.iso
    $w http://unc.dl.sourceforge.net/sourceforge/archlinux/arch-0.6.md5sum
    $w http://www.archlinux.org/docs/en/guide/install/arch-install-guide.html
    md55
    cat arch-0.6.md5sum
    md5sum arch-0.6.iso
    md55
    The first thing to do is to mount the downloaded ISO image so we can use it as if it were an actual CD.
    mount -t iso9660 -o ro,loop=/dev/loop0 cdimage /mnt/cdrom
    Where cdimage= the ISO image.   EX. /usr/local/src/ISO/Linux/Arch-Linux/arch-0.6.iso
    This mounts the iso as /mnt/cdrom.
    Next you need to copy /mnt/cdrom to a separate partition for the booting process.  So mkfs.ext2 /dev/hda9.  ( I prefer reiserfs or even XFS to ext but if you use something other than ext2 you could run into some problems because some of the installation kernels and initrds don't include support for reiserfs and so can't recognize the files.  Although you could use mkinitrd to create a new initrd with reiserfs support, that might be pushin it IMO...   I use the 9th partition consistently for this.  I know there is a "right" way to copy the /mnt/cdrom files so everything stays the way it is supposed too, using tar or cpio, but I'm lazy so I just do cp -rp.   
    (What is the tar or cpio commands to copy with correct permissions etc??)
    So you mount the 9th partition as whatever, say /mnt/hd and then copy the files.  Now what?
    Now edit your /boot/grub/menu.lst file to include the specific options to boot arch-linux installation. 
    A good idea is to find the isolinux.cfg file somewhere on the distro cd, this will tell you what to include in the menu.lst.
    Here is the section in my menu.lst
    title Arch Install
    root (hd0,8)
    kernel /isolinux/vmlinuz load_ramdisk=1 prompt_ramdisk=0 root=/dev/rd/0
    initrd=/isolinux/initrd.img
    This should be self-explanatory.  The root (hd0,8) is pointing to partition 9.  So the rest of the commands start from partition 9. 
    When you experience problems, remember you can always edit the grub boot options by typing 'e' and then edit the section.  Also, a good idea is to include several variations in your menu.lst so you can easily try other ways to boot efficiently.  And, remember to read up on all the installation guides that come with your distro, specifically, hard-disk installs. 
    There are special cases, Gentoo, has a semi-new compressed filesystem called squashfs.  BTW, this is AWESOME, so check it out.  It has to be compiled into the kernel, so some work is in order, but use this recompile to optimize your kernel.  You can get the squashfs patch for almost any kernel.  I use the latest stable 2.6 kernel.  Squashfs is incredible and although I don't think you need it to install from ISO, you do need it to expand the livecd.squashfs filesystem that comes with the cd.
    Heres a sample Gentoo section from my menu.lst
    title Gentoo Install
    root (hd0,8)
    kernel /isolinux/gentoo root=/dev/ram0
    initrd=/isolinux/gentoo.igz init=/linuxrc acpi=off looptype=squashfs loop=/livecd.squashfs cdroot vga=791 splash=silent
    A nother' tip is the shell that is provided if you experience problems, typically busybox or ash.  The key tools to get you going from here is mount and chroot.  Sometimes you will need to manually create a simulated file system and then chroot into it.  For instance, you might have to create boot, etc, bin, directories on the target partition. 
    I generally install each OS onto the next partition (careful of the logical partition) and add it to my menu.lst after install.  A good idea is after installation, copy the kernel and initrd(if there is one) to the slackware(or whatever) boot partition on hda1.  I copy kernels to /boot/KERNEL/ and initrd's to /boot/INITRD, then menu.lst is more organized...
    You then need to add an updated section to your menu.lst (just comment out the install section for later)
    Here is the finished arch-linux section from menu.lst
    title Arch Linux 6
    root (hd0,2)
    kernel /boot/vmlinuz26 ro root=/dev/hdc3
    This doesn't use my convenient boot/KERNEL/vmlinuz26 as you can tell by setting the root to partition 3.
    ***NOTE: Make a backup of MBR using dd and save to floppy, also backup the partition table to floppy, using cfdisk or parted.  And boot disks (I use 1 with grub, and 1 with slack, and tomsbootdisk) will invariably come in handy.  Tomsbootdisk is recommended, and make the grub boot disk when you install grub.  install to floppy.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    The final result after some fun experimenting, is when I boot, I have a cool grub boot screen come up with the option to boot into whatever OS I want, this is handy for multiple reasons.  One good thing to do after this is to port scan and vuln scan each OS, after you update of course.  Write this stuff down and you will know the weaknesses/strengths of the various OS's. 
    I can boot a custom Firewall, snort, or multiple honeypots using this procedure, as well as a graphical kde environment with a kernel optimized for graphics and my processor/architecture, or an environment devoted to forensics or even an environment suitable for programming.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    P.S. Some of the cooler alternative operating systems are BeOS 5, EOS, ER_OS, V2_OS, and my personal favorite Menuet.  Menuet is 100% assembly graphical operating system that fits on a floppy.  Its f'in money!
    This should be a good enough example to get you started, this kind of thing should be learned and not just copied... Knowing how to do this stuff could prove to be exceptionally useful...

    Start by reading all the articles built-in on your Mac - Help > Mac Help, search "printer sharing."
    http://desk.stinkpot.org:8080/tricks/index.php/2008/04/how-to-print-to-a-cups-se rver-from-mac-os-x/
    http://www.macosxhints.com/article.php?story=20080324224027152&query=share%2Bpri nter
    http://members.cox.net/18james/osxprintersharing.html
    http://ubuntuforums.org/archive/index.php/t-56940.html

  • Inbound process with WM and HU

    Hi Friends ,
    I am exploring different possibility Standard SAP supports for goods receipt process through Inbound deliveries.TO make things simple right now I am only finding possibilities for EXTERNAL Material receipt only.
    The steps I know invloved in Inbound delivery process are (with WM and HU)
    1) PR - Source assignment - PO - Release PO
    2) Advance shipment notification (ASN)
    3) Inbound delivery creation
    4) Packing of material on Goods receipt
    5.1) Put-away - Automatic TR creation
    5.2 ) Put-away - Automatic TO creation
    5.2 ) Put-away material - TO Confirmation
    6) PGR
    Now I am looking for different configurations by which can automate processes mentioned above from point 2 to 6.Like
    2 and 3 ) ASN / Inbound delivery : I know that ASN can be received from vendor (in the form of idoc) and can create Inbound delivery automatically.But what if Vendor doesn't provide ASN message , how can we create deliveries for expected material ? Do we need to use VL06I ??
    4) Once the Inbound delivery is created , I know we can automate packing process ... not sure about the configuration.I only know that this invloved condition technique where we create Conditions / schema / condition records ... BUT where do we assign that SCHEMA ( like pricing schema is attached to PORG group / Vendor grp )
    5.1 ) Do we always need to have a TR to get TO created against Goods receipt OR can we can ask system to create TO directly without any TR ?
    5.2 ) TO Creation - Automatic TO creation as soon as the packing is completed.
    Where is this setting ?  I understand there are two process 1) real time TO creation 2) Background TO Creation. For immediate TO creation I can see a configuration in IM-WM movement type assignment configuration , is that all ??
    5.3 ) TO Confirmation -.Like TO Creation , do SAP also provide functionality to CONFIRM TO immediately or through Background Jobs ?? What are the required settings ?
    6) How can we automate the PGR process ?
    Sorry for this long query , but I hope there are many other friends who are interested in knowing all such possibilities.
    Thanks in advance for all your help.
    Regards
    Shrey

    2 and 3 ) ASN / Inbound delivery : I know that ASN can be received from vendor (in the form of idoc) and can create Inbound delivery automatically.But what if Vendor doesn't provide ASN message , how can we create deliveries for expected material ? Do we need to use VL06I ??
        Option 1: You can use transaction VL34 to create inbound deliveries by PO, Plant and the delivery date.
        Option 2: You can use transaction VL31N and click the Purchase Orders to create inbound deliveries.
    4) Once the Inbound delivery is created , I know we can automate packing process ... not sure about the configuration.I only know that this invloved condition technique where we create Conditions / schema / condition records ... BUT where do we assign that SCHEMA ( like pricing schema is attached to PORG group / Vendor grp )
        First we have to create the packing instruction in POP1.
    --> Give a packing instruction name.
    --> Then in the line 1 - Enter P and the packaging material
    --> Then in the line 2 - Enter M and enter the material to pack and give the quantity to pack in the packaging material. Eg: In each pallet how much quantity to be packed.
      Second go to the transaction POF1.
    --> Enter RCPT and based on the combination Material/Plant/Vendor, select it and enter the Material and the Packaging Instruction you created before.
    --> Then you can do the autopack in VL32N.
    5.1 ) Do we always need to have a TR to get TO created against Goods receipt OR can we can ask system to create TO directly without any TR ?
    --> We can create the TO directly from the VL32N.
    *5.2 ) TO Creation - Automatic TO creation as soon as the packing is completed.
    Where is this setting ? I understand there are two process 1) real time TO creation 2) Background TO Creation. For immediate TO creation I can see a configuration in IM-WM movement type assignment configuration , is that all ??*
       SPRO - Logistics Execution - Warehouse Management - Activities - Transfers - Set Up Autom. TO Creation for TRs / Posting Change Notices
    5.3 ) TO Confirmation -.Like TO Creation , do SAP also provide functionality to CONFIRM TO immediately or through Background Jobs ?? What are the required settings ?
       SPRO - Logistics Execution - Warehouse Management - Activities - Transfers - Define Movement Types
       Then select the Warehouse and the movement type 101 and select the option "TO item can be confirmed immediately"
       This will confirm the TO as and when the TO is created.

  • How to send the idoc to 12 status, without processing with RSEOUT00 and RBD

    Hi All,
    How can I change the status of IDoc to 12 without processing with the programs RSEOUT00 and RBDMOIND programs, only with using the partner profiles.  Help needed ASAP.
    Thanks,
    sreenivas.

    Then you need to use fm
      call function 'MASTER_IDOC_DISTRIBUTE'
        exporting
          master_idoc_control            = wa_edidc
        tables
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        exceptions
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          others                         = 5.
    then you want to change status
    try to submit the above said program

  • Controlling a chemical process with LabVIEW and the SC 2075 board

    Hi,
    I am a degree student and one of my projects is to control a chemical process using LabVIEW and the SC2075 board. The process variables i must control are temperature, pH and also several motor. Is this viable using the SC 2075 board and if so does anyone know where i can attain information on using the board. Also if anyone has suitable sample vi's that may be of use to me it would be very much appreciated. My email is [email protected]
    Kind Regards,
    Derek

    Hi Derek,
    Bellow is a link the the user guide for the 2075.
    http://www.ni.com/pdf/manuals/371217a.pdf
    You should be able to aquire data from you sensors but you might need some signal conditioning depening on the voltage levels they return.
    For sample vi's try going to Help>>Find Examples... within LabVIEW or goto the following link to search our developer exachange.
    http://www.ni.com/devzone/dev_exchange/ex_search.htm
    For more information about Signal conditioning and Data Aquisition try:
    http://zone.ni.com/devzone/devzone.nsf/webcategories/4d58b1b80ec41ef70625683f006e1d6d
    I hope this helps
    Regards
    Jon Bowers
    Applications Engineer
    NIUK

  • Word processing with superscripts and subscripts.

    Is there a word processing app for the iPad yet which does superscripts and subscipts?
    (Discussions on this subject were posted on this website about a year ago, has the no superscipt button and no subscript button problem been fixed yet?)

    I've found a possible solution to insert equations and formulas without Latex or copy/paste images, only with Pages for iPad and without internet, using Pages tools. So, I have some examples of Pages documents. If you want to take a look them, give me your email and I'll send you an example.

  • Consignment Fill up Process(with Bebit and credit entries)

    Hi all,
    I want to do following entries in consignmen Fillup  process.
    1)consignmen Fillup:- 
        Goods  on sale consignee   Cr.
         Consignment Agent             Dr.
      since proforma invoice is gets created in Fill up process, shall i configure cmercial invoice instead of Proforma?
    Reg,
    amol

    shall i configure cmercial invoice instead of Proforma?
    Before answering this question, I would like you to answer to the following
    a)  What do you mean by consignment fill-up
    b)  Under what circumstances, you can raise a commercial invoice
    If you know answer to the above questions, posting this thread would not have arised.
    Anyway, my explanation goes here
    Consignment fill up is nothing but you move your own stock from one place to another place.  Once you moved the stock, that stock will be earmarked for the end customer and it cannot be diverted to another customer.  Now tell me, for moving the stock from one place to another, will you generate commercial invoice ??
    You can very well put these questions with your client so that you will find a solution.
    G. Lakshmipathi

  • Intracompany sales/stock transfer management processes with WBS and New G/L

    Hi all,
    we have a scenario in which we need to transfer project stock between two projects. Both belong to the same Company Code. The transfer must be conduct as if it was a sale.
    Basically the scenario is the following:
    1) Material A is in stock of Plant P1 under Project WBS1 (linked to Functional Area FA1).
    2) Plant 2 needs to "purchase" that stock and put it under WBS2 (linked to Functional Area FA2).
    We have new G/L with the Functional Area set as a balancing dimension so any transfer between the two Plants should generate a billing document to balance the two Functional Areas. The stock should be moved between the two Plants/Projects.
    How would you manage this scenario in SAP?
    I've read all the documentation related to Intercompany Business Processes in SD Billing and everything related to Transfer Prices with New GL however I've found no information on this particular scenario.
    In particular, the STO cannot be used since it allows only to move the stock between two Plants without having the WBS dimension on the receiving plant (i.e. I can move stock from Plant P1/WBS1 to Plant P2/WBS1 - which is not what I need since I need it on WBS2). Besides, but I'm not sure, the automated billing seems to be possible only in case the transfer is between Plants belonging to different company codes (I still need a FI document for balancing the Functional Areas).
    The transfer price scenario, which is the one recommended by SAP for Intracompany sales, is not applicable as well since we don't have Profit Centers and, as far as I've understood, it doesn't seem to allow stock transfer between different WBS as well.
    The only scenario I thought so far is to use a Purchase Order/Sales Order scenario:
    The PO would allow WBS2 to receive in Plant P2/WBS2 the stock purchased against internal vendor Plant P1.
    The SO would allow WBS1 to sell the stock (i.e. issue it from Plant P1/WBS1 to internal customer Plant P2).
    The billing would be done against the SO and the incoming invoice would be posted against the PO (hence recognizing internal revenues and internal expenses).
    This process, however, requires a lot of reconciliation activities and is error prone as there is no cross-check between SO and PO data.
    Do you have any hints or suggestions to manage this differently?
    Thank you in advance for your help.
    Ciao!
    Max

    Hi seesen_rs,
    thank you for your answer.
    We also thought of that but the issue is that the 301Q moves stock immediately while we need to monitor the order and the shipment of the material (the 301Q is posted when the goods arrive at P2/WBS2). Besides, we also need to consume budget upon order so the PO/STO would help us for the first part of the process (i.e. when the goods are requested from P2/WBS2), then we should do the 301Q and then the billing. In order to keep the whole document chain linked we should also make us of custom fields. An alternative would be to use direct Goods Issue and Goods Receipt however they would have no references for budget and material requirement tracking purposes, hence not very helpful.
    Also SAP said there is no easy way for managing this
    Ciao!
    Max

  • Best recommended process with sandbox- and (3 environments)

    Can someone  please recommend the process of 3 tier landscape (dev, qa, prod) with the sandbox and what the best practice should be based on your environment/ or experience to manage or control Backups and Disaster Recovery?
    -- That's is basically a 4  tier with a sandbox server, where all the patches etc can be tested without breaking the bank or existing test/qa/prod systems.
    I am trying to figure out, when and how we should take backups of each environments (how often), and what would be our disaster recovery approach  based on this model.
    Thanks.

    Hi,
    this is the same like you entry here:
    BOE 5 TIER landscape
    please avoid duplicate entries.
    ingo

  • What does OS10.5 use to screen share with Windows and Linux ?

    i have found screen sharing Mac to Mac is EASY
    but lets say i want to see the screen on my Windows XP computer
    OR my Linux Ubuntu or CentOS desktop Computers
    what do you reccomend and is there anything else i need to know
    thanks in advance

    First, I trust you have the firewalls open for the needed port(s), e.g. 5900, 5901, etc.
    Then, from what I've played with, the Leopard Screen Sharing app only connects to VNC servers that are configured for VNC Authentication (or no authentication) and that are using only Protocol 3.3.
    Depending upon the version and implementation of the VNC Server, you might have to pass startup commands like this:
    vncserver --SecurityTypes=VncAuth --Protocol3.3
    (and of course, have a VncAuth password set, e.g. with vncpasswd.)
    I'm not sure how, or if, these settings can be configured in Vino (the 'Remote Desktop' option in Gnome,) but if starting vncserver from an entry in /etc/sysconfig/vncservers, it might be like this:
    VNCSERVERS="1:username"
    VNCSERVERARGS[1]="-geometry 1420x790 -depth 24 --SecurityTypes=VncAuth --Protocol3.3"
    (and again, you'd need a vncpasswd set for the username starting the VNC server.)
    Now, only Vino does the automatic Bonjour RFB advertisement, which makes the VNC server show up in Finder (without which, you'll need to manually start Screen Sharing.)
    However, you can create the Bonjour advertisement in Linux by creating a file called /etc/avahi/service/rfb.service
    and filling it with the following text:
    <?xml version="1.0" standalone='no'?>
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
    <service-group>
    <name replace-wildcards="yes">%h VNC Server</name>
    <service>
    <type>rfb.tcp</type>
    <port>5901</port>
    </service>
    </service-group>
    and then, doing a:
    sudo /etc/init.d/avahi-daemon restart
    In the Windows VNC Server (at least the one by RealVNC), there is an advanced button (or a Legacy tab) where you can find the option to set "Protocol 3.3" to true. And, on the security tab, make sure you have it set to "VNC Password Authentication" (configured with a password set) and NOT to "NT Logon Authentication". Unfortunately, I don't know how to set a Windows machine to make the necessary RFB service Bonjour advertisement to get it to show up in Finder. However, if you got a Bonjour/Rendezvous Proxy (e.g. http://ileech.sourceforge.net/index.php?content=RendezvousProxy-Download , for the Mac, I like the Java version, the native one is PPC.) and ran it on your Mac (or the Windows machine), you could simulate the adverstisment -- just create an proxy entry for a rfb.tcp service, pointing to port 5900 on the IP address of your Windows box.
    Finally, even once you connect to a 3rd party VNC server with the Screen Sharing app, every so often you'll get a 'no encryption' warning -- of course, because Apple doesn't talk RealVNC's encryption and vice-versa so it connects without encryption.
    Message was edited by: J. Everett

  • 10.5.2 problems with SMB and Linux server

    I'm encountering a problem with trying to copy files to a Linux server via SMB. When I copy a file to a Linux server (via SMB), it shows the file copying, but then the file disappears from the server when it is done copying. There is also something odd on the server side where it tries to rename everything to be in lower case.
    I did not have this problem with Tiger, but I've noticed this issue on Leopard. I have tried several different machines, and all of the Leopard machines exhibit this problem.
    I then tried copying the same exact file to a Windows server via SMB -- no problem.

    I tried an experiment. I duplicated a file (MyFile.zip) and renamed it to all lower-case: myfile.zip. I tried copying MyFile.zip to the server. It copied and then disappeared. I then tried copying the lower-case file myfile.zip, and it copied fine. It appears that this is an issue with how the server is trying to handle filenames and transform everything to lowercase.

  • Force Background processing with SUBMIT and keeping results in memory

    Hi Everyone
    I have a very tricky issue that i need some help with.
    I have a developed an RFC that allows a NON-SAP front-end to execute reports in the SAP backend the result of the report is saved in memory and formatted to XML and passed to the front-end where the report is displayed.
    Therefore for this to work i have added the following code
    g_guid = cl_salv_export_db_storage=>create_guid( ).
      " Set ALV memory parameters
    export l_mode = 'M' to memory id 'ALV_EXTRACT_MODE'.
      export l_guid = g_guid to memory id 'ALV_EXTRACT_GUID'.
      "Execute the selected report
      SUBMIT (wlv_report_name)
                         USING SELECTION-SET wlv_variant_name
                         WITH PNPTIMED EQ ' '
                         WITH PNPBEGDA EQ im_begda
                         WITH PNPENDDA EQ im_endda
                         WITH PNPPERNR IN wlr_employee
                         AND RETURN.
    data: l_xstring type xstring.
                l_xstring = cl_salv_export_db_storage=>import_xmlstring(
                    guid  = g_guid ).
    This allows me to get the report results to be passed to the front-end.
    This works quite good for most reports but in some cases the reports has a popup message. In this case the execution fails as the report is not executed as a background job (if the report is executed in the background then the popups are ignored).
    The issue is that the reports cannot be executed in the background as the memory will then not contain the report results and secondly the client does not want to use the spool for the report results at all. The second constraint is that the client does not want to alter the reports in any form to remove the popups due to the large volumes of reports.
    What i have noted is that if the report is executed and i set the SY-BATCH parameter to "X" then it works perfectly (via the debugger). I can change the SY-BATCH value in my code but obviously once the SUBMIT is executed the SY parameters are reset.
    My question is: Is there a way to force the SY parameter values when i perform a SUBMIT? Or is there any other possible solution to this issue?

    If you want to go with the option of spool, then you can use the following addition
    SUBMIT <reportname> to SAP-SPOOL
      SPOOL PARAMETERS <print_parameters>
      WITHOUT SPOOL DYNPRO and RETURN.
    and then read the spool,
    if you want to go with the option of a background job, then you can use the following addition
    SUBMIT <reportname> VIA JOB <name> NUMBER <num> AND RETURN.
    <name> and <num> are generated using FM JOB_OPEN, and then you have to close it using JOB_CLOSE.
    Thanks.

  • Multiple Database configurations with Hibernate and caching

    Hi,
    I am building an webservice app which has 2 different DBs( Oracle and DB2). Please let me know whats the best way of designing the hibernate layer to access both the DBs ; I have some cross reference tables in both of them.
    I am planning to create a logical model of the physical DB model ( combining both Oracle and DB2) and use property files or some configuration to map my logical to the actual physical table. What would be the best design for this? Do you recommend caching these conversion values?
    Please let me know the best practice / way to work on my above situation.
    fyi - I am neither a novice nor an expert in J2EE.

    I have the same experience. I can connect to the database of the inital setup but then I try to create a second DB connection with
    Create the connection
    java -jar apex.war setup --database edwdev1
    Sep 28, 2012 5:08:04 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
    INFO: Using configuration folder: /space/sw/oracle/products/apex/2.0.0/config/apex
    Enter the name of the database server [localhost]:ddb001-v.maximusbchealth.local
    Enter the database listen port [1521]:1521
    Enter 1 to specify the database service name, or 2 to specify the database SID [1]:1
    Enter the database service name:apex_edwdev1.maximusbc.ca
    Enter the database user name [APEX_PUBLIC_USER]:APEX_PUBLIC_USER
    Enter the database password for APEX_PUBLIC_USER:
    Confirm password:
    Enter 1 to enter passwords for the RESTful Services database users (APEX_LISTENER,APEX_REST_PUBLIC_USER), 2 to use the same password as used for APEX_PUBLIC_USER or, 3 to skip this step [1]:3
    Sep 28, 2012 5:10:12 PM oracle.dbtools.common.config.file.ConfigurationFiles update
    INFO: Updated configurations: apex_al, apex_rt, apex, edwdev1, edwdev1_al, edwdev1_rt
    Then I create a routing based on theRequest Path Prefix:
    java -jar apex.war map-url --type base-path /edwdev1 edwdev1
    Sep 28, 2012 5:12:32 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
    INFO: Using configuration folder: /space/sw/oracle/products/apex/2.0.0/config/apex
    oracle@vs-dapp041:/sw/oracle/products/apex/2.0.0$
    Everything seems fine but when I try to access the second db I get:
    http://vs-dapp041.maximusbchealth.local:7501/apex/edwdev1 => 404 not found
    I am going to be at Open World next week and see if I can talk so someone at the apex stand there.

  • Multiple MX records with PIX and ASA5510

    I need some help with a setup for email.
    Setup
    I have a PIX525 and an ASA5510VPN and an internal 2950 router. The PIX does firewalling and the ASA does VPN. Currently all outbound Internet traffic goes through the PIX via the router with this command:
    ip route 0.0.0.0 0.0.0.0 10.1.1.2 1
    The ASA5510 with its dedicated external IP is used to allow VPN traffic in.
    The problem:
    I have two separate domain names and two MX records. One (mail.PIX.com)is pointed at the external IP of the PIX the other (mail.ASAVPN.com) is pointed at the ASA5510. I can receive inbound mail through both of the devices. I'd like to mail go out using both domains one through PIX and the other thru ASA. The problem is the router says all unknown traffic go to PIX.
    How do I route mail from a host (10.1.1.5) to the ASA5510(10.1.1.4), while sending the mail from host (10.1.1.3) to PIX(10.1.1.2)

    I am not folliwing something here. If your gateway for 10.1.1.5 is truly set to the ASA and the ASA has the nat rule on the outside for the 10.1.1.5 address there should be no issue. It sounds like you are sending your traffic back out the pix interface. If your gateway is the 10.1.1.254 address the router will send the traffic to the PIX or redirect you to do so with an ICMP redirect.
    Just the simple fact that it's coming out with the wrong external address leads me to beleive that that is the issue.
    Any configs/route tables on the servers and firewalls would help.

  • "Invalid Column" on multiple where clauses with subqueries and cfqueryparam

    I'm seeing a behavior in the coldfusion cfquery that I'd like to find an exmplanation for .  I've got a query that does a subquery in the select portion and if I have multiple where lines, I get an "invalid column name" message for my second where clause, but only when I'm using cfqueryparam
    For example on the following I get "Invalid column name 'position_id'"
    SELECT   department_staff_tbl.*,
             (   SELECT   max(bookmark_id)
                 FROM     bookmarked_items_tbl
                 WHERE    item_id = department_staff_tbl.staff_id
             ) AS bookmark_id
    FROM     department_staff_tbl
    WHERE    department_id = <cfqueryparam value="#arguments.deptid#"  cfsqltype="cf_sql_integer">
    AND     position_id   = <cfqueryparam value="#arguments.posid#"   cfsqltype="cf_sql_integer">
    AND     staff_id      = <cfqueryparam value="#arguments.staffid#" cfsqltype="cf_sql_integer">
    If I change the order of my where clause so staff_id is first, then it tells me "department_id" is an invalid column.
    If I only have one where clause, it works.  (i.e. WHERE position_id = <cfqueryparam value="#arguments.posid#" cfsqltype="cf_sql_integer">).
    If I remove the where clause from my subquery (WHERE     item_id = department_staff_tbl.staff_id) it works.
    It also works if I remove the cfqueryparam from my where clause so that my query looks like this:
    SELECT   department_staff_tbl.*,
             (   SELECT   max(bookmark_id)
                 FROM     bookmarked_items_tbl
                 WHERE    item_id = department_staff_tbl.staff_id
             ) AS bookmark_id
    FROM     department_staff_tbl
    WHERE    department_id = #arguments.deptid#
    AND     position_id   = #arguments.posid#
    AND     staff_id      = #arguments.staffid#
    Any thoughts?

    I see two tables. So can the server. So, use qualified column-names.
    SELECT   department_staff_tbl.*,
             (   SELECT   max(bookmarked_items_tbl.bookmark_id)
                 FROM     bookmarked_items_tbl
                 WHERE    bookmarked_items_tbl.item_id = department_staff_tbl.staff_id
             ) AS bookmark_id
    FROM     department_staff_tbl
    WHERE    department_staff_tbl.department_id = <cfqueryparam value="#arguments.deptid#"  cfsqltype="cf_sql_integer">
    AND      department_staff_tbl.position_id   = <cfqueryparam value="#arguments.posid#"   cfsqltype="cf_sql_integer">
    AND      department_staff_tbl.staff_id      = <cfqueryparam value="#arguments.staffid#" cfsqltype="cf_sql_integer">

Maybe you are looking for