Where to place Jadehttp.ini?

For questions and postings not covered by the other forums
ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Where to place Jadehttp.ini?

Postby ken chiam » Thu Jun 24, 2010 2:00 pm

Hi all, sorry if this is a very noob question, i am a newbie to Jade indeed. I read through the white paper for Html Document but i cant not find where should i place my Jadehttp.ini file. Maybe i missed out on that part.... can any one gives me some advice? thanks!

cheers
ken

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Where to place Jadehttp.ini?

Postby ken chiam » Thu Jun 24, 2010 2:18 pm

I tried to place the Jadehttp.ini in the c:/jade6.3/bin directory. but when i run my web application, the monitor shows

"The message is not in the required format - length is invalid".

I configured the application web option to run on local host, so my connection name is "localhost:6001" and my jadehttp.ini is :

[HelloWorldSystem]
GroupSharesConnections = true

MaxQueueDepth = 0
MaximumPipes = 10

TcpConnection = localhost
FirstTcpPort = 6001
LastTcpPort = 6010

is my configuration right?

User avatar
Jade Support
Posts: 103
Joined: Mon Aug 17, 2009 10:27 am
Location: Jade Software Corporation, Christchurch

Re: Where to place Jadehttp.ini?

Postby Jade Support » Thu Jun 24, 2010 2:27 pm

Hi Ken,

Welcome to the forums.

We'll start with a very simple example, without a DMZ. e.g. let's say the JADE database, jadehttp.dll and web server (IIS in this case) reside on the same PC.

Our JADE system is installed to D:\JADE6306 and jadehttp.dll resides in D:\JADE6306\bin. The virtual directory we've setup in IIS points to the jadehttp.dll in D:\JADE6306\bin and so you can create (or jadehttp.dll will create it for you) the following directory structure:
D:\JADE6306\bin_jadehttp
D:\JADE6306\bin_jadehttp\ini
D:\JADE6306\bin_jadehttp\logs
D:\JADE6306\bin_jadehttp\transfer
The jadehttp.ini file goes into the ...\bin_jadehttp\ini directory.
Note the format, it's [jadehttp.dll folder name]_[jadehttp.dll filename].

I mentioned earlier that jadehttp.dll can create the directory structure and files for you. To do this simply setup the virtual directory, then configure your web enabled application or web service provider and run it. Now connect to that application or provider. The act of doing this (if the connection is successful) will cause jadehttp.dll to create the directory structure if it doesn't already exist. Only basic parameters will be put into the jadehttp.ini file so your application won't return a valid response to the client. You can then update the jadehttp.ini to include a section for your application, defining such parameters as ApplicationType, etc. Then restart your application to pick up the new INI parameters.

Note, some older versions of IIS, for example on Windows XP may need to be restarted (via the Services control panel applet, service name "World Wide Web Publishing") in order to pick-up the changes to the virtual directory. In fact, it is generally good practice to restart the IIS service after making any changes to a virtual directory. Then you can be confident IIS has picked them up.

Thank you,
Jade Support
Jade Software Corporation Ltd

Email: jadesupport@jadeworld.com
Web: http://www.jadeworld.com

Jade Software – complex business problems solved beautifully.

User avatar
Jade Support
Posts: 103
Joined: Mon Aug 17, 2009 10:27 am
Location: Jade Software Corporation, Christchurch

Re: Where to place Jadehttp.ini?

Postby Jade Support » Thu Jun 24, 2010 2:30 pm

Hi Ken,

In regards to your second posting, can you tell me please:

1. What type of web application is it, web enabled forms, web service provider or HTML documents?

Thanks,
Jade Support
Jade Software Corporation Ltd

Email: jadesupport@jadeworld.com
Web: http://www.jadeworld.com

Jade Software – complex business problems solved beautifully.

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Where to place Jadehttp.ini?

Postby ken chiam » Thu Jun 24, 2010 3:26 pm

Hi Ken,

In regards to your second posting, can you tell me please:

1. What type of web application is it, web enabled forms, web service provider or HTML documents?

Thanks,
Dear administrator, thanks for your prompt reply, i am trying to use the HTML documents.

User avatar
Jade Support
Posts: 103
Joined: Mon Aug 17, 2009 10:27 am
Location: Jade Software Corporation, Christchurch

Re: Where to place Jadehttp.ini?

Postby Jade Support » Thu Jun 24, 2010 5:05 pm

Thanks Ken.

My jadehttp.ini file for an HTML documents application looks like this:
  • [DemoHTML]
    ApplicationType=HTMLDocuments
    ConnectionGroup=DemoHTML
    TcpConnection=JadeSupport
    TcpPort=6306
    MaxMessageSize=1000000
    MinMessageSize=10
    MessageTimeout=300
    VirtualDirectory=JADE6306
These are a minimal set of parameters required in order for a JADE 6.3 HTML documents web application to work.

The application definition (in the JADE IDE) has the following values:
  • Application Name = DemoHTML
    Connection Name = 143.96.130.156:6306
    Machine Name = [blank]
    Virtual Directory = JADE6306
    Home Page = [HTML Document]
And the URL to connect is http://143.96.130.156/JADE6306/jadehttp.dll?DemoHTML

If you make the necessary substitutions for connection name, using your port and virtual directory in both the INI file and application definition you should be away.

Regards,
Jade Support
Jade Software Corporation Ltd

Email: jadesupport@jadeworld.com
Web: http://www.jadeworld.com

Jade Software – complex business problems solved beautifully.

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Where to place Jadehttp.ini?

Postby ken chiam » Thu Jun 24, 2010 6:49 pm

Hi Administrator,
I tried using the configuration you provided, but i encountered an error message in the Web Application Monitor, the message is

Connection Error (31017 : Connection was closed)

What is the possible reason for this? The connect

Btw, back to the earlier post u posted, i did create bin_jadehttp with 3 sub folders and i placed my ini file in the ini folder.

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Where to place Jadehttp.ini?

Postby ken chiam » Thu Jun 24, 2010 8:06 pm

i was wondering is there anything wrong with my codes. Let me clarify, after i added the HTML form into the schema object, the html file appears until JadeHTMLClass folder, do i need to create any method to display the html?

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Where to place Jadehttp.ini?

Postby ken chiam » Tue Jun 29, 2010 7:41 pm

I solved the problem! Just found out the reason is because i didnt have the correct connection name for my ini, application and IIS. The solution provided by Jade Administrator is right. SO if any one encountered similar, do check the your configuration :)


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 36 guests

cron