How to read the .txt adfLib pot file to the model layer by using the relative path

Hello

In my application, I use the ExtendedDynamicFldTbl (extends weblogic.wtc.jatmi.DynamicFldTbl), which the manufacturer requires the field file path table as a parameter.

In the API, it is said that this name of path can be an absolute path, a relative path to the directory where Java has started, or a relative path that can be found as a resource on the classpath.

I have created this ExtendedDynamicFldTbl to the model layer project, placed the fild_tbl.txt in a separate package and pass the path relative to the DynamicFldTbl constructor.

Given my code below to get the instance of ExtendedDynamicFldTbl
package model.tuxedo;

public class ExtendedFldTbl  extends DynamicFldTbl
{

    private static ExtendedFldTbl extendedFldTblinstance = null;
    
    public ExtendedFldTbl(String tablePath, boolean flag)
    {
        super(tablePath, flag);
    }
    
    public static ExtendedFldTbl getInstance()
    {
        if (extendedFldTblInstance == null)
        {
            URL url = extendedFldTblInstance.class.getResource("resource/fldtbl.txt");
            if (url == null)
            {
                throw new RuntimeException("Tuxedo Service : fldtbl.txt is not found in the path 'model.tuxedo.resource' ");
            }
            extendedFldTblInstance = new ExtendedFldTbl (url.getPath(), true);
            String[] list = extendedFldTblInstance .getFldNames();
            System.err.println("fldtbl loaded. Total FML entries loaded = " + list.length);
        }
        return extendedFldTblInstance ;
    }
}
I just added the output of the build of the layer model to view the project of the layer and tested. It works fine and I am able to get the ExtendedFldTbl instance with all loaded fields. But rather than add dependencies, if I create an adfLibJar for the layer model project and you add to view the project of the layer, it does not work. It is not ablt to read the file of adf lib jar file.

Issues related to the:

1. How can I solve this?
2. Although I have kept the field text file table in the source of the project itself, when I read the url, it is
"C:/Documents and Settings/raguramanv/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/SampleWtc/3gkmt9/war/WEB-INF/lib/SampleWtc_Model_adflibSampleWtc1.jar!/model/tuxedo/resource/fldtbl.txt"
Instead of the physical directory, how can I use application in model layer context?


Thanks in advance

Rambeau

Hello

Try /adf/ or /afr/ in the URL. Then includes the ADF resource loader which is used to get the contents of a lib of the ADF. Take a look at the structure of ADF library where the file is located in. It should be in a directory with /adf in the folder structure

Frank

Tags: Java

Similar Questions

  • How to set the relative path for referrals?

    Hello

    I use FDK.

    I'm trying to work with cross references and I have the problem with the path name < XRefSrcFile >. Every time when I started using F_ApiSetString, it 's defined as an absolute path and I need to put it in the relative path.

    Someone has an idea how solve it?

    Kate

    Kate,

    I can't reproduce this behavior. When I have defined XRefFile as an absolute path, then save under MIFID, I see a path relative to the MIFID. The exception is if I specify an invalid path, FrameMaker retains the absolute path. I don't know what to say beyond that. Are you sure you set a valid path to a file?

    Russ

  • How to read the files on time capsule

    How to read the files on time capsule from iPad?

    Thank you

    Using an application like navigation on the iPad. More info here:

    Stratospherix - FileBrowser - overview

  • How to read/write tdms 2.0 files with the TDM C DLL?

    Hello

    How to read/write tdms 2.0 files with the TDM C DLL?

    How consequently the datas in interlaced with the TDM C DLL mode?

    Thank you

    Confirmation: TDM C DLL always wrote the file in TDMS version 2.0.

  • How to read the VI Analyzer config file?

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    Kaspar says:

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    If you have VI Analyzer installed, you can load the configuration file and look at the section select the Tests. There is a test for the maximum size of front under front-> User Interface. The default value is the resolution of the current monitor of the PC (including multiple monitors). You can change to the desired option.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to read the data of BLOB and save to the file system

    Hi friends.

    I have called DEMO table there image stored as a BLOB. now my requirement is to know how to read the data of BLOB and saved in the file system. is there a procedure
    to read the blob object and stored in the file system. pls suggest me with an example.
    Thank you

    HI - don't know what version you have, but have a read through this:

    http://www.Oracle-base.com/articles/9i/ExportBlob9i.php

    Hoek link is to import the blobs in the db, it is export, to a file.

  • How to read the contents of the attachments to the record listener?

    Hi all

    We have a blackberry user interface application that implements FolderListener. The messagesAdded(FolderEvent e) public void in the record listener method is called whenever a new message arrives on the device.

    Now, there are some emails that will also spare.

    Can someone tell me how to read the contents of the attachment?

    I can read correctly the content of the body of the email.

    Our code to handle the arrival of e-mail for your reference is mentioned below.

    public class MyUIApplication extends UiApplication implements FolderListener
    {
        public void messagesAdded(FolderEvent e) {
            Message orginalMessage = e.getMessage();
    
            Folder messageFolder = orginalMessage.getFolder();
    
            if (e.getMessage().isInbound() == true) {
    
                String sender = orginalMessage.getFrom().toString();
                String subject = orginalMessage.getSubject();
                String body = orginalMessage.getBodyText();
    
                String attachmentContent = ""// Read atachment content here?
    
                // some more code
            }
        }
    }
    

    Any help in this regard will be appreciated.

    Thank you.

    There is no way to prevent a menu item to be added to an AttachmentHandler.  When a user clicks your menu item will be called the run method.

    If you have registered an AttachmentHandler for your type of attachment and the prefix the file name of the attachment with x-rimdevice, you would be able to access its contents of in a FolderListener.

  • How to read the papers of ucs tech support

    Hi team

    Can you please tell me how to read the newspapers of ucs tech support to find out hardware problems

    Greetings.

    Your question is probably something that is difficult to address in this format.

    Hardware and firmware is so rapidly changing, so are the various capabilities of diagnosis (and how, when, where they write to newspapers).  I think that it would be virtually impossible to maintain a full guide updated content of tech support file and how to interpret them.

    That being said, there are some more frequent for both blade/UCSM and stand alone C series servers such as SALT that connects usually record the major mistakes such as chess DIMM, HD failures, etc.

    There are general troubleshooting guides such as http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ts/guide/UCSTroubleshooting/UCSTroubleshooting_chapter_0111.html

    There are also courses that correspond to the review DCUCT 642 - 035 http://www.cisco.com/c/en/us/training-events/training-certifications/exams/current-list/dcuct.html entering some details by looking at newspapers, among other things.

    Is there some hardware problems that you try searching?  You have some sort of polling app that parses the files you are trying to Setup alerts for, etc.?

    Thank you

    Kirk

  • How to read the status of User1 DIP-switch with a cRIO FPGA chassis?

    How to read the State of the DIP switches on a FPGA cRio chassis?

    I work with a cRIO 9022... My idea is to put the system in "service" mode with USER1 switch to IT and communicate with the FPGA via the FPGA - GUI (VI) on the host computer instead via the RT module that is used in normal conditions.

    Any ideas? Unfortunately, I don't have an unused channel on the left... .and (as I know) cannot use the interface RS232 of FPGA.

    Many thanks in advance,

    Luke

    Hi, this is the correct information. You cannot read the FPGA of DIP-switch status. The only thing you could do is to use the function of Reading Switch.vi located under the range of functions-> real-> utilities RT time

    It's how you probably know side host RT and not the FPGA.

    Cordially Virginia

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • How to read the host name or serial number cRIO locally

    I have not worked with cRIO and decided to ask for help.  (o).

    I don't know about the screws that allow to access this information from a connected Windows machine, however, I want to retrieve and display this information on remote panels.  But I cannot determine how to read the cRIO hostname or the serial number of the software running on the cRIO?

    Thanks for the help.

    James

    This could help.

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • How to read the color table in a subvi?

    How to read the color table in a subvi? Is it made by a reference to the table or with a global variable? For a better understanding of the problem, I added to vi. Run the "run.vi." I want to see

    the background color of the table "run.vi" in the subvi called "read color.vi".

    How can I do?

    Thanks in advance

    Norick

    pop up on the wire table refernece and establishes 'control '. Add this control to the icon of the sub - VI decision-making and then wire ref of the appellant to this Terminal VI so the calling VI move the ref to the Subvi.

    Ben

  • How to read the 32-bit depth .bmp image

    How to read the image, 32-bit depth using LabVIEW .bmp?


Maybe you are looking for

  • Satellite A30 151 Modem Driver help

    Hi friends,? have a problem with the installation of my modem for my Toshiba drivers. ? Download the drivers and install them, but the problem is only on my Sistem-material fixed yellow question mark.? don't know my modem properties so has not found

  • What is the difference between Tecra M11-h-13 and M11 - 10F?

    Hello Looking at the web page of Toshiba, I can't tell the difference between the Tecras M11-h-13 and M11 - 10F (besides the ~ 200 euros of cost difference).Can someone please enlight me? I see that there is a difference in the wireless card intel, b

  • Multithreading: doesn´t IUR update

    Hello Thanks to this and my main table (UIR) functions: CmtScheduleThreadPoolFunction (DEFAULT_THREAD_POOL_HANDLE, Myfunction, (void *) & DataMyfunction & threadID);CmtWaitForThreadPoolFunctionCompletion (DEFAULT_THREAD_POOL_HANDLE, threadID, OPT_TP_

  • How can I change my password for my emial?

    I think someone has my password for my email account and I want to change my password.

  • variable error message pop-up Temp together

    This happens when I use microsoft office 2007