wbreidbach wrote:
> We are developing a web application on the NonStop. We want to use JSP (Tomcat) for the GUI itself and interface with one or more Pathway servers to do the real work like accessing the database and delivering the information to be displayed. Unfortunately we did not find any samples for that.
> We have been successful converting the messages to and from the first Pathway server using DDL2JAVA and have created a little JAVA program communicating with that server. But we have not yet found a way to do the same using JSP. So my question: Has anybody done something like this before? And if yes, could you provide me with a sample? Our server receives a requestcode, a userid and a password and returns a returncode and a welcome/error message.
I do not have any examples for you. I am writing just to mention that, if you are not already aware of it, it might help you to learn about the Java Infrastructure feature that was added to NonStop Java some time ago. I have not used it, but the brief description I have seen says it allows Java code using the Socket class or the SocketChannel class to communicate via Guardian WRITEREAD or SERVERCLASS_SEND_ to legacy servers transparently on both ends.
It seems like Java Infrastructure is intended mostly to allow easy integration of existing Java-based applications into an existing NonStop application without source code changes on either side (there is some kind of mapping file that provides the Socket class with the necessary bridging information), but it might also be helpful when developing new Java applications intended to utilize existing NonStop servers. The Java programmers would need to know only how to use Java Socket programming to access the existing servers.
This might be off the point, since I do not understand just what the sticking point is that you are having when trying to use JSP to communicate with an existing server. I only wanted to point out that Java Infrastructure exists if you were not already aware of it. If you have examples of what you want to do that uses Java Sockets to communicate with a service, making use of Java Infrastructure might make it possible to use exactly the same Java code to communicate with your existing servers.