IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Where to store web resource files

  • 1.  Where to store web resource files

    Posted 07/14/07 12:49 PM

    I’m writing services which create and output HTML files for display in a browser. I need to add some gif files as well as a couple of javascript .js files but I don’t know where to store these resources on the filesystem. I created a \web directory directly under the packages but still my service cannot find the files.

    All suggestions greatly appreciated,
    Harry


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Where to store web resource files

    Posted 07/14/07 05:18 PM

    You can store them under the IntegrationServer\packages\yourpackage\pub or IntegrationServer\web folder…

    HTH,
    RMG


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Where to store web resource files

    Posted 07/14/07 09:17 PM

    I added the .js files to IntegrationServer\packages\OneTouchSubmitter\pub and I created another directory (…\pub\images) to hold the .gif files. I then reloaded the package and added a simple to the flow service to see if the image was found. No such luck. I only see the red X in the browesr.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: Where to store web resource files

    Posted 07/15/07 06:40 AM

    try the above one, Because In webMethds IS present working directory always goes upto /IntegrationServer.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Where to store web resource files

    Posted 07/16/07 02:24 PM

    I’ve tried numerous variations of the img tag shown above and have tried putting the image into the two different locations (the package pub directory and the web folder under IntegationServer) - still no luck. Interestingly, I can get the Google image to display by inserting <img src="http://www.google.com/intl/en_ALL/images/logo.gif.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 6.  RE: Where to store web resource files

    Posted 07/16/07 03:18 PM

    After you put the image,did you also tried reload the package or restarting IS?? sometimes restart option works.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: Where to store web resource files

    Posted 07/16/07 05:12 PM

    Yes, I did both. First a package reload then a complete restart of IS.

    In the interest of time I’ve decided to do away with the graphic and inline all javascript code. Things are working nicely now.

    Thanks to everyone for the help and suggestions. I’ll have to revisit this in the furutre.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 8.  RE: Where to store web resource files

    Posted 07/16/07 06:39 PM

    You’ll probably need to set the ACL for the directory to allow anonymous access to the files within.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 9.  RE: Where to store web resource files

    Posted 07/16/07 10:02 PM

    Use the following and it should work.

    • Dinakar.

    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: Where to store web resource files

    Posted 07/16/07 10:06 PM

    Harry,

    You can also test your page by giving the absolute path of the image file (Get it from the Properties of the file including the image file name) and it also should work.

    • Dinakar.

    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods