× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks,  I think stored procedures are much simpler than this.  No need for
error trapping and waiting for data (performance), debugging is much
simpler, I am not sure why people want to pass 2200 parameters.  May be a
old design concept. Anyways at least I know how to call an AS/400 program
and pass parameters.  Thanks a lot.

Just wondering have you or anyone else ever configured WCS for VAJava?  I
just can't configured it using the manual.  I badly need help on this IBM
did a great job I mean WCS and VAJava but I don't know why the installation
and setup is so complicated and time consuming for both of them.  Everything
is ok but when I try to hit the page of my store.  I am getting this
message.

Error 500
An error has occured while processing
request:http://localhost:8080/webapp/wcs/stores/servlet/StoreCatalogDisplay
Message:Failed to load target servlet [WCS Stores Request Servlet]
Target Servlet: WCS Stores Request Servlet
StackTrace:
----------------------------------------------------------------------------
----
Root Error-1: *** Error: Initialization passing property parameters to EJB
failure.
javax.servlet.ServletException: *** Error: Initialization passing property
parameters to EJB failure. java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String) void
com.ibm.commerce.server.RequestServlet.configInit(java.lang.String) void
com.ibm.commerce.server.RequestServlet.servletInit() void
com.ibm.commerce.server.RequestServlet.init() void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig) void
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit() void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.Ser
vletConfig) void
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servle
t.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig) void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.Serv
letConfig) void com.ibm.servlet.engine.webapp.ServletInstance.init() void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig) void
com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String,
javax.servlet.Servlet, java.util.Properties) void
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.Str
ing) com.ibm.servlet.engine.webapp.ServletReference
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(java.
lang.String, com.ibm.servlet.engine.webapp.ServletReferenceListener)
com.ibm.servlet.engine.webapp.ServletReference
com.ibm.servlet.engine.webapp.WebApp.getServletReference(java.lang.String,
com.ibm.servlet.engine.webapp.ServletReferenceListener) void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo()
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo(com.ibm.servlet.en
gine.webapp.WebApp, java.lang.String) javax.servlet.RequestDispatcher
com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(java.lang.String)
void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ct) void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
g.Object) void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
tring, com.ibm.servlet.engine.srp.ISRPConnection) void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
vlet.engine.oselistener.api.IOSEConnection) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
java.net.Socket) void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
java.lang.Thread.run()

Thanks in advance.
Mohammad Tanveer

-----Original Message-----
From: Joe Pluta [mailto:joepluta@PlutaBrothers.com]
Sent: Thursday, August 30, 2001 12:23 PM
To: java400-l@midrange.com
Subject: RE: Communicating between java & rpg?


Pretty simple:

// Initialization - done once

        ProgramCall call = new ProgramCall(new AS400());
        ProgramParameter[] parms = new ProgramParameter[1];
        parms[0] = new ProgramParameter(2200);
        call.setProgram("/QSYS.LIB/APILIB.LIB/RECEIVE.PGM", parms);


// Call

public void receive(byte[] data)                // EBCDIC buffer
        throws Exception
{
        parms[0].setInputData(data);
        if (call.run() == false) {
                throw new Exception("Receive failed.");
        } else {
                data = parms[0].getOutputData();
        }
}

> -----Original Message-----
> From: java400-l-admin@midrange.com
> [mailto:java400-l-admin@midrange.com]On Behalf Of Tanveer, Mohammad
> Sent: Thursday, August 30, 2001 12:05 PM
> To: 'java400-l@midrange.com'
> Subject: RE: Communicating between java & rpg?
>
>
> what about the java side? can you give an example from that side.

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.