X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Feb 2008 04:03 AM by  anon
IDL Java Bridge -- Packaging class files and IDL files in a single war (or jar) file ?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
06 Feb 2008 04:03 AM
    Hi all, I'm currently developing web-services for some IDL applications. To do so, I'm using IDL's (java) bridge technology. Besides, I store the IDL files to which these web-services provide access at a separate location, which has been added to the IDL_PATH. So far so good. A disadvantage of this approach, however, is that I can't package one .war file that contains the class files of the web-service as well as the IDL files that will get accessed through this service. Instead, I first need to manually copy these IDL files to the IDL_PATH location before I can deploy my war files on the application server. So my question is pretty simple. Is there a way to package java class files and IDL files together in a single war file, and locate these IDL files from within the bridging java files using a relative path definition (so without the need to adjust the IDL_PATH)? Thanks in advance, Nico Janssens.

    Deleted User



    New Member


    Posts:
    New Member


    --
    06 Feb 2008 04:03 AM
    Probably I am not understanding your question, because I always think of .war files as packaging just '.class' code. But, if a .war archive can also package '.txt' files, then it seems to me the problem of deploying IDL '.pro' files (which also are just text files, should be trivial. Thus, you make the whole directory tree on your web server where '.war' files are located part of your IDL search path, e.g. setenv IDL_PATH ":+/home/webserver/" or corresponding syntax for 'bash' or DOS shells. Now any Java web project that you deploy in the "/home/webserver/' directory tree, which has the capability of deploying a named text file can be insured of deploying it in the IDL search path. Have I misunderstood something? James Jones
    You are not authorized to post a reply.