Re: [Tn5250j-general] Startup with last view
No problem. The most important thing is to solve the problem. How you get there is just the fun part of the journey. Pete Richard Houston wrote: Thanks Pete, the -DSSL=true is supposed to enable the ssl stuff, at least that is what the tn5250j website said but that might be out of date. Oddly enough I just did a cvs update and there was one file updated. I recompiled and the last view works. I guess the previous update I did was not the one I am compiling from now. Sorry to waist your time on this. Turns out it was my mistake. Everything looks good now. Thanks for the help. P.S. Kenneth, do we still need to use the -DSSL=true to get the ssl support in tn5250J? or is it included by default now. Just wondering. Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW^^-^^| +--+ On Fri, July 22, 2005 11:10 am, Pete Helgren wrote: Well, that at least is good news. That means my fixes didn't break anything.. :-) I am not an Ant expert so I can't give you much command line instruction. I use Eclipse and then when it comes time to build something I just right click the build.xml file and chose run, build option 2. I use the "All" target in Ant to rebuild the whole project and I am done (unless I get an error). Not sure what -DSSL=true parameter is but, I am not an Ant command line guy.just a "point and click" guy Pete Richard Houston wrote: Yip, that works with out issue. I wonder what I am doing wrong. I compile with ant -DSSL=true run. Any ideas? Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Thu, July 21, 2005 2:13 pm, Pete Helgren wrote: Richard, Any chance to try the jar? Just curious Pete Richard Houston wrote: Thanks Pete, I'll let you know as soon as I get any info. What JDK are you using? Just for my own reference. Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Fri, July 15, 2005 1:37 pm, Pete Helgren wrote: I tried that and it works fine in Linux so I am not sure what is going on at your end.. I will attach the .jar I am using. See if it makes any difference for you. Pete Pete Helgren wrote: Hmmm... That WAS what I was seeing before I tweaked the code. I am not seeing that now. The first problem I saw was the start of the default session and then the code was skipping the first "last view" session in the list. I was running it in Eclipse, however, so I could debug it. So, I'll rebuild the jar and stuff it over into my Linux partition and run it from there. I have some issues with Eclipse in Linux because I share the workspace between Windows and Linux and neither side is happy with the other so I might have to do some work to debug the code running in Linux if I see the same problem in Linux. Meanwhile, Kenneth may get a chance to review what I did. I admit not not knowing all the subtleties of tn5250j from a programming perspective so I might have missed something that Kenneth will catch. Pete Richard Houston wrote: Thanks Pete, K I am still having an issue, I checked out a fresh copy of tn5250j, removed my .tn5250 Dir and started fresh. Compiled with Linux and sun JDK1.4.2_08 using ant -DSSL=true run. Then I setup my connections and connect twice. I now have 2 session to the same machine in two tabs sitting on the login screen. I then check of the save last session and click apply from the connections window. Close down TN and reopen it with Java -jar tn5250j.jar. I then see one tab marked -s. I open my session file and find "emul.view =-s null". I then edited the emul.view to emul.view=-s traf , the name assigned to the connection I setup in the connections window. Relaunch TN and get one tab marked as -s, same as the first run. When I view the sessions file the emul.view is set back to emul.view=-s null. Very strange. Any ideas? Thanks Rich Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW
Re: [Tn5250j-general] Startup with last view
Thanks Pete, the -DSSL=true is supposed to enable the ssl stuff, at least that is what the tn5250j website said but that might be out of date. Oddly enough I just did a cvs update and there was one file updated. I recompiled and the last view works. I guess the previous update I did was not the one I am compiling from now. Sorry to waist your time on this. Turns out it was my mistake. Everything looks good now. Thanks for the help. P.S. Kenneth, do we still need to use the -DSSL=true to get the ssl support in tn5250J? or is it included by default now. Just wondering. Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Fri, July 22, 2005 11:10 am, Pete Helgren wrote: > Well, that at least is good news. That means my fixes didn't break > anything.. :-) > > I am not an Ant expert so I can't give you much command line > instruction. I use Eclipse and then when it comes time to build something > I just right click the build.xml file and chose run, build > option 2. I use the "All" target in Ant to rebuild the whole project and I > am done (unless I get an error). > > Not sure what -DSSL=true parameter is but, I am not an Ant command line > guy.just a "point and click" guy > > Pete > > > > Richard Houston wrote: > > >> Yip, that works with out issue. I wonder what I am doing wrong. I >> compile with ant -DSSL=true run. Any ideas? >> >> >> >> >> Best regards, >> +--+ >> | Richard Houston .^. | >> | R.L.H. Consulting /V\ | >> | E-Mail <[EMAIL PROTECTED]>/( )\ | >> | WWW ^^-^^| >> +--+ >> >> >> >> On Thu, July 21, 2005 2:13 pm, Pete Helgren wrote: >> >> >> >>> Richard, >>> >>> >>> >>> Any chance to try the jar? Just curious >>> >>> >>> >>> Pete >>> >>> >>> >>> >>> Richard Houston wrote: >>> >>> >>> >>> >>> Thanks Pete, I'll let you know as soon as I get any info. What JDK are you using? Just for my own reference. Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Fri, July 15, 2005 1:37 pm, Pete Helgren wrote: > I tried that and it works fine in Linux so I am not sure what is > going on at your end.. > > I will attach the .jar I am using. See if it makes any > difference for you. > > Pete > > > > > > Pete Helgren wrote: > > > > > > > > >> Hmmm... >> >> >> >> >> That WAS what I was seeing before I tweaked the code. I am not >> seeing that now. The first problem I saw was the start of the >> default session and then the code was skipping the first "last >> view" session in the list. I was running it in Eclipse, >> however, so I could debug it. So, I'll rebuild the jar and >> stuff it over into my Linux >> partition and run it from there. I have some issues with Eclipse >> in Linux >> because I share the workspace between Windows and Linux and >> neither side is happy with the other so I might have to do some >> work to debug the code running in Linux if I see the same >> problem in Linux. >> >> Meanwhile, Kenneth may get a chance to review what I did. I >> admit not not knowing all the subtleties of tn5250j from a >> programming perspective so I might have missed something that >> Kenneth will >> catch. >> >> Pete >> >> >> >> >> >> Richard Houston wrote: >> >> >> >> >> >> >> >> >>> Thanks Pete, >>> >>> >>> >>> >>> K I am still having an issue, I checked out a fresh copy of >>> tn5250j, removed my .tn5250 Dir and started fresh. >>> >>> Compiled with Linux and sun JDK1.4.2_08 using ant -DSSL=true >>> run. >>> >>> >>> >>> Then I setup my connections and connect twice. I now have 2 >>> session to the same machine in two tabs sitting on the login >>> screen. I then check of the save last session and click apply >>> from the connections window. Close down TN and reopen it with >>> Java -jar >>> tn5250j.jar. I then see one tab marked -s. I open my session >>> file and find "emul.view =-s null". I then edited the >>> emul.view to emul.view=-s traf , the name assigned to the >>> connection I setup in the connections window. Rela
Re: [Tn5250j-general] Startup with last view
Well, that at least is good news. That means my fixes didn't break anything.. :-) I am not an Ant expert so I can't give you much command line instruction. I use Eclipse and then when it comes time to build something I just right click the build.xml file and chose run, build option 2. I use the "All" target in Ant to rebuild the whole project and I am done (unless I get an error). Not sure what -DSSL=true parameter is but, I am not an Ant command line guy.just a "point and click" guy Pete Richard Houston wrote: Yip, that works with out issue. I wonder what I am doing wrong. I compile with ant -DSSL=true run. Any ideas? Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW^^-^^| +--+ On Thu, July 21, 2005 2:13 pm, Pete Helgren wrote: Richard, Any chance to try the jar? Just curious Pete Richard Houston wrote: Thanks Pete, I'll let you know as soon as I get any info. What JDK are you using? Just for my own reference. Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Fri, July 15, 2005 1:37 pm, Pete Helgren wrote: I tried that and it works fine in Linux so I am not sure what is going on at your end.. I will attach the .jar I am using. See if it makes any difference for you. Pete Pete Helgren wrote: Hmmm... That WAS what I was seeing before I tweaked the code. I am not seeing that now. The first problem I saw was the start of the default session and then the code was skipping the first "last view" session in the list. I was running it in Eclipse, however, so I could debug it. So, I'll rebuild the jar and stuff it over into my Linux partition and run it from there. I have some issues with Eclipse in Linux because I share the workspace between Windows and Linux and neither side is happy with the other so I might have to do some work to debug the code running in Linux if I see the same problem in Linux. Meanwhile, Kenneth may get a chance to review what I did. I admit not not knowing all the subtleties of tn5250j from a programming perspective so I might have missed something that Kenneth will catch. Pete Richard Houston wrote: Thanks Pete, K I am still having an issue, I checked out a fresh copy of tn5250j, removed my .tn5250 Dir and started fresh. Compiled with Linux and sun JDK1.4.2_08 using ant -DSSL=true run. Then I setup my connections and connect twice. I now have 2 session to the same machine in two tabs sitting on the login screen. I then check of the save last session and click apply from the connections window. Close down TN and reopen it with Java -jar tn5250j.jar. I then see one tab marked -s. I open my session file and find "emul.view =-s null". I then edited the emul.view to emul.view=-s traf , the name assigned to the connection I setup in the connections window. Relaunch TN and get one tab marked as -s, same as the first run. When I view the sessions file the emul.view is set back to emul.view=-s null. Very strange. Any ideas? Thanks Rich Best regards, +--+ | Richard Houston .^. | | R.L.H. Consulting /V\ | | E-Mail <[EMAIL PROTECTED]>/( )\ | | WWW ^^-^^| +--+ On Fri, July 15, 2005 8:43 am, Pete Helgren wrote: I just committed the changes and I did test the start with default and it seems to work. Let me know what you think. Pete Kenneth Pouncey wrote: Pete As long as the start default still works I see no problem at all in committing this. Once it is committed I will test it tonight to see if what I normally do works as well. Will also test a default setup as well. Again thank you very much for the analysis and the fix. Regards Kenneth Pete Helgren wrote: OK! I found a couple of things that might be causing the problem. Kenneth, you can check my assumptions before I update CVS with my changes. These two changes start at around line 348 in My5250.java 1.There is a startNewSession(); there even before we start to iterate through the specific sessions retrieved. I think that will just start a default session (not sure where it gets it from). 2. We start the sessions store