Reloading external resource-bundle

Hi,
Version : Jdev 11.1.1.4.0 & 11.1.1.5.0
I was wondering , if there is any possible way to reload faces-config.xml.
My Scenario's :
*1.*
I have configured a bundle in faces-config.xml
     <resource-bundle>
      <base-name>test.backing.loadMyBundle</base-name>
      <var>rbMyBundle</var>
    </resource-bundle>and my bundle class loads data from an external propertyFile
public class loadMyBundle extends ListResourceBundle {
  protected Object[][] getContents() {
      PropertyResourceBundle resource= null;
        try {
            File file = new File("C:\myBundle.properties");
            fileInputStream = new FileInputStream(file);
            resource = new PropertyResourceBundle(fileInputStream);
        if (resource != null) {          
                 filling data from loaded property file into contents
        } catch (IOException ioException) {
        } catch (Exception exception) {
        return contents;
}This getContents method is just called once even if I have changed a label value, where as my scenario to call "getContents" method is called when the resource file is changed or once per session atleast.
*2.*
I tried using loadBundle
<f:loadBundle basename="test.backing.loadMyBundle"
                             var="rbMyBundle"/>but this refers & loads the property file again & again.
<br>
My requirment :
Scenario 1. Is there any way, to reload faces-config.xml every time the session is created. So that new property file is loaded.
or Scenario 2. Is there any way, I can cache the already loaded bundle & reuse it instead of making a IO call to load file.
Thanx in advance.
-Neha..

Hi,
maybe these links will help you
http://technology.amis.nl/2012/07/11/adf-11g-label-modifications-and-persisting-resource-bundle-changes/
http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/

Similar Messages

  • How to cache external resource bundles?

    Hi,
    I am using Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 on Windows 7.
    We have used external resource bundle for our ADF application using loadbundle which extends java.util.ListResourceBundle.
    Is there any way to cache these external resource bundles? and If yes when/how it will get cached?
    We have found following link:
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendixa.htm (Section: A.11 adf-config.xml)
    But not sure if it will help for external resource bundles.
    Any pointers will be highly appreciated.
    Thanks
    Vishal

    Hi again.
    To achieve your requeriment you can try next solutions:
    - Add a external path where you are going to let your Resource Bundle in your Manage Server Classpath. For example: /language (into this folder put your baseName folder's and properties file).
    - Build your custom Java Class to load Resource Bundle in a configured classpath or path.
    - Try to do a similar solution like WebCenter Spaces copying your resource bundle in MDS path and updating/getting it with WSLT scripts.
    Regards.

  • Is there a way to 'reload' a Resource Bundle?

    Dear All,
    Use Case:
    I confgured a bundle in my faces-config.xml
    <resource-bundle>
      <base-name>com.test.MyBundle</base-name>
      <var>myBundle</var>
    </resource-bundle>..and my Bundle class loads data from a database table. So instead of using properties file, I saved the labels in a table
    using this code.
    public class MyBundle extends ListResourceBundle {
        public Object[][] getContents() {
              Object[][] resource;
            ResourceLabels lView = ADFBCUtil.getAppModule().getResourceLabelViews();
                   More codes
            return resource;
    }Now here goes my problem... supposed somebody changed the label in the DB table and wanted that to reflect to the new label.
    Is there a way to re-initialize my bundle?
    What happens is that, I need to restart the application so that it would read the table again. As I notice, the ADF app reads this
    bundle only once during startup
    Any Hints. Thanks.
    JDEV 11G 11.1.1.5

    vinod_t_krishnan wrote:
    why cant you do this.. operation in the button click.. so that the binding or the underlying objects gets updated..
    ADFBCUtil.getAppModule().getResourceLabelViews();
    Hi Vinod,
    That isn't what I am trying to do. Let me try to explain my use case again.
    1. I configured a Resources bundle in faces-config.xml
    2. When my application starts, it reads the configured bundle.
    3. Since I configured my bundle to load contents from database, it will query my table once during startup. The list of labels/messages are now in my bundle.
    4. User change something in my label(s) table and he/she want's it to be displayed automatically in the UI
    5. So he/she should be able to reload/reinitialize my bundle. This is where I am having trouble
    I am thinking of having an ADMIN screen where there is a button to click that will reload/reinitialize my bundle.
    But my problem is how do I tell my ADF app to reload the bundle again?
    A quick alternative is to restart my application since this will read the resource bundle again during startup. But this is not what I wanted.

  • Resource bundle in content repository

    Hi,
    We have a weblogic portal application. Client wants the flexibility to be able to change the text (labels, paragraphs) without any help from IT i.e no releases or redeployment should be required.
    For static pages htmls have been moved to content repository and that helps.
    However for multilingual jsp labels, headers etc. should we add the resource bundle files(.properties files) to content repository?
    Please suggest. We are using netui tags in UI.

    What are you using to show the message i18n or JSTL? i18n tag libraries have a timed technique of reload. ResourceBundles cant be reloaded (directly). search for a snippet on the web which shows how to reload ResourceBundles.
    should we add the resource bundle files(.properties files) to content repository?So long as you have a way to push the files to all managed servers , store it wherever you want.
    While this is an idealistic scenario of business can update all content consider what happens when a business user changes the key by mistake, makes a formatting error etc that can potentially break your page.

  • [svn:fx-trunk] 11169: Adding placeholder ASDoc for release engineering to build a resource bundle to accompany playerglobal .swc.

    Revision: 11169
    Author:   [email protected]
    Date:     2009-10-26 15:22:16 -0700 (Mon, 26 Oct 2009)
    Log Message:
    Adding placeholder ASDoc for release engineering to build a resource bundle to accompany playerglobal.swc.
    QE notes: N/A
    Doc notes: N/A
    Bugs: N/A
    Reviewer: David Z
    Tests run: N/A
    Is noteworthy for integration: No
    Added Paths:
        flex/sdk/trunk/frameworks/projects/playerglobal/
        flex/sdk/trunk/frameworks/projects/playerglobal/build.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/de_DE/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/de_DE/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/__Global__.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.accessibility.xm l
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.data.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.desktop.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.display.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.errors.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.external.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filesystem.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filters.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.geom.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.html.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.media.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.drm.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.printing.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.profiler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.sampler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.security.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.system.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.engine.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.ui.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.utils.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.xml.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/packages.dita.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/empty.properties
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/fr_FR/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/fr_FR/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ja_JP/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ja_JP/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ru_RU/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ru_RU/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/zh_CN/
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/zh_CN/docs/
        flex/sdk/trunk/frameworks/projects/playerglobal/src/
        flex/sdk/trunk/frameworks/projects/playerglobal/src/Empty.as

    Thats good news.

  • Message catalogs vs. straight resource bundles

    Hello,
    I'm just starting to investigate someof WebLogic's internationalization features,
    and I'm trying to decide what the benefits would be for using the i18n features
    instead of straight Java resource bundles.
    Basically, I'm looking for a way to externalize all of our error messages, exceptions,
    and GUI elements (like text labels). This will be a Struts application, using
    Struts validation. Internationalization itself is a goal, but it is not the driving
    factor for externalizing all of our message strings.
    I'm seeing to benefits to using the WebLogic i18n functionality. First, all of
    the "resource strings" are specified in an XML document that can be validated
    and is possibly easier to maintain. Second, accessing these strings becomes a
    call to individual methods of a automatically generated TextFormatter class, thereby
    freeing client code from having to directly access resource bundles.
    Are there any other benefits to using this? I'm just wondering if these benefits
    are really worth it, or if it's overkill.
    Thanks for the help.
    - Jeff

    http://forum.java.sun.com/thread.jspa?threadID=677420&messageID=9483204
    go through this link...

  • Resources Bundle question

    I am using the following code to get the property file
    try {
    Res = ResourceBundle.getBundle("test.resources.uiRes", pLocale);
    } catch (MissingResourceException e) {
    System.out.println("Unqualified resource bundle name");
    where pLocale is a parameter.
    But it seems once the resource is load, I cannot reload the resource again in different locale. Anyone can give me some hints?
    Thanks

    Hmmm.... interesting - thanks for sharing it with us!
    I'm wondering if the main ResourceBundle you're using will only ever end up with the default system Locale, simply because you're never defining m_resource_bundle's Locale when you're creating it. Calling this.setLocale() the way you are certainly has the potential to be taking care of this, but whether or not it actually does is something I'm not sure of. Certainly one I'll have to try though!
    I have seen SwingUtilities.updateComponentTreeUI() work to an extent. If you're using a special font, resetting the font on all components before using this is often a very good idea, but it still doesn't force absolutely everything to repaint.
    One final thing to bear in mind for the newbies. If you're switching locales only, and not ResourceBundles, all the dates, times, currencies and other i18n data that Java carries within its i18n.jar will update automatically. You'll often need to set the font as mentioned above to get it all to display, but the way it all changes with one simple setLocale() call is excellent. If only ResourceBundles did the same!
    Hope that helps!
    Martin Hughes

  • IPSEC VPN clients can't reach internal nor external resources

    Hi!
    At the moment running ASA 8.3, with fairly much experience of ASA 8.0-8.2, I can't get the NAT right for the VPN clients.
    Im pretty sure it's not ACL's, although I might be wrong.
    The problem is both VPN users can reach internal resources, and vpn users cant reach external resources.
    # Issue 1.
    IPSEC VPN client cannot reach any local (inside) resources. All interfaces are pretty much allow any any, I suspect it has to do with NAT.
    When trying to access an external resource, the "translate_hits" below are changed:
    Auto NAT Policies (Section 2)
    1 (outside) to (outside) source dynamic vpn_nat interface
       translate_hits = 37, untranslate_hits = 11
    When trying to reach a local resource (10.0.0.0/24), the translate hits below are changed:
    5 (inside) to (outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
        translate_hits = 31, untranslate_hits = 32
    Most NAT, some sensitive data cut:
    Manual NAT Policies (Section 1)
    <snip>
    3 (inside) to (server) source static NETWORK_OBJ_1.2.3.0_29 NETWORK_OBJ_1.2.3.0_29
        translate_hits = 0, untranslate_hits = 0
    4 (inside) to (server) source static any any destination static NETWORK_OBJ_10.0.0.240_28 NETWORK_OBJ_10.0.0.240_28
        translate_hits = 0, untranslate_hits = 0
    5 (inside) to (outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
        translate_hits = 22, untranslate_hits = 23
    Auto NAT Policies (Section 2)
    1 (outside) to (outside) source dynamic vpn_nat interface
        translate_hits = 37, untranslate_hits = 6
    Manual NAT Policies (Section 3)
    1 (something_free) to (something_outside) source dynamic any interface
        translate_hits = 0, untranslate_hits = 0
    2 (something_something) to (something_outside) source dynamic any interface
        translate_hits = 0, untranslate_hits = 0
    3 (inside) to (outside) source dynamic any interface
        translate_hits = 5402387, untranslate_hits = 1519419
    ##  Issue 2, vpn user cannot access anything on internet
    asa# packet-tracer input outside tcp 172.16.32.1 12345 1.2.3.4 443
    Phase: 1
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    MAC Access list
    Phase: 2
    Type: ACCESS-LIST
    Subtype:
    Result: DROP
    Config:
    Implicit Rule
    Additional Information:
    Result:
    input-interface: outside
    input-status: up
    input-line-status: up
    Action: drop
    Drop-reason: (acl-drop) Flow is denied by configured rule
    Relevant configuration snippet:
    interface Vlan2
    nameif outside
    security-level 0
    ip address 1.2.3.2 255.255.255.248
    interface Vlan3
    nameif inside
    security-level 100
    ip address 10.0.0.5 255.255.255.0
    same-security-traffic permit inter-interface
    same-security-traffic permit intra-interface
    object network anywhere
    subnet 0.0.0.0 0.0.0.0
    object network something_free
    subnet 10.0.100.0 255.255.255.0
    object network something_member
    subnet 10.0.101.0 255.255.255.0
    object network obj-ipsecvpn
    subnet 172.16.31.0 255.255.255.0
    object network allvpnnet
    subnet 172.16.32.0 255.255.255.0
    object network OFFICE-NET
    subnet 10.0.0.0 255.255.255.0
    object network vpn_nat
    subnet 172.16.32.0 255.255.255.0
    object-group network the_office
    network-object 10.0.0.0 255.255.255.0
    access-list VPN-TO-OFFICE-NET standard permit 10.0.0.0 255.255.255.0
    ip local pool ipsecvpnpool 172.16.32.0-172.16.32.255 mask 255.255.255.0
    ip local pool vpnpool 172.16.31.1-172.16.31.255 mask 255.255.255.0
    nat (inside,server) source static NETWORK_OBJ_1.2.3.0_29 NETWORK_OBJ_1.2.3.0_29
    nat (inside,server) source static any any destination static NETWORK_OBJ_10.0.0.240_28 NETWORK_OBJ_10.0.0.240_28
    nat (inside,outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
    object network vpn_nat
    nat (outside,outside) dynamic interface
    nat (some_free,some_outside) after-auto source dynamic any interface
    nat (some_member,some_outside) after-auto source dynamic any interface
    nat (inside,outside) after-auto source dynamic any interface
    group-policy companyusers attributes
    dns-server value 8.8.8.8 8.8.4.4
    vpn-tunnel-protocol IPSec
    default-domain value company.net
    tunnel-group companyusers type remote-access
    tunnel-group companyusers general-attributes
    address-pool ipsecvpnpool
    default-group-policy companyusers
    tunnel-group companyusers ipsec-attributes
    pre-shared-key *****

    Hi,
    I don't seem to get a reply from 8.8.8.8 no, kind of hard to tell as it's an iphone. To me, all these logs simply says it works like a charm, but still I can get no reply on the phone.
    asa# ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=0 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=0 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=256 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=256 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=512 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=512 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    asa# show capture capo
    12 packets captured
       1: 08:11:59.097590 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       2: 08:11:59.127129 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       3: 08:12:00.103876 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       4: 08:12:00.133293 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       5: 08:12:01.099253 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       6: 08:12:01.127572 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       7: 08:12:52.954464 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       8: 08:12:52.983866 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       9: 08:12:56.072811 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
      10: 08:12:56.101007 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
      11: 08:12:59.132897 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
      12: 08:12:59.160941 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
    asa# ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=0 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=0 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=256 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=256 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=512 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=512 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=768 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=768 len=28
    asa# show capture capi
    8 packets captured
       1: 08:15:44.868653 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       2: 08:15:44.966456 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       3: 08:15:47.930066 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       4: 08:15:48.040082 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       5: 08:15:51.028654 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       6: 08:15:51.110086 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       7: 08:15:54.076534 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       8: 08:15:54.231250 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
    Packet-capture.
    Phase: 1
    Type: CAPTURE
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    MAC Access list
    Phase: 2
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    MAC Access list
    Phase: 3
    Type: ROUTE-LOOKUP
    Subtype: input
    Result: ALLOW
    Config:
    Additional Information:
    in   172.16.32.1     255.255.255.255 outside
    Phase: 4
    Type: ACCESS-LIST
    Subtype: log
    Result: ALLOW
    Config:
    access-group inside_access_in in interface inside
    access-list inside_access_in extended permit ip any any log
    Additional Information:
    Phase: 5
    Type: IP-OPTIONS
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 6
    Type: INSPECT
    Subtype: np-inspect
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 7     
    Type: DEBUG-ICMP
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 8
    Type: NAT
    Subtype:
    Result: ALLOW
    Config:
    nat (inside,outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
    Additional Information:
    Static translate 10.0.0.72/0 to 10.0.0.72/0
    Phase: 9
    Type: HOST-LIMIT
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 10
    Type: VPN    
    Subtype: encrypt
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 11
    Type: ACCESS-LIST
    Subtype: log
    Result: ALLOW
    Config:
    access-group outside_access_out out interface outside
    access-list outside_access_out extended permit ip any any log
    Additional Information:
    Phase: 12
    Type: FLOW-CREATION
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    New flow created with id 5725528, packet dispatched to next module
    Result:
    input-interface: inside
    input-status: up
    input-line-status: up
    output-interface: outside
    output-status: up
    output-line-status: up
    Action: allow

  • File not found, Missing resource bundle

    Hi
    I have a problem in accessing files (XML and Resource bundles) in Java projects. I used to access these files in WD Java. The same piece of code does not work here.
    e.g. When I create a new file object by providing the path name I get a file not found exception. The file exists in my package and I call it this way:
    File f = new File("file.txt"); then in an input stream but it doesnt work. However in a J2EE project the same code works.
    Similarly the resouce bundle never seems to work even if I give the fully classified class name for the property file. I can access property files in WD Java with ease. I understand that the root path changes and hence the problem. How should I solve it? Is there an elegant way which makes it work in all cases? Please throw some light on the root path for these projects. Thank you.
    regards
    LNV
    Edited by: vln on Jan 16, 2008 9:34 AM

    You should be using
    <b>this.getClass().getResourceAsStream(filePath)</b>
    which will return you an InputStream.
    Check the JDK documentation for the respective methods in java.lang.Class and java.lang.ClassLoader.
    HTH!
    \-- Vladimir

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • Resource bundle in shared library?

    Is it possible to create a resource bundle in a shared library so you can use the same resource bundle in different application?
    We are creating different ADF application and each of them should use the same resource bundle.
    I tried creating a new project that only contains the resource bundle and then add this to my jspx page:
    <c:set var="res"
             value="#{adfBundle['general.resources.generalBundle]}"/>When i do this, he can't find any entries. When i change the project properties and configure to use a single bundle for the entire project, this works.
    How can i share a bundle so each application does not need to create or copy/paste the bundle?
    Is it possible to deploy the bundle as a shared library? Even if their is nothing else, not even a single java class?
    Edited by: Yannick.O on Jul 28, 2010 10:45 AM

    Try to create a JAR with the resource file in it (under /META-INF) and add it as a library in your project.
    If it does not work, try to create a faces-config.xml file inside that directory that declares the resource file.
    I think it gets merged at runtime with the config of your application and resource bundle should be available.

  • How to deal with resource bundle in multiple applications system

    Hi all,
    I'm building new system depend on the method of
    one common model with multiple applications for the view objects
    my JDeveloper version 11.1.2.3
    my Question
    How can i merge the resource bundle for these applications
    as in the common model exists file for resouce bundle
    and each other applications contains resource bundle files how can i merge all these file in one Resource bundle file ?
    Edited by: 985756 on Apr 2, 2013 12:39 AM

    Hi,
    Please check anerjusb blog for your answer
    Hoping this will help you.
    http://andrejusb.blogspot.in/2009/12/reusing-resource-bundles-from-different.html
    Thanks & Regards,
    Vikas

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

  • How to enumerate keys in Resource Bundle?

    Is there any way to enumerate all the keys (but not the values) of resource bundle?

    If rb is a ResourceBundle, you can enumerate the keys and values in its 'content' property with the following code:
    for (var key:String in rb.content)
        var value:* = rb.content[key];
    Gordon Smith
    Adobe Flex SDK Team

  • Problem while configuring OSB External Resource in BPM Studio

    Hi
    I have just started using the BPM Studio 10.1.3. I want to invoke my Oracle Service Bus proxy services from one of the activities in the BPM Process flow.
    I created an external resource of type Oracle Service Bus and while trying to catalogue the OSB Component I found that only my WSDL Web Service proxy services with http transport protocol are available to be catalogued. I couldnt find the proxy services of the type Messaging Service, Any SOAP Service, Any XML Service created on Oracle Service Bus.
    Am I missing anything in the configuration or is it that BPM Studio does not support these protocols(jms,mq etc).
    Also, in the Studio Reference there is a mention of Oracle BPM(native) transport that BPM supports for cataloguing OSB Components apart from http and https.
    What is this protocol and how and where can i configure the same to help me catalogue the other OSB proxies?

    Hi
    I have just started using the BPM Studio 10.1.3. I want to invoke my Oracle Service Bus proxy services from one of the activities in the BPM Process flow.
    I created an external resource of type Oracle Service Bus and while trying to catalogue the OSB Component I found that only my WSDL Web Service proxy services with http transport protocol are available to be catalogued. I couldnt find the proxy services of the type Messaging Service, Any SOAP Service, Any XML Service created on Oracle Service Bus.
    Am I missing anything in the configuration or is it that BPM Studio does not support these protocols(jms,mq etc).
    Also, in the Studio Reference there is a mention of Oracle BPM(native) transport that BPM supports for cataloguing OSB Components apart from http and https.
    What is this protocol and how and where can i configure the same to help me catalogue the other OSB proxies?

Maybe you are looking for

  • I can't find the tab in new itunes to synch my contacts.

    I can't find the tab in new itunes to synch my contacts in Itunes 11.1.3. How should I do it? I can't find the info button as stated in the guide.

  • ACT 17 Premium will not launch

    Has this been working fine, until recently?Where is the location of the database?Have you tried manually browsing to the location of the database form a client computer? Is the database location still available to the client computers with the correc

  • Today is the day the preloading will work! Help...

    I've tried and tried to find different ways to make the preloading work correctly but there is always something that doesn't seem to work with each way. Could someone dumb it down for me and help me understand how to make this work. I've read everyth

  • Contacts: where is the local data file saved?

    Where does Mountain Lion store the local data file for the Contacts app?

  • How to make a calligram from a photograph

    Hi. Merry Christmas to all. I'm searching a way to do a calligram ''outlining" a photo that I downloaded and opened with Illustrator (I'm using CS 5.1). The photo represents an human shape so it's pretty difficult to sorrund the image with simple sha