Why does Context.INITIAL_CONTEXT_FACTORY has to be vendor specific?

I have a standalone Java app that reads messages from a JMS queue, and when I create a InitialContext, I give it the property Context.INITIAL_CONTEXT_FACTORY = weblogic.jndi.WLInitialContextFactory.
Why? I mean, should I as a client not be able to connect to any JMS queue without any knowledge about what vendor this JMS server runs on? Can I give it some Sun standard factory instead that will work?
Thank you
Søren

The problem here is JMS is not a protocol specification like say SOAP, in which the size and format of every message is well defined, written in stone. Neither is JDBC nor JPA, they are just API specifications. We are given a library of interfaces to which we program, and every vendor will give us a concealed form of their implementation. Because of that, there is some point in every one of those APIs where we must specify the implementing clasess, which are free to define their own implementation.
Does this answer your question? Hope it has been useful.
Regards
Jorge

Similar Messages

  • Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Hello,
    Same problem for me. Really a pain in the *** this bug ! Does Apple fixed it. I'm really suprised noone reports this problem  and apple does not adress this.
    Because of that, I cannot give it anymore to children because it hurts the view. Really a shame on the part of apple !
    Regards

  • I m coming from linux platform ... now need my g   to work with vim ... how to install g   which supports C  0x ... why does  not it has repository with apple ... its so easy rather than going to UI ...

    i m coming from linux platform ... now need my g   to work with vim ... how to install g   which supports C  0x ... why does  not it has repository with apple ... its so easy rather than going to UI ...

    tom i have been using ubuntu for c++ project
    i use lambda and atomic (c++0x) but now as I am working on MAC not able to use them
    installed xcode(4.3) and changed compiler settings to LLVM3.1 but still both features are not available
    to compile wanted to have g++ which supports c++0x features ...
    new to MAC (2-3 days) so was in rush to solution
    let me know if you have some suggestion ...
    else will try with eclipse cdt .... 

  • When i try to purchase a song, why does apple id has been disabled comes up

    when i try to purchase a song, why does apple id has been disabled come up?

    We are fellow users on here so we won't know that actual reason, but you might be able to re-enable it via this page : http://iforgot.apple.com
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/

  • Why does "a photo has been found in the iPhoto library that was not imported" message appear every time I open i photo?

    It happens on my iMac, and now that I have transferred some photos from that computer to my MacBook it is happening there, too.  If I say that I don't want to import it, it "saves" it automatically to a file somewhere on the hard drive.  That folder appears empty when opened, so I'm not sure what it's saving.  Every time I open iPhoto it asks me twice before I can proceed, and creates two neat little folders with nothing in them.  If I say that I do want to import the mystery photo, it plunks the nothing that has not been imported in to a Recovered Photos album.  Once again, nothing there.  Any ideas as to how to fix this problem?

    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • Why does my iPhone has two names?

    My iPhone 4 has two different names .
    One in My Computer where I enter to copy my photos from it to the my computer, and one in iTunes . Why is that?
    I have attached a photo : http://s8.postimage.org/hjp36vb85/why.png

    You don't understand. Look at the PHOTO . If I change it in iTunes, it only changes ther. In My Computer, where the photos are, it still says "ank"

  • Why does serializable interface has no methods inside it

    Aloha
    Can anyone please help me with this....Serializable interface has no methods inside it.So how is it useful to the user.Also if I am writing a class which implements Serializable how does JVM know what to do.?

    JoachimSauer wrote:
    dannyyates wrote:
    [The JVM] doesn't know about serialisation [...]Sorry for the nitpick, but that's not completely true. The JVM needs to know about serialisation at least at little bitNo.
    since Serialization creates new objects without the code from the constructrs ever being run. ObjectInputStream loads the classes just like any other code would, although it's obviously reading the serialized stream to get that information... and then calls newInstance() on ObjectStreamClass.
    And ObjectStreamClass uses reflection to get a constructor (via java.lang.Class getDeclaredConstructor ) and then uses said java.lang.reflect.Constructor to create a new instance via newInstance()
    There is no JVM magic. It is all Java code. (With the exception of what java.lang.reflect.Constructor does because at the point it dives into sun packages but you could do the same by calling java.lang.reflect.Constructor)

  • Verizon for one you have very bad customer service, for two why does someone who has a one year warranty have to go into the store to replace my samsung galaxy s4 phone, when all it has done for months is over heat?

    I dont understand why i would need to go into the store for a replacement phone when i have had my phone under one year just because i have had it under one year. My phone has been over heating and i been trying to get a replacement phone, but i dont really have time to go in the store and i really dont see why i can replace my phone over the phone after one year.
    oh and your customer service sucks.
    Thank you

    Broke new phone Verizon couldn't help even give me form for insurance I pay for in their stores.Seperate corp.Had no Internet waited 2 weeks mail me form.They suck.Did run across 1 dude finially knew his stuff and personally handeled many problems.It was after most working there didn't took me month replacement phone mailed.If customers service person seems new ask for someone can fix problems asap.
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • Why does Illustrator CC has a B5 preset page setup of 182 x 257 and not 176 x 250 like the EU DIN-standard?

    I just started a document for a series of illustrations for a client; The booklet had to be B5. So i just opened the presets in Illustrator for B5.
    Now that I am starting the final designs, I was going through the specs off the printer and I found out that my document was 182 x 257 mm. This is a Japanese B5 standard. not the EU B5 standard !!!!!
    I happy i found out now!
    Adobe Illustrator developers: go hangout more with your Ps and Id- colleagues, they got it right....
    Paper size - Wikipedia, the free encyclopedia

    It's not a matter of 'correct'. It's a matter of consistence. Why in Id and Ps the ISO-standard and in Ai the JIS-standard?
    btw I mentioned the EU DIN- standard and that is even the  ISO so that is quit international.
    one world!

  • Why does my itunes has an error reported everytime when i get ready to sync my stuff?

    everytime i plug my phone up to itunes, and get ready to sync stuff to my phone...my computer finds an error in itunes .. what do i do ?

    No one even has an idea? I'm lost.

  • In iTunes, why does music which has been ripped from a best-of CD continue to show the year of the CD release even after I change the year to the year of the song release in playlists?

    I often rip music from CDs of artists that released songs in the '60s and '70s. When I rip the music, in iTunes it shows the year of the CD release, usually something in the '90s or 2000s. I change the year in 'Get Info' to the correct year, and it changes it fine. However, after a while, it will show the old year again, the year of the CD. This is a problem because I like to arrange playlists based on song years, and this messes with that.
    Tell me: is there a way to permanently fix the reverting year problem? Also, when I spot a song that this has happened to, when I click on 'Get Info', the correct ear is still in there, and when I hit 'OK' it changes back. This is really frustrating...

    In some cases the original iTunes Store metadata seems to be given preference over personal changes. If you are seeing this then
    Go to Edit > Preferences > Store and turn off
    Show iTunes in the Cloud purchases
    Share details about your library with Apple
    On any iOS device go to Settings > Music and turn off
    Show All Music
    Close and reopen iTunes and/or reset the device and you should see your version of the metadata for each track rather than the original store data. If not it should reset as you play through content, or you can use my script UpdateTagInfo to force iTunes to read the current data from the tags.
    tt2

  • Why does "The Connection has Timed Out" appear ???

    this is pretty much the problem ,,, I was always able to connect to various web sites but now I keep getting this ,,,,, "The Connection has Timed Out" I have already check with my ISP and no solution ,,,, everything's work fine ,, , cannot open Google , craiglist , cannot do personal banking ,,,, as well

    Try clearing your cache and cookies.
    # Open the Tools menu, then select Clear Recent History... .
    # In the '''Time Range to clear:''' drop-down, select '''Everything'''.
    # Click the arrow next to '''Details''' to display the list of items that can be cleared.
    # Select both '''Cookies''' and '''Cache'''.
    # Click Clear Now .
    Also one of your add-ons might be the culprit too. Try running Firefox in [[Safe Mode]] with all add-ons disabled. If that solves the problem, see [[Troubleshooting extensions and themes]] and possibly [[Troubleshooting plugins]]

  • Why does "your AppleID has been disabled" keep showing when I go to update my apps on my iPad?

    I have tried to correct the problem by changing my password, but it keeps coming back.  Help!  I want to update my apps and buy stuff on iTunes.

    Hi Granny,
    There is a difference between your ID being disabled for security reasons and it just being disabled.   Read about the difference and act accordingly.
    Apple ID is Disabled - Apple Club

  • Why does external modules not depend on a specific kernel version ?

    Hi,
    I'm quite new to Archlinux and there are a few things I don't understand about the way pacman handles kernel and modules packages.
    I understand that modules in the repository are only build against the current kernel version and that you should update both at the same time to keep your system in a working state, however I don't understand why the package system does not enforce that.
    For example if I look at the current nvidia modules (100.14.19-3), it will install its stuff in lib/modules/2.6.23-ARCH and hence (should) depends on kernel26>=2.6.23.
    However if I take a look at the package itself, it only depends on kernel26.
    If I upgrade the modules without upgrading the kernel or upgrade the kernel without upgrading the modules, I will break my system.
    In my opinion (but I may be missing something) the package manager should be robust and should make sure your system stay in a coherent state.
    Is there a technical reason for this or is this only to avoid having to modify the packages dependencies each time a new kernel is release ?

    Very interesting, I was right when I said I was probably missing something
    As I said in my first post, I'm a new archlinux user. I'm more familiar with debian/ubuntu systems.
    The way they are solving this kind of issue is simply by putting the kernel version number in the package name.
    For example you have nvidia-kernel-2.6.23-1 which depends on linux-image-2.6.23-1.
    This solves these kind of upgrade issues (I did a search in the forums before creating this thread and I saw there were a hell lot of kernel/modules dependency issues that have already been reported by other users).
    The advantage of this system is that you can keep both the old and the new kernel package on your system at the same time are revert to the previous version if something goes wrong.
    However the drawback is that you have to maintain several versions of the same package in the repository at the same time, which may be contrary to the archlinux philosophy...

  • When I get an alert from my car sat nav the music on my iphone has a long delay before it comes back on and misses a part of the track why does it do this.

    When I get an alert from my car sat nav the music on my iphone has a long delay before it comes back on and misses a part of the track why does it do this.
    It only seems to do this since an iphone download last year.......its driving me mad !

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    To copy iTunes purchases to the computer you have to log into (authorize) the account that purchased them and them transfer
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    When associating a device with an Apple ID see the following regarding the 90 day limit.

Maybe you are looking for

  • Song no longer available for purchse error

    I tried on Monday to purchase two songs but got an error saying that they were no longer available for purchase, even though a can listen to the preview. I click OK to the error prompt and thought no more of it. I recently check my back account and I

  • HP laserjet pro 1102w printer problem

    When I have sent print order wirelessly, only the first page of the doc is printed and the printer gives error status, How can I solve this problem. Thanks

  • Notification Center off center on screen (Image included)

    When I do the pull down main Notification Center, it pulls down off center on the screen and I can't do anything with it, I have to hit the home button and restart whatever app I was using, is anyone else having this problem? I have an image of it:

  • Wireless mighty mouse resolution (in DPI)

    hi, anybody has an idea of what is the resolution of the mighty mouse? i have the wired one, i believe it was just 800 dpi... i'm wondering if the new one is any better... i'm quite used to gaming mice (razer & logitech) whch goes up to 1600 dpi, so

  • Itunes error 11333

    itunes wont connect to internet! I have 10.5.8 wnt accept new version or updates HELP!