Instanceof in combination with switch

Hi,
I have a vector that can contain Objects from
different classes. When the vector arrives in the
EJB I want to perform different actions dependend
of the Class of the object.
I want to do this in a switch statement using instanceof,
but I can't make it work.
Object aRecord = difRecords.elementAt(0)
switch(??)
case ??:
case ??:
Can anybody help me with this?
Regards,
Sven

You can't use switch in this way, only with primitives like int.
You'll have to take the wordy longsmith approach and use if... else..., unless you have an array of type Class whose ordinals are then used in the switch, e.g.:final Class[] CLASSES = {
  Class.forName("java.lang.String"),
  Class.forName("java.lang.Integer"),
  /*etc.*/,
  Class.forName("java.lang.String")
final int CLASS_STRING = 0;
final int CLASS_INTEGER = 1;
/*etc*/
final int CLASS_UNKNOWN = 9;  // or however big the array of class names
Object aRecord = difRecords.elementAt(0);
//Get the int value representing the class of this element...
//(Will be 9=UNKNOWN if not any of the other classes in CLASSES array)
for(int classOrd = 0; classOrd < CLASS_NAMES.length && aRecord.getClass() != CLASSES[classOrd]; classOrd++);
switch(classOrd){
  case CLASS_STRING:
    //Do stuff for String...
    break;
  case CLASS_INTEGER:
    //Do stuff for Integer...
    break;
  /*etc.*/
  case CLASS_UNKNOWN:
    //Handle unknown class
}The reason for having java.lang.String appear at the beginning and end of the array is that, if the object is a String, it will be recognised as CLASS_STRING (classOrd for the switch block); if it's any of the other classes in CLASSES array, it will be recognised as CLASS_XXX.
If it's not recognised, it will get to java.lang.String the second time; you now know it's not a recognised class so assign CLASS_UNKNOWN to classOrd.
Might be a bit over the top but I'm sat here pondering a pain-in-the neck Windows problem and took this as a welcome excuse for distraction!
Hope it helps, or maybe convinces you to stick with if... else... ;-)
Chris.

Similar Messages

  • I switched to the classic 'landscape' and when i reboot, it just stays at the greay screen, with the macintosh logo, and a blinking question mark. ive tried several methods of key combinations with rebooting etc.. i just bought this. please help.

    i switched to the classic 'landscape' and when i reboot, it just stays at the greay screen, with the macintosh logo, and a blinking question mark. ive tried several methods of key combinations with rebooting etc.. i just bought this. please help.
    I bought this off of craigslist with my christmas money, TODAY. i really need help, i have OS X experience from school, just not OS 9x. I need to reboot back to OS X asap. anything that may help is very appreciated. Thank You.
    Chris.

    Are you able to start up in Safe Mode?
    http://support.apple.com/kb/HT1455?viewlocale=en_US
    If this works you will see the normal desktop Once completely started up in Safe Mode, try to restart normally and go to Applications > Utilities > Disk Utility. Click on the top hard drive icon in the left sidebar and note the S.M.A.R.T. status at the bottom right of the pane. What does it say?
    Select the named boot volume in the left sidebar, ("Macintosh HD" unless it has been renamed). What is the hard drive capacity and how much space remains available on it? Repair permissions on it.
    See if you are able to do a little hard drive maintenance to help things out.

  • Set up cisco SGE2010 combined with Dell 6248 switch

    Hi, I have currently a Dell powerconnect 6248 switch combined with a netgear UTM router. I have a basic understanding on how things should work but I don't have the knowledge to apply it as I'm new to setting up vlan and the person before me did the basic configuration like this:
    defined 5 VLAN in the netgear router
    defined the same 5 VLAN in the dell 6248
    connected the dell switch to the netgear router via a trunk port.
    Right now all the inter vlan traffic pass thru the netgear router as the dell switch as a trunk port connected to the netgear box who then give dhcp and set himself as the default inter vlan route. I would like to stop that since I would like the cisco switch to handle all the vlan routing for both switch and those switch to send their dhcp request to my win2k8 server.
    I did set the sge2010 in layer 3 mode from the small business telnet interface. I then setup the same 5 vlan in the cisco switch.
    If I understand this well I need to define an IP address for each vlan interface on the cisco switch for it to be able to route things, I have set them all as x.x.x.3 (x.x1.3 vlan 1, x.x.2.3 vlan2, etc) Then I need both swtich to forward all dhcp request to my dhcp box wich is in vlan 2. My DHCP server will have 5 range of IP address to hand out. my server are connected directly to the dell switch on vlan 2. I have set up a port in the dell switch in trunk mode and did the same thing in the cisco switch and connected them togheter to send all vlan packet. The current setup doesn't work so I need some help to finalize that setup so that everything works.
    If you need detail that I might have forgot to mention I wll gladly provide them.
    Thanks !

    For future reference, I finally succeeded in setting up everything the way I wanted it to be. I enabled layer 3 routing on the sge2010 switch, defined IP for each vlan interface, defined DHCP scope with vlan interface ip as the gateway. Added the ip-helper ip of the dhcp server on the sge2010, I defined 1 of the port on the cisco to trunk mode and added all vlan to it. I then defined all the same vlan on the Dell swith, added the ip helper address of the dhcp server for each vlan on the dell switch, defined a port on the dell swith in trunk mode and added all the vlan to it, connected both swith with an ethernet cable via the trunk port on each side and voilà all is working good. I finally had to define a static route in the cisco switch of 0.0.0.0 mask 0.0.0.0 with the ip of my internet firewall to gain internet access on both switch.

  • Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? Difference between Enterprise and SE?

    We’re seeing the following issue: sql - Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? - Stack Overflow (posted by a colleague of mine) and are curious to know if this behaviour is due to a difference between standard and enterprise, or could we doing something else wrong in our DB config.?
    We have also reproduced the issue on the following stacks:
    Oracle SE One 11.2.0.3 (with Spatial enabled)
    Redhat Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    11.2.0.3.0 Standard Edition and 11.2.0.4.0 Standard Edition (both with Spatial enabled)
    Microsoft Windows Server 2003R2 Standard x64 Edition
    However, the SQL works fine if we try it on Oracle 11.2.0.3.0 *Enterprise* Edition.
    Any help or advice would be much appreciated.
    Kindest Regards,
    Kevin

    In my experience sdo_filter ALWAYS uses the spatial index, so that's not the problem. Since you did not provide the explain plans, we can't say for sure but I think yhu is right: Standard Edition can't use the bitmap operations, and thus it'll take longer to combine the results of the two queries (because the optimizer will surely split this OR up in two parts, then combine them).
    BTW: when asking questions about queries here, it would be nice if you posted the queries here as well, so that we do not have to check another website in order to see what you are doing. Plus it will probably get you more answers, because not everyone can be bothered to click on that link. It would also have been nice if you had posted your own answer on the other post here as well, because my recommendation would have been to use union all - but since you already found that out for yourself my recommendation would have been a little late.

  • Satellite L650: Some combinations with the FN button do not work on W7x64

    Hello,
    System
    <h3>Satellite L650-1KU</h3>Part number
    <h3><span class="partNo">PSK1LE-01700MRU</h3>
    I have install Windows by myself - this laptop haven't any OS from factory.
    Installed Windows 7 x64, all drivers and utilites from Toshiba driver site for windows 7 x64 accessible for my laptop model.
    I have no any unknown devices in Windows Device manager, all drivers installed and all hardware components woks fine i.e. wifi or bluetooth or web camera.
    But I still can't use some of keyboard combinations with Fn button. Not all, just five combinations do not work: Fn+F2 power modes, Fn+F4 hibernate, Fn+1,2 zoom and Fn+F8 wirelles devices.
    From search I have found only mentions about Fn+1,2 zoom - this funtion provide some util named Toshiba Zoom but on download page no any Toshiba Zoom for my laptop model and W7.
    Looks like there must be installed some additional utils from vendor for handling this combinations but I cant find any additional info or soft on driver download page.
    May be there are some utils what shold be located in lists of drivers/soft for 32 bit windows and it will be fine for 64 bit one?
    All combinations which works fine like volume +- Fn+3 Fn+4 or mute Fn+ESC does not shows any popus at moment of pressing, just <span class="short_text"><span class="hps">perform <span class="hps">its <span class="hps">function <span class="hps">without any indication.
    Dear users and support, can you help me what I should install from additional utils to provide support for combinations Fn+F2 power modes, Fn+F4 hibernate Fn+1,2 zoom and Fn+F8 wirelles devices?
    Message was edited by: Gimli_r

    Have you installed the Toshiba Value Added Package?
    Have a look on the Toshiba support/downloads website. Ensure you install the Win7 64bit version of TVAP designed for the L650 series.
    Updating the BIOS may also help.

  • Some keys don't work in combination with Shift

    Okay  so I have the Pavilion Sleekbook  15-b011nr 
    Serial Number:   [Personal Information Removed]
    Product Number:   C6N92UA
    and today I noticed certain keys don't work in combination with the left Shift for example, Shift+S (both left and right), Shift+M, Shift+Z, Shift +X, Shift+C don't work, shift+F does work but gives me this FV. same with j it gives me JM instead. I installed an updated bios, ran a diagnostic test using F2 and under the compenant test for the keyboard it failed and gave me this
    keyboard test failed
    failure Id # U375BD-6m96P5-MFPX1F-G03B03 
    product id # C6N92Ua#aba
    now while trying to type all this I found other letters now working as well as me not being able to input the semicolon with either shift key. frustrating since I got this laptop in June so it's still under warranty. Has anyone else encountered this problem and if so how do i fix mine? I'm pretty tech savvy so feel free to let me know, or is my only option is a replacement from HP?
    Thanks!

    Hi hzapata, I know that it work fine, after Load preset, but why You lost the default configs?
    Is this my question to Smit.

  • Why do I get "Evaluation Expired" message in MAX with Switch Executive

    Why do I get �Evaluation Expired� message in MAX with Switch Executive on a PXI rack, which has a �Ghosted� image from and identical PXI rack(no problem with this PXI rack), when logged in as USER in Windows2000, but not when logged in as a Local Administrator. When logged in as Administrator in Windows2000 running a TestStand sequence, using a �C� code action step calling the nise.dll is ok, but not when logged in as local user. The alias switch name is unknown.

    1.0.4.109 is a dll version number where as 1.0.2 is a NISE version number. The dll version number does not always line up with the product version number.
    NISE 1.0 has a dll version of 1.0.1.109
    NISE 1.0.1 has a dll version of 1.1.4.1
    NISE 1.0.2 has a dll version of 1.2.4.7
    NISE 2.0 has a dll version of 2.0.0.45154
    The best way to find the product number is to launch the application and click on Help and About. You NISE version is probably 1.0 and NISE 1.0.2 will fix your licensing problem.

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • Bug? Mailto: in combination with Office 2013 Spell Checking.

    Dear community,
    For one of our sollutions we use the mailto protocol to send a hyperlink which users can use to automatically open a predefined new-email-window.
    This works fine with Office Professional Plus 2010 [EN-US] (32bit) in combinatione with Microsoft Office Language Pack 2010 - Dutch/Nederlands (32bit).
    However, Office Professional Plus 2013 [EN-US] (32bit), in combination with Microsoft Office Language Pack 2013 - Dutch/Nederlands (32bit), crashes whenever the spellingcheck is started.
    The mailto-command we use to reproduce this problem is (enter command in Internet Explorer, open with Outlook):
    mailto:[email protected]?subject=%20Actie%20vereist&body=%5b2103162%2f335159076094968874376260057075247208793%5d
    During analyses we concluded:
    - Office Configuration Analyzer Tool 1.2 (Full Scan) did not find any related issues.
    - Spellchecker crashes while checking the text within the body.
    - Uninstalling Microsoft Office Language Pack 2013 - Dutch/Nederlands solves the problem, but obviosly, we want to keep the Dutch spelling check functionality.
    - Standard Englsh (U.S.) spellchecking functions without problems.
    - This problem is reproducable on any computer running Office Professional Plus 2013 [EN-US] in combination with the Dutch (Nederlands) spelling check. Tried multiple hardware configurations (Intel based) and multiple OS's (Windows 7 Enterprise
    (64bit), Windows 8.1 Enterprise (64bit), Windows 8.1 Pro (64bit). All with the same result.
    Is there way to solve this issue, without loosing Outlook 2013 as client and Dutch Spelling Check capabilities?
    Kind regards,
    Leon Kandelaars.

    Hi Steve,
    Thanks for your reaction.
    Q - Do you mean Outlook crashes when we click the Spelling & Grammar button under Review tab?
    A - Yeah, if you try to edit the mail and have 'check spelling as you type' activated, it wil crash as well.
    Q - If we copy the email body and paste it to a new email message, will this issue continue?
    Does this   issue happen with other Office 2013 programs? Please try to use 'spell check' in word and check if the same issue occurs.
    A - If you copy the generated body to a new email or Word 2013, the spelling check will in both cases crash the application.
    Q - In addition, we can also have a look at the event log to see if we can find anything useful.
    A - The crash generates an "Application" "Hang error". I've generated 2 (1 with Outlook, 1 with Word):
    Generated mail, spellcheck crashes Outlook:
    Log Name:      Application
    Source:        Application Hang
    Date:          10-3-2015 9:52:31
    Event ID:      1002
    Task Category: (101)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      xxxx.xxxx.xxx.nl
    Description:
    The program OUTLOOK.EXE version 15.0.4693.1000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: 87c
    Start Time: 01d05b0effb4e6f8
    Termination Time: 0
    Application Path: C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE
    Report Id: bf3cde85-c702-11e4-a8c6-485ab6f00dbb
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Hang" />
        <EventID Qualifiers="0">1002</EventID>
        <Level>2</Level>
        <Task>101</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-03-10T08:52:31.000000000Z" />
        <EventRecordID>14242</EventRecordID>
        <Channel>Application</Channel>
        <Computer>xxxx.xxxx.xxx.nl</Computer>
        <Security />
      </System>
      <EventData>
        <Data>OUTLOOK.EXE</Data>
        <Data>15.0.4693.1000</Data>
        <Data>87c</Data>
        <Data>01d05b0effb4e6f8</Data>
        <Data>0</Data>
        <Data>C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE</Data>
        <Data>bf3cde85-c702-11e4-a8c6-485ab6f00dbb</Data>
        <Binary>55006E006B006E006F0077006E0000000000</Binary>
      </EventData>
    </Event>
    Copied body to Word, spellcheck crashes Word:
    Log Name:      Application
    Source:        Application Hang
    Date:          10-3-2015 9:57:15
    Event ID:      1002
    Task Category: (101)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      xxxx.xxxx.xxx.nl
    Description:
    The program WINWORD.EXE version 15.0.4693.1000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: 964
    Start Time: 01d05b0fe8e683af
    Termination Time: 0
    Application Path: C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE
    Report Id: 6a7dd15f-c703-11e4-a8c6-485ab6f00dbb
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Hang" />
        <EventID Qualifiers="0">1002</EventID>
        <Level>2</Level>
        <Task>101</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-03-10T08:57:15.000000000Z" />
        <EventRecordID>14247</EventRecordID>
        <Channel>Application</Channel>
        <Computer>xxxx.xxxx.xxx.nl</Computer>
        <Security />
      </System>
      <EventData>
        <Data>WINWORD.EXE</Data>
        <Data>15.0.4693.1000</Data>
        <Data>964</Data>
        <Data>01d05b0fe8e683af</Data>
        <Data>0</Data>
        <Data>C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE</Data>
        <Data>6a7dd15f-c703-11e4-a8c6-485ab6f00dbb</Data>
        <Binary>55006E006B006E006F0077006E0000000000</Binary>
      </EventData>
    </Event>

  • Maintenance view subset P = S in combination with a non-key.

    We are trying to create a maintenance view with subset selection based
    on a non-key field. However no dialog screen will be created in order to
    select the right data (subset) for list display. We found a referenced
    note of this problem: sap note nr 624459 "subset field is not
    transferred" which is already available in the L7D system.
    -> Does the subset P = S only work in combination with a key field?

    Hi,
    I presume the P = S works for only Primary Key combinations. For eg: If you create maintenance view on MARD table and give values P= S to say only MATNR and WERKS fields. You generate the Table Maintenance. You get the filter for Material and Plant but there is a button F7 new selection .. if you press that you can select the third key field Storage Location as well. Presumably it works for the key fields alone.
    Cordially,
    Shankar Narayanan.

  • Change of sales order in combination with planned/released production order

    Hi Guru's,
    How do you deal with changes in the sales order in combination with planned orders and the scenario how to deal with release production orders?
    Can you tell me the SAP scenario, technically or reports or transactions or user exits, etc?
    Thank you in advance,
    Eric

    Here You have 2 scenarios
    1. Sales order changed at planned order stage
    In this case any chagne of quantity done in the sales order level will be taken care by the Planned order until it was not firmed .
    In case if it was firmed for the increased qty you will get a new planned order getting created.
    In case if it is reduced and if it was unfirmed it will get changed accordingly
    2. Sales order changed at production  order stage
    if the planned order was converted to production order change we can manually changes the respective Production order util no confirmation was done to any operations..
    is all this scenariors you are looking for if it is helpful let me know
    thanks..
    dskumar

  • Use of business partner functionality in combination with dual control

    Is there a generally agreed upon procedure to use the business partner functionality in combination with dual control? The problem is that when you block a business partner, the customer/ vendor master data aren't blocked automatically. You can then still use them in transactions, which leads to problems.
    So is there a way to make this work or a procedure to do this?
    Niels Vanwingh

    Thanks Masa,
    I did notice the 'Add external supplier from' in create supplier or bidder option. However there is a small catch and your experience may help.
    Let me explain the requirement and scenario here in SRM 7.
    We are implementing the Registration of Supplier scenario; both ROS and SRM are in same client. When a potential supplier registers themselves in the registration system, a BP number is created (an Internal number range is defined for this). After accepting the potential supplier in pre-select screen the purchaser has two options to transfer the potential supplier from the ROS system to SRM
    Option 1: He can select the accepted potential supplier from the supplier directory option and transfer the business partner to SRM. In this case the business partner number of the potential supplier is retained in SRM and a business partner with supplier and bidder tag is created. However the purchaser does not have any option to select which type of business partner he would like to create like supplier or bidder.
    Option 2: Purchase can go to create supplier or bidder option and choose the u2018Add external supplier formu2019 from the ROS system and create the business partner. The ROS business partner details are copied to the create supplier screen, but the purchaser have to provide an external business partner number for the supplier. This is because we have defined external number range for business partner for the vendors that are replicated from ERP to SRM.
    Objective is the ROS business partner should be retained in SRM with option to create as supplier and bidder and then manually create ERP supplier with same SRM BP number and map against SRM supplier.
    Is there any way we can achieve this?
    In SRM 5.5 with Manage business partner functionality we could achieve as system give us the option which business partner type we would like to create as well as retains the ROS BP number in SRM.
    Regards
    Sandeep

  • Hash tables in combination with data references to the line type.

    I'm having an issue with hash tables - in combination with reference variables.
    Consider the following:  (Which is part of a class)  -  it attempts to see if a particular id exists in a table; if not add it; if yes change it.   
      types: BEGIN OF TY_MEASUREMENT,
               perfid      TYPE zgz_perf_metric_id,
               rtime       TYPE zgz_perf_runtime,
               execount    TYPE zgz_perf_execount,
               last_start  TYPE timestampl,
             END OF TY_MEASUREMENT.
    METHOD START.
      DATA:  ls_measurement TYPE REF TO ty_measurement.
      READ TABLE gt_measurements WITH TABLE KEY perfid = i_perfid reference into ls_measurement.
      if sy-subrc <> 0.
        "Didn't find it.
        create data ls_measurement.
        ls_measurement->perfid = i_perfid.
        insert ls_measurement->* into gt_measurements.
      endif.
      GET TIME STAMP FIELD ls_measurements-last_start.
      ls_measurement->execount = ls_measurement->execount + 1.
    ENDMETHOD.
    I get compile errors on the insert statement - either "You cannot use explicit index operations on tables with types HASHED TABLE" or "ANY TABLE".      It is possible that.
    If I don't dereference the type then I get the error  LS_MEASUREMENT cannot be converted to the line type of GT_MEASUREMENTS.
    I'm not looking to solve this with a combination of references and work ares - want a reference solution.   
    Thanks!
    _Ryan
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Apr 22, 2010 4:43 PM

    I think it might work when you change it for
    insert ls_measurement->* into TABLE gt_measurements.
    For hashed table a new line here will be inserted according to given table key.
    Regards
    Marcin

  • Is an Air 13,3 (1.8 Core i7) in combination with an apple tv 2 (with xbmc) and a new time capsule a good combo to have a flawless mediacentre / network?

    Hi there,
    I ordered a mac Air and now looking into the possibilities to have a nice mediacenter / network setup.
    Already searched the net but mostly finding posts about older airs, apple tv and tc's. Some of them not very positive as in the tc in combination with the air being slow etc.
    What advise can you people give me in this?
    Any input is highly appreciated!

    Hi there,
    I ordered a mac Air and now looking into the possibilities to have a nice mediacenter / network setup.
    Already searched the net but mostly finding posts about older airs, apple tv and tc's. Some of them not very positive as in the tc in combination with the air being slow etc.
    What advise can you people give me in this?
    Any input is highly appreciated!

  • Using mod_alias in combination with dispatcher

    Hi all,
    In the example dispatcher configuration there is a setting called DispatcherDeclineRoot which has a comment saying: if turned to 1, request to / are not handled by the dispatcher, use the mod_alias then for the correct mapping.  Can anyone explain how to use mod_alias in combination with the dispatcher module?  For example, how can I configure it to serve static content for a specific alias and go to CQ for other requests?  Can someone provide an example configuration?
    Many thanks,
    Jan

    Hi,
    It still doesn't quite work the way I want it to...  Indeed, when you deny it in the dispatcher config, apache is trying to serve it.  However, apache is looking for the file under /var/www/html which is the docroot configured in the dispatcher config.  But my files are somewhere else, and there's an Alias defined for this in my apache config file.  For some reason apache is not using this alias definition, the dispatcher docroot setting seems to be taking precedence.  I tried several of the dispatcher settings (like DispatcherDeclineRoot and DispatcherUseProcessedURL) but to no avail.  The reason why I'm not just putting my static files under /var/www/html is because I don't want them to get mixed up with the CQ cache.  I want to be able to clear everything in the cache without touching these files I want to serve statically. 
    Any thoughts?
    Regards,
    Jabn

Maybe you are looking for

  • IDVD freezes when I try to burn a disk image.

    I have a MacBook Pro and am running 10.4.8. I used IMovie HD 6.03 to make a movie from digital photographs with audio. I used IDVD to create a DVD. When I burned the disk using IDVD 6.03, the DVD was pixelated. I read in a thread in the discussion on

  • Can't use "like" or "reply" after upgrading to IOS 8 on 3rd gen iPad

    I upgraded my 3rd Gen iPad Wifi to IOS 8, and later to 8.02 and now to 8.1.  I did a complete Restore, using iTunes, and then after that, restored from my back-up on my computer.  Just about everything is working great (NYTimes digital addition witho

  • Can I use my Upgrade in the Apple store instead?

    Wanted to know if I'm allowed to use my upgrade at the apple store since i was able to reserve one there?

  • Powerbook G4 17" startup problem

    Hello All, I purchased a laptop 9 months ago and am having problems with the startup recently. The laptop is not starting up immediately and I have to force the power shut-down several (3,4) times before the laptop responds and starts-up. Does anyone

  • Connectors and licensing

    Hello all, We are currently looking at the option to use SAP Portal and MS sharepoint. Each ones can be reciprocally producer and consumer. I still have somes questions about connectors and licensing fees. I estimate I can use WSRP to “share” web ser