|
Hi Franco, The program hung in the connectService Statement. I found another problem that my Websphere Development Studio Client for Iseries hung when I tried to connect to the server. I can't even verify the connections. Followed by http://publib.boulder.ibm.com/infocenter/iadthelp/index.jsp?topic=/com.ibm.etools.systems.core.doc/tasks/ttrouble.htm. Is there anything wrong in the AS400? It worked fine before we got the RLA problem. Many thanks, Rong ----- Original Message ----- From: "Franco Biaggi" <fbiaggi@xxxxxxxxxx> To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> Sent: Friday, September 03, 2004 2:19 PM Subject: Re: Record level access problem > Rong Zhang wrote: > > >Hi Franco, > > > >The problem is that this program didn't throw out any exceptions. > > > >I found this problem by using websphere debug tool, it just hung there when > >I reached this statement. Are there any ports or servers or whatever in > >AS400 I need to open or enable for this ? > > > >Thanks, > > > > > Rong, > try something like this to see if this changes (where > loggerFileName=/QSYS.LIB/MYLIB.LIB/MYFILE.FILE): > > as400 = new AS400(); > as400.setSystemName( IniFileManager.getAS400SystemName() ); > as400.setUserId( IniFileManager.getAS400UserId() ); > as400.setPassword( IniFileManager.getAS400Password() ); > as400.setGuiAvailable( false ); > as400.connectService( AS400.RECORDACCESS ); > > as400File = new SequentialFile( as400, > IniFileManager.getLoggerFileName() ); > AS400FileRecordDescription recordDescription = new > AS400FileRecordDescription( as400, IniFileManager.getLoggerFileName() ); > recordFormat = recordDescription.retrieveRecordFormat(); > as400File.setRecordFormat( recordFormat[ 0 ] ); > record = new Record( recordFormat[ 0 ] ); > > > -- > -------------------------------------------------------------------------- --- > *** This messages was scanned for malicious contents *** > -------------------------------------------------------------------------- --- > Franco Biaggi > CH-6807 Taverne > > > -- > This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > 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 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.