Anyone knows how to do JNDI lookup with OracleAQ?

Hi all;
Can anybody point me some guide/idea on how to implement JNDI lookup with OracleAQ?
(Creating connectionFacotry , parameters for "java.naming.factory.initial", java.naming.provider.url etc..)
Thanks
-Ratha
Edited by: Ratha on Sep 27, 2011 3:50 AM

import javax.naming.*;
import javax.naming.directory.*;
import java.util.Properties;
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, PROVIDER_URL);
env.put(Context.SECURITY_PRINCIPAL, JNDI_USER);
env.put(Context.SECURITY_CREDENTIALS, JNDI_PWD);
InitialContext = new InitialDirContext(env);
where JNDI_USER is the userid If ACL is configured at the JNDI server
where JNDI_PWD is the password If ACL is configured at the JNDI server
Context.INITIAL_CONTEXT_FACTORY is the initial Context factory and depends on ur JNDI service provider.
PROVIDER_URL is the url of the JNDI server containing protocol/ip/port
Hope it helps
-aseem

Similar Messages

  • Anyone know how to gernerate CRUD applications with flex and coldfusion?

    Anyone know how to gernerate CRUD applications with flex and
    coldfusion? I am working with a remote coldsfusion installation
    with MS SQL and I don't have RDS.

    You might investigate "squidhead". It is CF based. I'm not
    sure if it has any Flex related features.
    http://squidhead.riaforge.org/

  • Does anyone know how to connect wireless speakers with itunes through airplay?

    Does anyone know how to connect wireless speakers with itunes through airplay? I am not getting the airplay icon in itunes.

    JBL doesn't have any speakers called "Spiral" that I can find, but anyway, perhaps something in this Apple support article on AirPlay troubleshooting will help:
    http://support.apple.com/kb/TS4215
    Regards.

  • Anyone know how to encode  video files with 5.1 sound

    So now that TV officially accepts and handles 5.1 sound....
    Does anyone know how to encode their video files to include 5.1 audio?
    (assuming that ones video files contain audio that is 5.1 from the original source)

    Saw this somewhere:
    Ok, I managed to get Dolby Digital from a Video file. The steps are very easy:
    Create an mp4 from your DVD or other source with Handbrake or Visual Hub - Audio Settings are not important
    If you are ripping a DVD then open Mac the Ripper, choose Chapter extraction, open streams and select the Audio File you want to be extracted
    You will now need Quicktime Pro
    Open both files (the mp4 and the ac3) in Quicktime. Copy the ac3 stream and paste it to the mp4 file
    Save the file as a MOV movie
    Import it in iTunes
    That was it!!!
    I am now trying to figure out how to extract ac3 audio from mkv files...

  • Does anyone know how to make this Box with prices?

    Hello!!
    I am making my 'wedding website' I am unware of what the 'actual term(s)' of how to call these element.
    I wanted to know if anyone knows if it is possible to make these price boxes with the amount filling box under it?
    Can you make something like this in MUSE (it seems perfectly possible) Can someone give me a hand or tutorial on how to do this.
    I was thinking of using some kind of widget or compositions. Many thanks! Here is the actual website to see it in action. Its under 'Gifts' section http://celebr8with.us/
    Thank you in advance!

    Hi
    The drop downs with price attributes would require custom coding on your end, but if you have a fixed price then you can use product information for sale purpose with price listed in the product itself.
    Something like this :
    http://muse.adobe.com/exchange-library/pricing-table
    Thanks,
    Sanjit

  • Does anyone know how to permanently delete emails with attachments on the ipod touch?

    Hey guys, a few months ago I sent an email from my cell to my ipodtouch(I have the newest model) to a friend(she has a older model) does anyone know if you delete the email by clicking on trash then will it be non recoverable? Thanks

    You will need to empty also trash to be sure. The email and the attachment will not be on iPod but may be a copy will still be on a server of your provider according to the system he uses (IMAP or POP3) and according to the preferences you have set on the mail programs (leave message on the server... delete it after a date or after deleting it from inbox or... there are many possibility).
    If the mail message is still on a server teoretically you can download it again from the iPod or even another computer.. of course knowing your account settings and password.
    What is not clear in your message: you mention 3 devices: sent thge mail from your cell (1) to your iPod (2) and/or to your friend (3).
    Added later: you will also need to check the SentMessage Folder because a copy of the mail could also be there if you sett to keep a copy there.

  • Anyone know how to find out availability with AT&T stores?

    The city I live in does not have an Apple retail store. The nearest one is 2 hours away from me, and upon trying to get into that store saturday when I was in that city, I couldn't even get thru the door. On calling back Sunday I was informed not to waste my time driving back because they were nearing sold out.
    I have also been told that ALL of the AT&T locations (I have personally visited 3 and called a few) in the upstate of SC have sold out, and none of their reps seem to know when they will have more.
    I am honestly tired of wasting gas doing all of this driving trying to buy the new iPhone. Does anyone here know of any contacts that can give someone a heads up on what AT&T stores will be getting shipments, and when? Nobody seems to have any information at all, and I'm getting annoyed by the lack of knowledge by the people that are supposed to be selling me a $300 product and a serious update on my monthly bill.
    I simply just want to spend my money on this new iPhone and can't.

    They really have no idea. The person I delth with in ordering said they were told the 7-10 day estimate was probably longer than it would take. They said there was stock but they were only getting so many on launch day. Last year I did the same thing, order to have my order priority. It arrived the Monday after I ordered it, so I wouldn't be surprised if they do come this week sometime.

  • Does anyone know how to win a fight with layout manager?

    I am using the form designer in netBeans to design my page, which has a jPanel on the left and a number of controls on the right.
    My problem is that when I eventually get it to look half right at design time, it looks different at run time. The fonts are different, the combo boxes are a different height and some of my text boxes are 4 times as wide. http://RPSeaman.googlepages.com/layout.GIF shows both the design-time view and the run-time view. How can I win my fight with layout manager?

    I'd like to do an experiment where you take say 20 pairs of students of java, with each pair matched in terms of prior programming and java experience, general knowledge, etc... and set one of each pair to learn Swing using netbeans and its layout generator with the other pair learning to code Swing by hand. Then 6 months later compare their abilities. I'll bet that the code by hand group will blow the other group out of the water in terms of understanding and ability.
    Just my 2 Sheckel's worth.

  • HT204382 I have a file which I cannot open onb my computer.   Would anyone know how to open a file with name ending in "flv"?

    I have a few files on my computer which I cannot open.   The file name ends in "flv"   Can anyone help with this?

    You could download and install the following Free Player:
          http://download.cnet.com/Elmedia-Player/3000-13632_4-86189.html

  • Does anyone know how I can record continuously with my Ipod Touch 5g?

    Hello everyone, I'm trying to make my ipod touch as a dash cam for my daily drive. I wanted to my ipod to atleast record for 40 minutes while driving, but it keeps stopping using the regular camera app. Even with dash cam apps, they still give me problems, or they are set to certain recording time. Your help is greatly appreciated.

    Too little for what?
    Do a test to see how longe 18 GB lasts. Based on Apple_iOS4Life 180 MB/min that would get you 77 minutes.

  • Does anyone know how to use iWork series with the cloud?

    Im not seeing how to get my iMac docs linked to the cloud with the new OSX Mountain Lion. I see a move button in the menu but cannot find directions on how this works. Can someone enlighten me? Thanks

    Here's the easiest way to get documents into iCloud with iWork.
    Open up an iWork application (version 9.2) and choose "Open."  You'll get the file dialog.  Click the iCloud button in the upper left if it isn't selected already so you get the grey linen background.
    Then open a Finder window and find the relevant iWork documents you want in iCloud.  Simply drag them to the iWork document 'Open" window and they will be moved to iCloud.
    Note iCloud is not general-purpose file storage.  You can ONLY store Keynote files in Keynote iCloud, Pages in Pages, and Numbers in numbers.  So project folders where you have multiple different files types in the same folder are out.

  • HT4061 Does anyone know how to sync the ipad with outlook calendar????  I cannot find anything her that makes sense

    I am having issues syncing with    outlook calendar.  Can anyone help?

    I use iTunes.
    So connect your iPad to your computer and open iTunes. Click on the name of your iPad. (You may need to make the sidebar visible, control S on a PC)
    Navigate to the info tab and scroll down. There should be an option to sync the outlook calendar. Choose that and then sync and you should be good to go.

  • Anyone knows how to send a attach with more than 255 characters in 4.6c ?

    Hi everyone,
    i´m tring to send a email with attach , my problem is that i have a itab with 2500 characters per line,
    and the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'  have the structure SOLISTI1 thats supports only 255 char. i tried to converto to PDF and XLS ,but when i open the attach only appers the first 255 char in each line only. any ideia for that issue?
    Thanks,
    Shimada
    Edited by: Fernando Shimada on May 5, 2009 8:28 PM

    here is part of my code that i tried:
    first: i write the lines of my itab and after did that
      CALL FUNCTION 'SAVE_LIST'
           EXPORTING
                list_index = '0'
           TABLES
                listobject = list_object.
      CALL FUNCTION 'LIST_TO_ASCI'
           TABLES
                listasci           = list_asci
                listobject         = list_object
           EXCEPTIONS
                empty_list         = 1
                list_index_invalid = 2
                OTHERS             = 3.
      APPEND LINES OF t_saida TO t_objbin.
      DESCRIBE TABLE t_objbin LINES v_lines_ane.
    second: do a alv report and tried to convert to pdf ,but the pdf have the same problem
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_callback_program = sy-cprog
                it_fieldcat        = t_fieldcat[]
                is_layout          = w_layout
                is_print           = wa_pr
           TABLES
                t_outtab           = t_alv
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      w_sp =  sy-msgv1.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = w_sp
                no_dialog                = ' '
                dst_device               = 'LOCL'
          IMPORTING
               pdf_bytecount            =
                TABLES
                pdf                      = t_pdf
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT t_pdf.
        TRANSLATE t_pdf USING '~'.
        CONCATENATE gd_buffer t_pdf INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~'.
      DO.
        t_objbin = gd_buffer.
        APPEND  t_objbin.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Create Message Body Title and Description
      t_objtxt-line = 'teste'.
      APPEND t_objtxt.
      DESCRIBE TABLE t_objtxt LINES v_lines_txt.
      READ TABLE t_objtxt INDEX v_lines_txt.
      wa_doc_chng-obj_name = 'smartform'.
      wa_doc_chng-expiry_dat = sy-datum + 2.
      wa_doc_chng-obj_descr = 'smartform'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
      CLEAR t_objpack-transf_bin.
      t_objpack-head_start = 1.
      t_objpack-head_num   = 0.
      t_objpack-body_start = 1.
      t_objpack-body_num   = v_lines_txt.
      t_objpack-doc_type = 'RAW'.
      APPEND t_objpack.
    Anexos
      t_objpack-transf_bin = 'X'.
      t_objpack-head_start = 1.
      t_objpack-head_num = 0.
      t_objpack-body_start = 1.
      DESCRIBE TABLE t_objbin LINES v_lines_bin.
      READ TABLE t_objbin INDEX v_lines_bin.
      t_objpack-doc_size  = v_lines_bin * 255 .
      t_objpack-body_num  = v_lines_bin.
      t_objpack-doc_type  = 'PDF'.
      t_objpack-obj_name  = 'smart'.
      t_objpack-obj_descr = 'test'.
      APPEND t_objpack.
      CLEAR t_reclist.
      t_reclist-receiver = Email.
      t_reclist-rec_type = 'U'.
      APPEND t_reclist.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = wa_doc_chng
                put_in_outbox              = 'X'
                commit_work                = 'X'
           TABLES
                packing_list               = t_objpack
                object_header              = t_objhead
                contents_bin               = t_objbin
                contents_txt               = t_objtxt
                receivers                  = t_reclist
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
      IF sy-subrc <> 0.
        WRITE:/ 'Error When Sending the File', sy-subrc.
      ELSE.
        WRITE:/ 'Mail sent'.
      ENDIF.

  • Does anyone know how you can play video with the screen locked and not just recorded video. Like downloaded video?

    So I want to be able to play video mp4 for my kids and lock the screen so that they don't disable or stop the video. Is there anyway you can lock the screen and play video? I've seen an app that tries to do this, but it only plays video recorded from the device. Also, it's not very good. I've also looked at IOS 5, but it only seems to support audio, not video, unless I am not doing something correctly? What happened to the simple old manual 'hold' switches that most devices have, like the PSP etc? It seems like all of the touch devices have neglected a simple touch disable button? Anyway, please provide any enlightenment here. 

    actually nevermind, it's working now. I closed iTunes, then waited a little, then double clicked one of my iTunes video files from my documents, which opened up iTunes again and the video started playing. I tried restarting iTunes before and that didn't work, so maybe for those who have similar problems, just try clicking on the video file in your documents/desktop of your computer, rather than directly from iTunes.

  • Anyone know how to fix a problem with my earphones?

    when i plug my headphones or earphones in to my laptop (macbook pro) one side is significantly quieter than the other side. i have tried different sets of earphones on other devices and can confirm it is my laptop. any ideas on what i should do? i keep my laptop in very good condition and dont have my earphones plugged in to my laptop very often. this is a major inconvenience as i enjoy using my headphones for car journeys or films and would greatly appreciate any help, thanks

    Try going to system preferences/sound/output and make sure the balance is set to the center

Maybe you are looking for