Making a mapping with queue

Hi,
I have one more quesstion. How can i make a connection to a database, when iam using a queue in a oracle database. I have given my coding at the bottom. I would like to know what i should write in the configuration files. Is there any particular site for it. Making a JNDI connections for the queue
public QueueInterface(String strQueue, String dsn, Logger parmLog)
throws JMSException, NamingException
log = parmLog;
log.info("Setting up a connection to the " + strQueue + " queue.");
// Find the queue and make a connection.
Context initCtx = new InitialContext();
QueueConnectionFactory connFactory;
connFactory = (QueueConnectionFactory) initCtx.lookup(dsn);
QueueConnection = connFactory.createQueueConnection();
System.out.println("queue connection is created");
// Create a session.
queueSession = queueConnection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
System.out.println("queue session setup");
queueConnection.start();
System.out.println("queue session and connection started");
// Create and configure a sender.
queueSender = queueSession.createSender(getQueue(strQueue));
queueSender.setDisableMessageID(true);
queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);
queueSender.setPriority(1);
}

Hi,
QueueConnectionFactory is not a recommended approach and instead the ConnectionFactory interface should be used. Here's an example of using the OraConnectionFactory
http://download.oracle.com/docs/html/B14341_02/oracle/dmt/jdm/resource/OraConnectionFactory.html
Frank

Similar Messages

  • Re-map print queues for clients with powershell

    We reinstalled printer queues (share printer name is the same as before) and drivers on server, 99% users can't print properly, is a way to re-map print queues for all clients with PowerShell equivalent to remove and map again?

    Hi Brent,
    To re-map all of the printers, please check this script written by Boe Prox:
    <#
    .SYNOPSIS
    Logon Script to migrate printer mapping
    .DESCRIPTION
    Logon Script to migrate printer mappings
    .NOTES
    Author: Boe Prox
    Create: 09 NOV 2012
    Modified:
    Version 1.0 - Initial Script Creation
    1.1 Added Header Text for CSV file
    #>
    Param (
    $newPrintServer = "Server2",
    $PrinterLog = "\\LogSVR\PrintMigration$\PrintMigration.csv"
    <#
    #Header for CSV log file:
    "COMPUTERNAME,USERNAME,PRINTERNAME,RETURNCODE-ERRORMESSAGE,DATETIME,STATUS" |
    Out-File -FilePath $PrinterLog -Encoding ASCII
    #>
    Try {
    Write-Verbose ("{0}: Checking for printers mapped to old print server" -f $Env:USERNAME)
    $printers = @(Get-WmiObject -Class Win32_Printer -Filter "SystemName='\\\\Server1'" -ErrorAction Stop)
    If ($printers.count -gt 0) {
    ForEach ($printer in $printers) {
    Write-Verbose ("{0}: Replacing with new print server name: {1}" -f $Printer.Name,$newPrintServer)
    $newPrinter = $printer.Name -replace "Server1",$newPrintServer
    $returnValue = ([wmiclass]"Win32_Printer").AddPrinterConnection($newPrinter).ReturnValue
    If ($returnValue -eq 0) {
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $newPrinter,
    $returnValue,
    (Get-Date),
    "Added Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    Write-Verbose ("{0}: Removing" -f $printer.name)
    $printer.Delete()
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $printer.Name,
    $returnValue,
    (Get-Date),
    "Removed Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    } Else {
    Write-Verbose ("{0} returned error code: {1}" -f $newPrinter,$returnValue) -Verbose
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $newPrinter,
    $returnValue,
    (Get-Date),
    "Error Adding Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    } Catch {
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    "WMIERROR",
    $_.Exception.Message,
    (Get-Date),
    "Error Querying Printers" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    Quote from:
    Use a PowerShell Logon Script To Update Printer Mappings
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Hi there, I'm having my iPhoto (8.1.2 version) making auto-shutdown with no reason Does anybody know what shall I do with it? Regards, Miguel Sim

    Hi there,
    On my iMac from 2009 - 3,06 Ghz Core 2 Duo with Mac OS X lion 10.7.5 (11G63) I'm having the iPhoto (8.1.2 version) making auto-shutdown with no reason;
    Does anybody know what shall I do with it ???
    Regards,
    Miguel Sim.

    Hello again,
    Process:         iPhoto [2771]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         8.1.2 (8.1.2)
    Build Info:      iPhotoProject-4240000~8
    Code Type:       X86 (Native)
    Parent Process:  launchd [141]
    Date/Time:       2013-11-14 18:53:17.814 +0000
    OS Version:      Mac OS X 10.7.5 (11G63)
    Report Version:  9
    Interval Since Last Report:          106324 sec
    Crashes Since Last Report:           2
    Per-App Interval Since Last Report:  634 sec
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      637A60DB-E15A-441E-BAAB-F21EF18FA1B6
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: 0x000000000000000a, 0x000000000cfbc000
    VM Regions Near 0xcfbc000:
        JS JIT generated code  000000000cfb4000-000000000cfbc000 [   32K] rwx/rwx SM=PRV 
    --> mapped file            000000000cfbc000-000000000cfcc000 [   64K] r--/rwx SM=COW  /Users/USER/Pictures/*/*.jpg
        TC malloc              000000000cfcc000-000000000d0cc000 [ 1024K] rw-/rwx SM=PRV 
    Application Specific Information:
    objc[2771]: garbage collection is OFF
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_c.dylib             0x9144ebe1 memmove$VARIANT$sse3x + 35
    1   com.apple.ImageIO.framework   0x99396ca0 _CGImageSourceBindToPlugin + 300
    2   com.apple.ImageIO.framework   0x99396b63 CGImageSourceGetType + 55
    3   com.apple.CoreGraphics        0x939bdc4c CGImageCreateWithJPEGDataProvider2 + 166
    4   com.apple.CoreGraphics        0x939bddc4 CGImageCreateWithJPEGDataProvider + 47
    5   com.apple.iPhoto              0x001aa38e 0x1000 + 1741710
    6   com.apple.iPhoto              0x0043d5a6 0x1000 + 4441510
    7   com.apple.iPhoto              0x00448902 0x1000 + 4487426
    8   com.apple.AppKit              0x9494f79d -[NSView _drawRect:clip:] + 3929
    9   com.apple.AppKit              0x9494d7bc -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 2650
    10  com.apple.AppKit              0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
    11  com.apple.AppKit              0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
    12  com.apple.AppKit              0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
    13  com.apple.AppKit              0x94947caa -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4817
    14  com.apple.AppKit              0x94940bd9 -[NSView displayIfNeeded] + 1365
    15  com.apple.AppKit              0x94945872 -[NSClipView _immediateScrollToPoint:] + 6543
    16  com.apple.AppKit              0x94943e2e -[NSClipView scrollToPoint:] + 234
    17  com.apple.AppKit              0x94a34137 -[NSScrollView scrollClipView:toPoint:] + 279
    18  com.apple.AppKit              0x94a33efb -[NSClipView _scrollTo:animateScroll:flashScrollerKnobs:] + 1533
    19  com.apple.AppKit              0x94a3711c -[NSClipView _scrollTo:animate:] + 62
    20  com.apple.AppKit              0x94a370d4 -[NSClipView _scrollTo:] + 48
    21  com.apple.AppKit              0x94a3709b -[NSClipView _scrollPoint:fromView:] + 107
    22  com.apple.AppKit              0x94a37029 -[NSView(NSPrivate) _scrollPoint:fromView:] + 50
    23  com.apple.AppKit              0x94a36fef -[NSView scrollPoint:] + 65
    24  com.apple.iPhoto              0x001c08e4 0x1000 + 1833188
    25  com.apple.iPhoto              0x001bff5b 0x1000 + 1830747
    26  com.apple.AppKit              0x949d1508 -[NSWindow sendEvent:] + 9384
    27  com.apple.AppKit              0x94969f77 -[NSApplication sendEvent:] + 4788
    28  com.apple.iPhoto              0x00229973 0x1000 + 2263411
    29  com.apple.AppKit              0x948fbb21 -[NSApplication run] + 1007
    30  com.apple.AppKit              0x94b8cac5 NSApplicationMain + 1054
    31  com.apple.iPhoto              0x00124b80 0x1000 + 1194880
    32  com.apple.iPhoto              0x00003172 0x1000 + 8562
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib        0x9982ab5e __select_nocancel + 10
    1   libdispatch.dylib             0x9c80bcbd _dispatch_mgr_invoke + 642
    2   libdispatch.dylib             0x9c80a853 _dispatch_mgr_thread + 53
    Thread 2:: Dispatch queue: CFPreferences Background Sync Queue
    0   libsystem_kernel.dylib        0x9982a71e __open_nocancel + 10
    1   libsystem_c.dylib             0x914c643d _gettemp + 554
    2   libsystem_c.dylib             0x914c65df mkstemp + 32
    3   com.apple.CoreFoundation      0x9685fc06 -[CFXPreferencesPropertyListSourceSynchronizer writePlistToDisk] + 1366
    4   com.apple.CoreFoundation      0x968243a3 -[CFXPreferencesPropertyListSourceSynchronizer synchronizeAlreadyFlocked] + 595
    5   com.apple.CoreFoundation      0x968240fa -[CFXPreferencesPropertyListSourceSynchronizer synchronize] + 522
    6   com.apple.CoreFoundation      0x9686750a __-[CFXPreferencesPropertyListSource synchronizeInBackgroundWithCompletionBlock:]_block_invoke_1 + 122
    7   libdispatch.dylib             0x9c809fbd _dispatch_call_block_and_release + 15
    8   libdispatch.dylib             0x9c80b943 _dispatch_queue_drain + 224
    9   libdispatch.dylib             0x9c80b7e8 _dispatch_queue_invoke + 47
    10  libdispatch.dylib             0x9c80aff0 _dispatch_worker_thread2 + 187
    11  libsystem_c.dylib             0x91478b24 _pthread_wqthread + 346
    12  libsystem_c.dylib             0x9147a6fe start_wqthread + 30
    Regards,
    Miguel Sim

  • How to use tile map with AS3?

    I have a file that contains a bunch of isometric tiles that I need to make a map with, much like a sprite sheet but not for making animations. So using AS3, how can I divide that file into the different tiles, knowing the coordinates of each of them. Or can it be done automatically in Flash itself, so I can access each tile from AS3?
    Furthermore I've been a programmer for a couple of decades but I am new to Flash. I know there are a ton of DisplayObjects like Bitmap, Sprite, Shape, MovieClip, Symbol etc. But which one would be better to use for that file? I need to access it from AS3 as described above, but I don't need it to react to mouse events, stretch or have children, just extract each tile and move it onto the stage with AS3.
    It seems to be down to a choice between Bitmap and Shape, since they're both lightweight, but I couldn't find out what the advantages and disadvantages of them are, as there was no comparison between those two on Google, though between a lot of the other objects. And Symbol seems like an idea too, since when I googled this, I found a lot of pages saying that you should convert a Bitmap to a Symbol, but I never found out why.
    Oh, and since I'm building an isometric map, all the tiles and all other graphics I'll be using, will be Bitmap and not Vector since I'm drawing the graphics in pixelart.

    create one tile symbol (movieclip or sprite so you can use actionscript to reference tile properties - like its x and y) and arrange them (using code or by hand) into your map.
    enable the cacheAsBitmap property of your map (that has some number of tile children).
    assign the mouseEnabled property of the map to false and its mouseChildren property to false.

  • Making a map in Illustrator CS4

    I have been reading some tutorials how to make street maps in Illustrator, and found that CS4 have a new cool tool called "Blob brush". That's very good when making a map.
    My problem is more that when using the pen tool as before it is much more easy to correct and adjust the lines after making a freehand trace from another map as the anchor is in the middle.
    I would need some tips how to use the "Direct selection" tool or some other way to easy adjust the traced lines? Maybe there is no way, but I have to ask

    All the Blob Brush does is use a standard Calligraphy brush, then expand the brush when you lift the mouse/cursor. Thus creating a shape rather than a path with a brush applied to it.
    I'd suggest you try just using a Calligraphy brush with the Brush tool. This will give you a path with a brush applied. Altering the path will be much easier than altering the shape of the Blob Brush. You can then use Object > Expand to convert the brush paths to shapes and the results are the same as the Blob Brush.

  • SAP XI - Mapping with Contexts

    Hi Guys,
    We have a problem when mapping with contexts. Couldyou please help.
    What we are trying to achieve is if PARVW = X then map name2 to name2. We have done this all the way down the DT_Address. The context on both input values are set to IDOC.
    The problem is that when all the fields are in a particular segment occurence then it maps perfectly. But on numerous occurrences of E1EDKA1 various fields are missing i.e.name2 or pstl2 etc. What we want to happen is if the field doesn’t exist in that particular occurrence then just leave blank and don’t map. What is happening instead is XI keeps looking for this field and maps the first occurrence it can find of it. So we end up with like 6 occurrences of the same thing.
    Is their a way to specify that only map the fields if it is within the same occurrence as the qualifier. So basically Name2 follows PARVW to the same occurrence.
    Also is their a way of making it so we don’t get
    Name
    Name
    Name
    Id
    Id
    Id
    Address
    Address
    Address
    And instead get
    Name
    Id
    Address
    Name
    Id
    Address
    Name
    Id
    Address
    Thanks people

    Hi Thanks for your input.
    It was a little to do with the context but in the end I had to put another element in the target structure. So it went
    Customer 0-unbounded
            customerAddress 1-1
                       Details 0-1
                       ETC 0-1
                       ETC 0-1
    I mapped the customer to E1EDKA1
    I mapped customer address to a constant
    and the details I ampped as before but with no context.
    This seemed to work.... I have no idea why but it did work. If anybody could explain the why, I would appreciate it.

  • Interface-Mapping with a Fault Message Type

    Hi,
    we have an abap-proxy and some messages generated errors. The errors can be displayed via sxmb_moni. The proxy raises an "Application Error (Restart possible)".
    Now I wanna transform the generated fault message (of the proxy) with a message mapping and send the output to a file.
    My problem is, that it is not possible to define an interface mapping with the fault message as well as it is not possible to define a receiver determination.
    Any ideas?
    Thanks a lot
    Regards
    Wolfgang Hummel

    Hello
    As far as I know you can propogate the application error back to the calling application only in case of a Synch Interface? Are you making a Synch call where the proxy triggers a fault message,  if yes then all you need to do is to make the change in XI to have the fault message for both the outbound and inbound message interfaces and then a corresponding fault message mapping and select this in the Interface Mapping and then the fault message will be sent to the source / calling application.
    In the case of Asynch calls I don't think this is possible until you use a BPM. Have not tried this myself though.
    Regards,
    Bhavesh

  • How do i test split by value functionality in mesage mapping with multiple

    how do i test split by value functionality in mesage mapping with multiple values ?
    regards,
    venkat

    repeat your source node. in mapping editor you can view queues by right clicking to mapped element.. selecting Display Queues option.. this will show u your values .
    You can also select this Display Queue option for splitByValue option
    for example
    source--->splitByValue>target
    Try viewing your queues to each this step... for splitByValue in display Queue you will see context inserted(grey colour) accodingly

  • E2k10SP1 | Mails are backing up in MAPI Delivery queue - Restarting the transport service flushes the queue

    Hello,
    Need assistance on Transport issue.
    Setup:
    Windows 2008 R2
    Exchange 2010 SP1. Three member DAG and two HUB & CAS combined role servers configured with Hardware load balancer.
    Issue: Randomly some mails are getting stuck in MAPI delivery queue. Restarting Transport service for couple ot times, flushes the queues.
    Troubleshooting done so far
    1. Disabled  - TCP Chimney Offload, Receive Side Scaling (RSS).
    2. No DNS issue.
    3. EXBPA report is clear.
    Any help would be highly appreciated.
    Regards,
    Ghouse

    All are internal mails and 70 GB free space is there on the disk.
    If we dont clear the queue then after three days queue expires and sender receive below NDR.
    Delivery has failed to these recipients or groups:
     [email protected] 
    The server has tried to deliver this message, without success, and has stopped trying. Please try sending this message again. If the problem continues,
    contact your helpdesk.
     Diagnostic information for administrators:
     Generating server:
    [email protected]
     [email protected] 
    #550 4.4.7 QUEUE.Expired; message expired ##

  • Issue in Color Theme on the map with ADF geographic components

    I am facing an issue in bringing up a map using color theme .I can able to bring up a map with color themes using geographic components feature in ADF.
    The problem here is 'Edit Color Map Theme' dialog which lists Map Theme in five categories like continents,counties,countries,states_abbrev,states_names.
    we had implemented map using Color Theme based on the states_abbrev and found it was working properly.
    But after some days we found that the settings we made to work for the map no longer works and resulted in no color theme on the map being displayed on the page.
    It was found that the states_names works properly instead of states_abbrev by that time.
    But again after some days it didnt work with state_names and we revert back our code to follow state_abbrev so as to get the desired result.
    Does somebody know where is the problem and how to approach this issue?

    Quick Install is gone.
    Database repair doesn't work.
    Color coded categories is gone, and as you've discovered Theme colors are gone.
    Print to Excel is gone.
    Many desktop clients that worked with 4.2 do not work.
    It won't work with legacy devces.
    and others.... There are lots of complaints about 6.2 scattered around the forums.  Personally, the HotSync manager keeps forgetting the connections I've set, and goes to default views.
    You aren't missing much of anything, IMHO.
    WyreNut
    Post relates to: Centro (AT&T)
    Message Edited by WyreNut on 02-20-2009 12:18 PM
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to add a bing map with pins to a Siena Project

    Hi
    I just want to add a bing map with the current location and a few nice pins of some nice locations around me. Comming out of a Excel file. Potentially also draw some routing lines into the bing maps.
    Any ideas how I can accomplish that goal?
    Thank you in advance
    wbr.
    Joerg 

    yes you can (there is actaully one on the map, blue square)
    The syntax is listed on
    http://msdn.microsoft.com/en-us/library/ff701724.aspx
    You will however have to build the correct string to included in the image source (which you can do in the source excel or in runtime in siena)
    Concatenate is suitable to do that.
    http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pp=47.638197,-122.131378;;1&ms=350,500&key=KEYHERE
    the PP indicates the pin actually and the bing map autocenters on that. You have several options listed on the webpage listed above. It's a question of the one fitting you best.
    Please note that your bing key is yours so you need to hide it well enough.
    Regards
    StonyArc

  • Can i use WebApps to build a Google map with polygon territories instead of points (pins)?

    I built a map with Google Maps Engine Pro - http://www.jmbcompanies.com/Services/Mitigation/map.
    It showcases territories using a Google map polygon shape.  I wrote custom KML to create it.  However, with Google Maps Engine pro you cannot create custom hyperlinks.  It will link a URL that you put in the data, but you cannot name it or target the parent window, so therefore it opens a new tab for each click to more details.  I really want it to open the WebApp detail page for that item within the same window.
    So, is there a way to use the BC integrated Google maps technology and show polygons instead of points on the map? I've used {module_webappsmap,20754,a} to place individual locations on a map, but what about territories or polygon areas?
    I'm sure that I can create a WebApp to generate the KML for each placeholder.  But how do I turn that into a map?
    THANKS!!

    You can not create a kml file in BC through webapps. Modules do not work in other file types and you do not have server code access to generate a file type of results.
    You need to use the google API and do this yourself or you can just use this:
    And embed it into a custom field. My Maps

  • How to lock a specific map with a password in FINDER?

    I don't use a password on my mac because you have to fill it out the whole time for ridiculous reasons. But I have one map, with all my financial numbers and invoices, that I want to secure with a password.
    How to do that?
    I already tried some things but can't figure it out.
    Thanks in advance!

    not sure what you mean by a map here. if you use a blank admin password (a mistake IMO), pretty much your only option is to create an encrypted disk image using disk utility and put whatever you want protected inside. when the image is unmounted, the only way to mount it is by entering the password you set at the image creation time.

  • Error in scheduling a mapping with sqlloader ctl file

    Hi everyone,
    I have been trying to schedule a single mapping which generates sqlloader ctl file. but i get the error
    ORA-20001: Begin. initialize complete. workspace set. l_job_audit_execution_id= 20545. ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found ORA-06512: at "USER7.PMAP_TLOG_JOB", line 180 ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found
    but when i attach this mapping with a process flow it works fine. There is no error.
    so my question is in OWB is it a must that we should attach the mapping which generates sqlloader ctl file to a process flow and then schedule it or can we schedule a single mapping which generates sqlloader ctl file and what should be the process to schedule a single mapping which generates sqlloader ctl file?
    can anyone please help?
    Thanks & Regards
    Subhasree

    Hi Nawneet,
    Any suggestions?
    can anybody else also help me in this error???
    Regards
    Subhasree

  • I'm making a DVD with my iMOVIE and when I tried to burn a DVD I got an error message that said "ERROR IN PROJECT

    I'm making a DVD with my iMOVIE and when I tried to burn a DVD I got an error message that said
    "ERRORS IN PROJECT
    There were errors during the project validation that have to be fixed before burning the project."
    What does this mean and how do I fix it.
    jim

    Hi
    Do You have a NEW Mac ?
    Does it really have iDVD ? New ones Don't.
    Please tell much more
    • Mac used
    • Program used (versions)
    • Material used (Codecs, file formats etc)
    Yours Bengt W

Maybe you are looking for