Re: [Tn5250j-general] STRPCCMD
Hello Oliver, We have integrated this functionality into the emulator and it should work. However at AS/400 side remember to first start PCO using the STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which should start up notepad.exe on a windows box. If you can run your command from any shell box on your PC, the emulator should be able to launch the firefox. Another thing that has been implemented in the latest version is the recognition of URL so that http:// and mailto:// urls become clickable in the emulator. HTH, Wim Van Leuven Oliver Schneider [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/07/2006 10:56 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] STRPCCMD Hi, I have read an older thread about the 'STRPCCMD' command, but I don't know if it has been solved... Is there a way to run it from linux. strpccmd 'firefox http://url' format. Is that possible? Thank you for your help. Oliver Schneider Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] STRPCCMD
Did you try the STRPCCMD + F4 to display commandproperties and then fill in the command on the screen? If you run /usr/bin/firefox from any shell, the browser opens? What version of the emulator are you running? It might be you have to set a property to enable the scanning for strpccmd Oliver Schneider [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/07/2006 14:03 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD Hi again, im afraid it doesn't work. here are my steps again... strpco strpccmd '/usr/bin/firefox'--doesn't work strpccmd ('/usr/bin/firefox') --doesn't work strpccmd '/opt/kde35/bin/konqueror' --doesn't work In the same environment PowerTerm works. I think PowerTerm is java, too. Do I need to allow it somewhere in the config? Oliver Schneider Am Dienstag, den 04.07.2006, 13:46 +0200 schrieb [EMAIL PROTECTED]: Hello Oliver, never mind de PCO.exe. Just run the STRPCO command on the AS/400 though the java emulator. Next try the STRPCCMD. It should work also on linux, as long as you pass in a command that works in the shell or the environment in which the java emulator runs. HTH, wim Oliver Schneider [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/07/2006 13:13 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD Hello Wim, first I want to thank you for your help. One of my problems is, that it should run on a linux computer and not on windows. So the emulator tells me than, that pco.exe is not active. Why should it, it is on a linux-box. So is there no way to start a browser? It works on Ericom PowerTerm(5250 Emulator) for Linux. Are there any more hints for me? Thanks, Oliver Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb [EMAIL PROTECTED]: Hello Oliver, We have integrated this functionality into the emulator and it should work. However at AS/400 side remember to first start PCO using the STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which should start up notepad.exe on a windows box. If you can run your command from any shell box on your PC, the emulator should be able to launch the firefox. Another thing that has been implemented in the latest version is the recognition of URL so that http:// and mailto:// urls become clickable in the emulator. HTH, Wim Van Leuven -- Oliver Schneider EDV Schrauben-Jaeger AG Fon.: 07 21 - 5 70 06 - 141 Fax.: 07 21 - 5 70 06 - 145 [EMAIL PROTECTED] http://www.schrauben-jaeger.de Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general -- Oliver Schneider EDV Schrauben-Jaeger AG Fon.: 07 21 - 5 70 06 - 141 Fax.: 07 21 - 5 70 06 - 145 [EMAIL PROTECTED] http://www.schrauben-jaeger.de Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] STRPCCMD
Hello Oliver, never mind de PCO.exe. Just run the STRPCO command on the AS/400 though the java emulator. Next try the STRPCCMD. It should work also on linux, as long as you pass in a command that works in the shell or the environment in which the java emulator runs. HTH, wim Oliver Schneider [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/07/2006 13:13 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD Hello Wim, first I want to thank you for your help. One of my problems is, that it should run on a linux computer and not on windows. So the emulator tells me than, that pco.exe is not active. Why should it, it is on a linux-box. So is there no way to start a browser? It works on Ericom PowerTerm(5250 Emulator) for Linux. Are there any more hints for me? Thanks, Oliver Am Dienstag, den 04.07.2006, 11:07 +0200 schrieb [EMAIL PROTECTED]: Hello Oliver, We have integrated this functionality into the emulator and it should work. However at AS/400 side remember to first start PCO using the STRPCO command. afterwards you can run e.g. STRPCCMD 'notepad' which should start up notepad.exe on a windows box. If you can run your command from any shell box on your PC, the emulator should be able to launch the firefox. Another thing that has been implemented in the latest version is the recognition of URL so that http:// and mailto:// urls become clickable in the emulator. HTH, Wim Van Leuven -- Oliver Schneider EDV Schrauben-Jaeger AG Fon.: 07 21 - 5 70 06 - 141 Fax.: 07 21 - 5 70 06 - 145 [EMAIL PROTECTED] http://www.schrauben-jaeger.de Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] [Fwd: Fw: TN5250J License]
Hello Pete, As you explain LGPL, it seems to me that this is the way to go! Pete Helgren [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 14/12/2005 22:40 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] [Fwd: Fw: TN5250J License] Wim (and all). Sorry not to weigh in until now. I have been very, very busy. Hoping things will slow down a bit over the next 2 or three weeks so I can do more on the tn5250j stuff. I am not a licensing expert but as I understand the LGPL, a company can integrate the java classes/jars (library is what the LGPL language says) into their application and can charge for the the application as long as they don't charge for whatever they use from tn5250j. It is a fine line in my opinion but they still need to indicate in their copyrights that some of the application is dependent upon tn5250j and licensed under LGPL (if we go that way). So they can use the tn5250j as part of their solution. They cannot use any source from the project in their own code or build a derived application from tn5250j and charge for it. They can only use complete components that are identifiable as such from tn5250j (like the protocolBean). What I don't know is that if they decide to enhance the tn5250j code are they obligated to contribute that code back to the project? I *think* they are but I am not sure. Where things get fuzzy is how to determine what component is being used. No doubt some of the tn5250j code has found it's way into a commercial product or two already. Not everybody plays by the rules. But I think there is little risk in this approach. In any case it speaks highly of what you guys have accomplished! Pete [EMAIL PROTECTED] wrote: Hello all, as I understood it, the people from Help/Systems were looking for a 5250 protocol to embed into their product. Of course they will be charging their customers for this. As I interpret this, it's not a question of not OSS'ing the project anymore, but establishing a licensing policy on the project that allows them to integrate it. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 14/12/2005 06:47 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net, [EMAIL PROTECTED] cc Subject Re: [Tn5250j-general] [Fwd: Fw: TN5250J License] Matt If you are on the list now here was a personal e-mail sent to me from one of the people. I ony copied pasted a part of the e-mail as there was some personal info and do not want to get him/her in trouble. Could you maybe give some answers to the questions. I want to open this conversation up and let everyone decide. Sorry to put you in this but all the others that I have done this too has backed down answering the questions in a public format. You guys have been the most up front and honest so far which is why I have even considered it. Regards Kenneth Email below: --- Kenneth - - Wow!! No kidding!! Help/Systems!! MOST INTERESTING (yes I am shouting). Since I am only a user, not a developer on this project, my 2 cents is from a different perspective. My concerns are the life of the product. As you know and I have said repeatedly - tn5250j rocks! Its great! I want it to survive as an oss product. I would understand if the developers needed to generate a cash flow, as sad as that would make me. Do you know what Help/Systems is up to? Are they planning on putting out the 5250 emulation and trying to charge for it? Do they want to use it as an oss product? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
RE: [Tn5250j-general] [Fwd: Fw: TN5250J License]
Hello all, glad to hear those enhancements are coming into the codebase! Concerning the licensing, though, I'm not an expert myself regarding the differences. As I understand it, GPL means that any derivative or piece of code containing the library, should also be opensource. LGPL lessens this constraint by not implying opensource derivatives or containers, right? So LGPL should be fine to us, but what is the difference with the Apache license? Are there any changes into TN5250j that we have (incorrectly) copyrighted? Patrick Bielen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 13/12/2005 08:22 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject RE: [Tn5250j-general] [Fwd: Fw: TN5250J License] Hi Kenneth, The reason for bringing all this up is that after two years a larger company has come back and is ready to discuss this licensing again. Well anyway, congrats dude, isn't something like this you always wanted ? I can image myself the very first days i joined the project as a beta tester, and we streamlined it all in about 6 months to a very productive product. Then the thoughts came up to be accepted by a wider public soon, well dude, that is what is happening now :-) I would like to know your opinions on this. Well, i think as long as we can still continue to work on the codebase, this should be no problem... is it ? At least that is my opinion. The company is Help/Systems, Inc and they want to use the emulator part in there Robot product(s). That's good news if you ask me, don't forget to tell them you name should be listed in one or other way :-) Or maybe even better, they contact the team as a group to work on it... always nice to earn some extra cash for the work we did these last years right ? :-) But before all this works out, we first really have to fix that bugs, cause i had to replace the cvs version with an old one at various production boxes here at stafa, cause of the screen freeze. Well let's see what the other members have to say. Best Regards, Patrick has notified the sender that this message has been received.
Re: [Tn5250j-general] new project, maybe usefull to use incombination with tn5250j
If you implement this, I think it is best to stick to standard Java APIs (like JAAS for authentication). We use this and 5250 in our complete java framework. The problem for AS/400 is authentication across multiple AS/400s. Patrick Bielen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/11/2005 09:27 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] new project, maybe usefull to use incombination with tn5250j Hi Guys, A few minutes ago i found the next sf-project. http://www.manentiasoftware.com/kasai/goToHome.action Take a look at it, maybe welcome to integrate in tn5250j to get rid of that endless loggin-in-and-give-your-password-again feature ? :-) Best Regards, Patrick has notified the sender that this message has been received.
Re: [Tn5250j-general] tn5250j on linux with java 1.5.0
Hello Patrick, that sounds great!! In my opinion the emulator works quite well and stable. It should be cleaned out of old code indeed as you suggest. I'll see what I can do from this side to get this going again. Cheers, (Tot ziens) Wim Patrick Bielen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 25/10/2005 08:38 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] tn5250j on linux with java 1.5.0 Hi guys, Recently i installed Ubuntu Linux (which is the best distro i've seen in the last 7 years imho) and that is where the troubles began. Running java 1.5.0_05 on my linux box gives the next troubles... 1) Splashscreen stays on top and the connection window is below it, there is not way to remove it until you actually make the connection to the iseries. 2) Keymapping does nothing... no matter which key you press, nothing happens and you have to manually edit the keymap file. xdev gives other values then the values used in the keymap file, which makes it hard to find out which value you actually need. No need to say this is very frustrating, cause you loose a lot of functionality in the first place. The second thing... a dutch user contacted me about the jython commands that can be used in tn5250j. A few years ago i was using this functionality a lot, but since i became SCJP i lost the attention to the scripting feature in tn5250j. So there is a lot changed in meanwhile, and commands changed also. The website was never made up-to-date so it's damned hard to actually find out what the exact commands are. Anybody that knows what actually was changed ? _session.getscreen() seems not to work anymore cause things are changed. So i think after almost one year of inactivity, that it becomes time we pickup the project again and do the very last bugfixes, and also remove the 1.3 code crap, to become some more up-to-dated. I know the most of you guys are working on the browser version of tn5250j, but that is not that interesting for the most users, cause tn5250j standalone just does what it needs to do. So maybe we can focus back on the program itself and make it bugfree on windows and linux (and mac) for once and for all. Ofcourse i'm not the project leader, but seems he lost his interests in the project cause we haven't heard him anymore for a very long time. As i'm one of the people that joined the project in the very first beginning it should be nice if we could make a deal, that i will try to lead the team until Kenneth returns. What do you guys think ? Well maybe my java skills do not go that far as most of you, but i will try to lead the project into the right directions. The most important goal is to make it stable now, so we actually can release a FINAL (stable) version. I'm into Linux now, so i can heavily test the program on that platform now. Best Regards, Patrick Bielen has notified the sender that this message has been received.
Re: [Tn5250j-general] Checking in on the project
Hello Pete, great to hear some acitivity from this corner. The screenscraper works for one of our customers and is tailored to their screen layouts. Still have to do some bugfixes for them shortly, so I can send some screenshots on the list to give an idea to what it looks like. We were now discussing internally whether we were going to apply the scraper to our own screens, or build some kind of Swing gui components on top of the stream: a table for a subfile, a label for static text, a textfield for fields etc. The idea is to be able to build swing panels that read and write their data from the screen. The buttons and menu's would call function keys etc to do screen transitions and move to the next swing panel. What do you think? For us it is just to be able to quickly roll out GUIs until we find the time to reengineer the apps in full GUI apps. The 1200 codepage is provided in JT400. However I can not find the 1208. I wonder however if those are supported if they're not in de toolbox. Or are the numbers provider here not the AS/400 numberings? Regards, wim Pete Helgren [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 14/10/2005 15:41 Please respond to tn5250j-general@lists.sourceforge.net To TN5250J List tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] Checking in on the project Geebeen kinda quiet around here. Must mean we are all gainfully employed and busy? A couple of questions (just to blow the dust of the list!): 1. Wim, a while back you talked about a screenscraper project you were involved in that used tn5250j components. Where are you on that? I'd love to know what you are doing in that area since I think tn5250j has some powerful tools in that would be useful. 2. Also, in general, how hard is it to add code page support, specifically for 1200 and 1208? There was a post in midrange.com from someone looking for an emulator that supported those code pages. I didn't see it in the list of supported code pages (not in JT400 either). I'd like to help this guy out if I could, I just don't know how difficult it is to support other code pages. Thanks! Pete Helgren P.S. Kenneth are you out there ? How is it going? --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] Checking in on the project
The latest version of JTOpen provides all the codepages from 1200, 1201, 1202 and 1208. So if they install this one into their classpath, the emulator should work!
Re: [Tn5250j-general] Emulator hangs
, We use the emulator embedded in our apps. When called upon we create a session, pass is userid, password, initial command etc and display the emulator. All data is injected into the system by keystroke emulation. As such the user sees the login and bootstrap process. To minimize this we hold the emulator invisible for a while (configurable amound of millisecs). What we noticed now at a customer site is that, the emulator often hangs on the launching on the command, not in system X mode, but in KB mode. You can not do anything to unblock this, nor do you see anything special at AS/400 side for the job. You can just stop the emulator and restart. If we however augment our invisibility period to a longer time, the hangs occur much less frequent. Does anybody have any ideas about what is causing this problem? Thanks for any input on this, Wim Van Leuven. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 02/06/2005 10:12 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] New to tn5250j What would you call these keying actions? Like for instance the ALT + arrow left/right is called Cursor Next Word and Cursor Previous Word. What would be the description of these? Quoting Marc Vos [EMAIL PROTECTED]: Kenneth, 2) ALT + arrow left/right is great! Quickly moving across the screen could be enhanced when you could add a CTRL + arrow left/right/up/down combination which would jump 3 spaces left/right or lines up/down. Can I configure that myself? --- Actually have thought about this myself but never really got around to implementing it. Humm will have to think about it. Could you open up a request for enhancement out on the site for me? Done. -Marc --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] Emulator hangs
Hello Kenneth, problem is we cannot easily recreate the problem either. It just happens once and a while. So I cannot send you a guaranteed test case. Wim Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 28/06/2005 11:36 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] Emulator hangs Hello Wim That is what I was thinking that it was the left-ctrl that might be causing the problem when sending the keys via the keyboard handler. If you sent it within the stream as a keystroke it does not go through the keyboard handler but straight to the keystroke simulator. That way we can narrow the problem area. Can you send me an example of this so I can take a look at it? It does not happen within the emulator itself or else I do not know how to recreate it on my side. Regards Kenneth Quoting [EMAIL PROTECTED]: Kenneth, when the emulator hangs, it hangs. A reset (using eg left-ctrl) doesn't solve the problem. HTH, Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24/06/2005 17:55 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] Emulator hangs Wim and Ignacio I was thinking about this little problem. To see if it is the keybuffering that is causing the problem let's try something. At the end of your keys that your are sending insert as the last key sequence [reset]. The last thing it will do is clear the keybuffer after all is done. If this solves it then we will need to debug the keybuffering if I can get an example from you guys and reproduce the code. Let me know if it works. I am not sure but it could depend on the version of the code that you are running against because I remember having a problem with not being able to even send a reset key at one time (not sure of the release right now). If you can run the code base and create the KB at the the bottom then press the reset key the KB should go off and the buffered keys should be cleared. Regards Kenneth Quoting Kenneth Pouncey [EMAIL PROTECTED]: Hola Ignacio You have not stolen the thread at all. We need all the input that we can get and is the reason this list exists. At least we know that it is not just one person having this problem and it is reproducable. You must be doing that same things as Wim and his company so if both or one of you can send me some sample code on how you are calling this I can give it a debug. Gracias Kenneth Quoting [EMAIL PROTECTED]: Hello, We don't pass data by keystroke emulation, however, sometimes our users tell us about similar problems: while they were working on the emulation, sometimes it hangs showing KB at the bottom part of display. At the moment, we don't have much information about it. ( I am sorry, I have stolen this thread ) Ignacio. [EMAIL PROTECTED] con fecha 24/06/2005 14:49:17 Por favor, responda a tn5250j-general@lists.sourceforge.net Destinatarios: tn5250j-general@lists.sourceforge.net CC:(cci: Ignacio Lacosta/RIU/ES) Asunto: [Tn5250j-general] Emulator hangs Hello all, We use the emulator embedded in our apps. When called upon we create a session, pass is userid, password, initial command etc and display the emulator. All data is injected into the system by keystroke emulation. As such the user sees the login and bootstrap process. To minimize this we hold the emulator invisible for a while (configurable amound of millisecs). What we noticed now at a customer site is that, the emulator often hangs on the launching on the command, not in system X mode, but in KB mode. You can not do anything to unblock this, nor do you see anything special at AS/400 side for the job. You can just stop the emulator and restart. If we however augment our invisibility period to a longer time, the hangs occur much less frequent. Does anybody have any ideas about what is causing this problem? Thanks for any input on this, Wim Van Leuven. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 02/06/2005 10:12 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] New to tn5250j What would you call these keying actions? Like for instance the ALT + arrow left/right is called Cursor Next Word and Cursor Previous Word. What would be the description of these? Quoting Marc Vos [EMAIL PROTECTED]: Kenneth, 2) ALT + arrow left/right is great! Quickly moving across
Re: [Tn5250j-general] JDK version
Hello Kenneth, I remembered Patrick asking this upgrade, but not from the point of using 'new' technologies like nio, I think. Rather to cleanout 1.3 specific code and integrating new APIs. Probably Swing related APIs most of the times. As I understood NIO it mostly helps for doing async io indeed but also allow better scalable IO. This is however more server oriented than this client side project is. So this would not directly benefit us. However a lot of the multithreading things that are in the code base right, would be gone. You wouldn't have to start a comm-thread for every emulator but use one thread on a channel as a switcher. As you mostly use one emulator session at the time, this wouldn't pose performance problems and do the same thing with less resources. HTH, Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 28/06/2005 11:44 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] JDK version Hello all I remember a post, from Patrick I think, that was asking to move the emulator up to 1.4 and use some of the features for those greater than 1.3. I am assuming that would mean to use the NIO streams, channels and the such correct? If that is the case what would using the NIO help us achieve that can not be done now? Would it be better? What would be the goal? I ask because after having used the NIO in a couple of small projects it really only helps for asynchronous correct? We really use synchronous on the client side and really do not see any speed enhancment or anything like that when using the synchronous model. If anyone suggests the asynchronous model for doing this could they tell me why that would help. I do not see it but am open to learning the benefits and the coding if it will help us reach a goal. Regards Kenneth --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
[Tn5250j-general] Emulator hangs
Hello all, We use the emulator embedded in our apps. When called upon we create a session, pass is userid, password, initial command etc and display the emulator. All data is injected into the system by keystroke emulation. As such the user sees the login and bootstrap process. To minimize this we hold the emulator invisible for a while (configurable amound of millisecs). What we noticed now at a customer site is that, the emulator often hangs on the launching on the command, not in system X mode, but in KB mode. You can not do anything to unblock this, nor do you see anything special at AS/400 side for the job. You can just stop the emulator and restart. If we however augment our invisibility period to a longer time, the hangs occur much less frequent. Does anybody have any ideas about what is causing this problem? Thanks for any input on this, Wim Van Leuven. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 02/06/2005 10:12 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] New to tn5250j What would you call these keying actions? Like for instance the ALT + arrow left/right is called Cursor Next Word and Cursor Previous Word. What would be the description of these? Quoting Marc Vos [EMAIL PROTECTED]: Kenneth, 2) ALT + arrow left/right is great! Quickly moving across the screen could be enhanced when you could add a CTRL + arrow left/right/up/down combination which would jump 3 spaces left/right or lines up/down. Can I configure that myself? --- Actually have thought about this myself but never really got around to implementing it. Humm will have to think about it. Could you open up a request for enhancement out on the site for me? Done. -Marc --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] Passing User ID and Password in Applet
Hello Pete, I think you are completely right in your interpretation. The SSL or VPN tunnel would encrypt all communcation between the PC and the (web and AS400) server. If the user would popup the HTML source he would indeed see (his own?) userid and password. The auto disconnect feature as you describe it would indeed do an signoff endcnn(*yes) as final command. For the Java part you would have to popup an applet or frame or whatever to create a session, launch it, add a session listener to it that closes on disconnection. I'll look into providing an example. Wim. Pete Helgren [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 16/06/2005 18:35 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] Passing User ID and Password in Applet Thanks to all. You gave me much to think about Wim, I don't know much about SSL or how it is initiated but I thought that if you used SSL the stream was fully encrypted. That is, if you are using SSL then the traffic that is passing over port 992 is encrypted, even the signon screen. Is that the case? Also, our HTML based menuing system can run in an HTTPS environment so executing the applet under HTTPS would encrypt the page I think, though if the user viewed the page source they would see the password in plain text, right? The encryption is just used between the browser and the server. The HTML as rendered by the browser is still in plain text. It *could* allow a user to view the source on another user's browser and see the password (at least I think this is possible). I think I understand the applet ending routine that you currently have but since I don't work that closely with the internals of 5250 some of what you and Kenneth are saying is going over my head. And I am still a relative rookie with Java so I need a bit more info and, if you can, a small snippet of code that demonstrates what you are talking about. For example, when you say wrap the command and then use a signoff with a disconnect, are you saying that I could just have a CL program that has a call to whatever program we want to run (in fact, we already have this) and then at the end of the command use SIGNOFF ENDCNN(*YES)? I think you also are saying that we need to add a sessionlistener to the applet code and then use that to trigger the navigation when the session is disconnected. I am not familiar with using a sessionlistener but with an example I think I can figure it out (code examples are always helpful). It sounds like that is the way to go. Adding a SIGNOFF ENDCNN(*YES) should be easy enough but I need a little help with the sessionlistener logic. Thanks! Now I just need to deal with the password issue and I think I have it. Pete BTW Kenneth, Gaurav posted his code to the list on July 2nd, 2003. If you can't find it in the archives, I can send it to you. [EMAIL PROTECTED] wrote: Hello Pete, I'm not quite sure why everybody make a problem about the clear passwords. When you would send them encrypted, the emulator telnets to the AS/400 and what does he do in the first place: send your userid and password to the as/400. I think that these are in clear text also. The only solution would be to SSL or VPN your communication to your webserver and AS/400. Next the autoclosing is fairly easy to implement using the autologin and scanning we have introduced in the emulator: when logging on you want to autostart a command. Lets call this the application command. What you can do is wrap this app command in you own shell command. e.g. start cmd('appcmd'). The start can do a few thing like setting liblists etc. But it's main purpose is to properly shutdown the emulator. You can do this in 2 ways: to a signof with disconnect. At the emulator side, you can attach a sessionlistener and have you applet navigate away from you page as the session gets disconnected. Or the start command can also trigger a scan code to the emulator: #! END so the applet can listen to this and perform an end of session. This way you can do a lot more than just ending. Hope this helps, Wim. Pete Helgren [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 15/06/2005 21:06 Please respond to tn5250j-general@lists.sourceforge.net To TN5250J List tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] Passing User ID and Password in Applet I had posted some of this about two years ago when I first started working with the 5250 applet. The problems that I had (and still have) have to do with the passing of UserID and password in the clear when I start an applet session. Gaurav posted some code that has a servlet that talks to the applet and passes the password back to it. I think I can follow the approach but wanted to know if anyone else had solved this problem in a different way. We have an HTML based menuing system that runs on the iSeries (under an Apache web server). The
Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
Hello Kenneth, I've been looking on this issue also, because STRPCCMD is used by almost all of our customers. So, I think we should implement it next to the scanning solution. I was wondering though if the streamdetection should do a callback to an interface, or should immediately run the command as it is so basic/standard functionality that a callback would be overhead. Not sure though what to scan for. Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 09:36 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] STRPCCMD - STRPCO uses? Hello all I have seen a couple of people now trying to use this command. Does anybody have any ideas on it's use or do they use it? If so then how? The reason I ask is that I do beleive we can do this within the emulator as well. That would work for linux environments as well :-)) If there is enough interest in this I will give it a try for the next release? Also if anybody has any technical documentation on this and would share it with me that would be great. Regards Kenneth --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] What about to move to 1.4 and drop 1.3 ?
Sounds good to me! Wim. Patrick Bielen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 14:13 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] What about to move to 1.4 and drop 1.3 ? Hi Guys, Since 5.0 is already official released and they're already working on 6.0 (which you can already beta-test) don't you think it's time to move to 1.4 and drop the old 1.3 code ? The reason i ask is because i get a bunch of deprecated CharToByte convertors which should be replaced by the java.nio.charset class instead of using those old sun.io classes. That way we can also cleanup some code and maybe that even makes some sence to the performance of the overal tn5250j program ? What do you guys think ? Met vriendelijke groeten, Best Regards, Patrick Bielen System-Administrator Stafa Holland BV Microsoft Certified Professional Sun Certified Java Programmer
Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
Actually Kenneth, it is even simpler I think. The STRPCO command actually doesn't do anything (anymore). Just the STRPCCMD fails if you have not issued a STRPCO in advance. It is just client access that scans for what is in the stream on STRPCCMD and indeed scrapes the command and runs it and does an enter. As such it seems the screen has never been displayed. HTH, wim Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 10:52 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD - STRPCO uses? Wim Well first off that test screen you have is pretty cool :-) Second it looks sort of like what we did for the scanner. So basically what it does is this. 1) Sends the screen with a special command modeled after our scanner stuff. 2) if it does receive this and PCO is active then it will read the screen and not display it. Even sending an Enter key afterwards could be. Would actually need to sniff the interaction but I think that is what it does. 3) If it is not active just display the screen like it says. Basically turning on and off the scanner by a 5250 screen command. This stops other emulators from continuing. Very simple indeed. The solution was elegant. Like I said in one of the previous messages to Pete. It is not the 5250 data streams themselves but how the client interprets and manipulates what is there. Now that is cool!!! Regards Kenneth Quoting [EMAIL PROTECTED]: Kenneth, I'm completely with your proposal about the STRPCCMDJ as it will allow for so much more than STRPCCMD. The problem being however you application has to run on TN5250j. Most of the customers use e.g. third party software where the STRPCCMD is programmed in the application. so they can not change it. The call is used for the most stupiest stuff you can imagine. e.g. open an image or a word document; Whatever. You imagine it they do it somewhere; That is the main reason I think we need to implement standard STRPCCMD behaviour. As a matter a fact the STRPCCMD functionality is implemented so simple it is even stupid. Look at the screenshots below Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 10:00 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD - STRPCO uses? Wim I have been thinking about this ever since Ignacio posted to the list. My idea was to implement our own STRPCCMD command maybe called STRPCCMDJ or something stupid like that. Here we just attach a scan listener like you do in one of the modules maybe My5250 and take care of it that way. When we get the command we can parse it and anything that has #!STRPCCMD x in it we just execut it. Was going to be one of my sample/examples :-) Technical question? Is there a special stream passed back for this type of call? If there is would it be the -128 code that Ignacio posted? If it is where did he get the information from? Also what do they use it for? Sorry but can not really think of a use. Am just a lowly programmer and not into the solutions that you and the others out there do. Cool!!! Let's make this sucker jump through some hoops now that the code base is stable. This could turn out to be a lot more flexible that what CA provides as well. We could also allow a custom implementation to be loaded from the command line so the clients can load their own modules to handle this in their own way. Regards Kenneth Quoting [EMAIL PROTECTED]: Hello Kenneth, I've been looking on this issue also, because STRPCCMD is used by almost all of our customers. So, I think we should implement it next to the scanning solution. I was wondering though if the streamdetection should do a callback to an interface, or should immediately run the command as it is so basic/standard functionality that a callback would be overhead. Not sure though what to scan for. Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 09:36 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] STRPCCMD - STRPCO uses? Hello all I have seen a couple of people now trying to use this command. Does anybody have any ideas on it's use or do they use it? If so then how? The reason I ask is that I do beleive we can do this within the emulator as well. That would work for linux environments as well :-)) If there is enough interest in this I will give it a try for the next release? Also if anybody has any technical documentation on this and would share it with me that would be
Re: [Tn5250j-general] STRPCCMD - STRPCO uses?
And from what do I start? Can I also do it at the beginning of next week? Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 16:34 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD - STRPCO uses? Wim Yep sure do. That is how I do the hotspots for http/https and the such for launching the different browsers. Is there anyway for you to give it a go and finish up parsing the command? I have to get studying and put out a release tomorrow. Next week is for my exams as I have put them off long enough. I wrote routines in the OperatingSystem module to do the calls for execute. It will need to be changed to do a wait though but that is not a problem the code is still there just commented out. On thing is for windows and others for linux and such. You could always call the command.exe like CA does and it will pull up a dos window. If not then it will just execute the code. Either one is fine with me. Regards Kenneth Quoting [EMAIL PROTECTED]: Hello Kenneth, this all sounds logical to me. So I think it will do. Do you know how to to launch the command and possibly wait for it to finish? I'd suggest the Runtime.exec() and Process calls? Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 16:04 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD - STRPCO uses? Wim Yes I found that out after running a sniffer on CA. I will bet it used to though because it always says to run the PCO.EXE command on the PC side. I thought at first that was what was happening. Really did not need to but wanted to know for sure. Here are the codes that are specified in the data stream: -128 - -4 - -41 - P -61 - C -42 - O 64 - -125 - c -128 - -95 - ~ -128 - -128 - --- This says to wait for process to finish a value of -127 says not to wait. Here is the code I added to writeToDisplay: case -128: // strpccmd if (screen52.getCurrentPos() == 2) { System.out.println(got a -128 command for strpccmd + screen52.getCurrentPos()); int[] crap = new int[15]; for (int i=1;i11;i++) { crap[i-1]+=bk.getNextByte(); System.out.println(crap[i-1] + - + codePage.ebcdic2uni(crap[i-1])); } for (int i=1;i11;i++) bk.setPrevByte(); //sendAidKey(AID_ENTER); } There is no break; after this command so it continues processing as normal with the default: This dumps it all out. I did not parse the command from the screen yet though. Have kind of been thinking the best way to do this. I did not want to parse the command text directly from the datastream but will wait to build the full screen and set a variable to say we are in command mode. At the end of the code right before we do the update of the screen I will check for this variable of whether true or false and if true will call the routine to parse the command from the already translated screen. This will also skip the call to update the screen so we see no flash. Also with the aid of this you will not get that last screen while doing a signoff. I was parsing from the screen and checking for the codes but what I was thinking was that with different languages those codes might be different because of the translation from ebcdic to ascii. Thus the reason for parsing it in WriteToDisplay and not the place of scan method. What do you think? Regards Kenneth Quoting [EMAIL PROTECTED]: Actually Kenneth, it is even simpler I think. The STRPCO command actually doesn't do anything (anymore). Just the STRPCCMD fails if you have not issued a STRPCO in advance. It is just client access that scans for what is in the stream on STRPCCMD and indeed scrapes the command and runs it and does an enter. As such it seems the screen has never been displayed. HTH, wim Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 17/06/2005 10:52 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject Re: [Tn5250j-general] STRPCCMD - STRPCO uses? Wim Well first off that test screen you have is pretty cool :-) Second it looks sort of like what we did for the scanner. So basically what it does is this. 1) Sends the screen with a special command modeled after our scanner stuff. 2) if it does receive this and PCO is active then it will read the screen and not display it. Even sending an Enter key afterwards could be. Would actually need to sniff the interaction but I think that is what it does. 3) If it is not active just display the screen
Re: [Tn5250j-general] Passing User ID and Password in Applet
Hello Pete, I'm not quite sure why everybody make a problem about the clear passwords. When you would send them encrypted, the emulator telnets to the AS/400 and what does he do in the first place: send your userid and password to the as/400. I think that these are in clear text also. The only solution would be to SSL or VPN your communication to your webserver and AS/400. Next the autoclosing is fairly easy to implement using the autologin and scanning we have introduced in the emulator: when logging on you want to autostart a command. Lets call this the application command. What you can do is wrap this app command in you own shell command. e.g. start cmd('appcmd'). The start can do a few thing like setting liblists etc. But it's main purpose is to properly shutdown the emulator. You can do this in 2 ways: to a signof with disconnect. At the emulator side, you can attach a sessionlistener and have you applet navigate away from you page as the session gets disconnected. Or the start command can also trigger a scan code to the emulator: #! END so the applet can listen to this and perform an end of session. This way you can do a lot more than just ending. Hope this helps, Wim. Pete Helgren [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 15/06/2005 21:06 Please respond to tn5250j-general@lists.sourceforge.net To TN5250J List tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] Passing User ID and Password in Applet I had posted some of this about two years ago when I first started working with the 5250 applet. The problems that I had (and still have) have to do with the passing of UserID and password in the clear when I start an applet session. Gaurav posted some code that has a servlet that talks to the applet and passes the password back to it. I think I can follow the approach but wanted to know if anyone else had solved this problem in a different way. We have an HTML based menuing system that runs on the iSeries (under an Apache web server). The user logs in via an HTML login prompt and then the menu(s) are generated from there. Some of the menu items are HTML based but some are 5250 apps and we launch them using tn5250j in an applet. We generate the HTML that launches the applet on the fly using a template but so far we have had to pass the password in the clear, not a good solution. So, if you have any ideas that we could use to start the applet without passing the password in the clear, I'd like to hear about it. We also have a need to end the application gracefully when the users are done running the 5250 application. Right now, we display a message that says Click the Exit link to end the program and the user has to click the link to end the session. What I would like to do is have the applet close when the 5250 application has ended automatically. I am not sure how to accomplish this since the 5250 session would have to tell the applet to close I'd appreciate anyone's idea as to how to solve these two issues as simply as possible. Thanks, Pete Helgren --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] tn5250j portal
Hello Kenneth, Maybe what he says is true, but if you start hacking the GUI class to inject you own user credentials, you do worse then structuring not the best OO code. Why doesn't he just use the SessionBeans class and wrap it up in his own JFrame to webstart that one? We have a project under way next weeks that has to do exactly what that guy is talking about. Regards, Wim. Kenneth Pouncey [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 08/06/2005 22:10 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] tn5250j portal Hello all I thought this was pretty cool: http://www.itjungle.com/fhg/fhg042005-story01.html Only negative part was the part of : >From an object-oriented perspective, the TN5250j code base is not the best, but the application itself is really stable. But other than that nice article. Kenneth
RE: [Tn5250j-general] binary sent out
Hello Patrick, It's not just a question of JRE versions but rather an API discussion. A lot of APIs have been changed in 5.0 which will make the 1.4 installations fail! Patrick Bielen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/06/2005 14:07 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject RE: [Tn5250j-general] binary sent out Hi Wim, I'm not sure if this is a good suggestion to move to java 5.0. It'll force all users to 5.0! We e.g. can not move to 5.0 yet because there is no J2EE version for 5.0. So we would have to develop our clients on 5.0 and our server side against 1.4. I'm not sure we would like that. Any other ideas on this matter? Sure, compile the code on 5.0 with the 1.4 compat flag, so that 1.4 users can still run the software. Met vriendelijke groeten, Best Regards, Patrick Bielen System-Administrator Stafa Holland BV Microsoft Certified Professional Sun Certified Java Programmer
RE: [Tn5250j-general] Applet Deployment
: Tue, May 10, 2005 8:58 am To: tn5250j-general@lists.sourceforge.net Hello Michael, If I'm correct there is no correct way to deploy a java policy file when deploying an applet. So the easiest way would be to sign your applet. You can generate your own (test-)certificate for signing. Another possibility would be to start your emulator with webstart. This allows for easier policy file replacement or for unsecured deployment. Problem with applets is that a refresh of the web page will relaunch your applet and thus kill your 5250 session? HTH, Wim Van Leuven. [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/05/2005 14:48 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] Applet Deployment Hi folks - Installed tn5250j yesterday and got it working as an applet. Very nice code...thanks for putting it together. Question: Do I have this right? I either need to deploy a .java.policy file to client PCs that want to access my iSeries, or I need to digitally sign the applet. Any good methods of deploying the .java.policy file? Thanks... - Michael --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] Applet Deployment
Hello Michael, If I'm correct there is no correct way to deploy a java policy file when deploying an applet. So the easiest way would be to sign your applet. You can generate your own (test-)certificate for signing. Another possibility would be to start your emulator with webstart. This allows for easier policy file replacement or for unsecured deployment. Problem with applets is that a refresh of the web page will relaunch your applet and thus kill your 5250 session? HTH, Wim Van Leuven. [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/05/2005 14:48 Please respond to tn5250j-general@lists.sourceforge.net To tn5250j-general@lists.sourceforge.net cc Subject [Tn5250j-general] Applet Deployment Hi folks - Installed tn5250j yesterday and got it working as an applet. Very nice code...thanks for putting it together. Question: Do I have this right? I either need to deploy a .java.policy file to client PCs that want to access my iSeries, or I need to digitally sign the applet. Any good methods of deploying the .java.policy file? Thanks... - Michael --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
[Tn5250j-general] Selection rectangle
Hello everybody and Kenneth!! Got some technical question our customers are teasing us with. For copying and pasting text they of course use the selection rectangle. Since the latest releases however they tell us the behaviour has changed and has become awkward in the way the rectangle keeps it's first origin location. Moreover the rectangle sometimes gets corrupted, thus making it impossible to continue copying and pasting text. Does anybody has any ideas where to start first? Can this issue be resolved or is it a feature instead of a bug? Thanks for any help, Wim Van Leuven. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
RE: [Tn5250j-general] JTOpen toolkit and passwords
Hello Patrick, no. Sorry no Jython script. Not that I do not now Jython (I do NOT), but it's not that easy! It should be added to emulator itself. It would then be usable for Jython also. But I see you are a certified Java developer? wim. |-+--- | | Patrick Bielen| | | [EMAIL PROTECTED] | | | Sent by:| | | [EMAIL PROTECTED]| | | ceforge.net | | | | | | | | | 14/04/2005 16:07| | | Please respond to | | | tn5250j-general | | | | |-+--- ---| | | |To: tn5250j-general@lists.sourceforge.net | |cc: | |Subject: RE: [Tn5250j-general] JTOpen toolkit and passwords | ---| Hi Wim, The same thing you are trying to do here is already implemented in the SessionBean class in 5250. Hope this helps, Not really, can you provide a little jython script as an example ? Met vriendelijke groeten, Best Regards, Patrick Bielen System-Administrator Stafa Holland BV Microsoft Certified Professional Sun Certified Java Programmer --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Tn5250j-general mailing list Tn5250j-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tn5250j-general
Re: [Tn5250j-general] JTOpen toolkit and passwords
Hello Patrick, The same thing you are trying to do here is already implemented in the SessionBean class in 5250. What you should do, I think (and we do it all the time in our ERP systems based on our own Java Workflow framework for iSeries) is setup a cache of authentications for the user. When he first tries to access a system by name, you should get his profile from the cache (userid password). If its not there, you should popup you own dialog to ask for, try to authencitcate the user by using the following code: String user = dialog.getUserName(); String pwd = dialog.getPassword(); String host = myhost; AS400 as400 = new AS400(host); as400.setGuiAvailable(false); // disables all password popping as400.authenticate(user, pwd); cache.put(name, new User(user.pwd); When you need a 5250 connection, create a sessinbean, set its properties and connect. Also set userid and password. Normally the bean allows you to login automatically by keystroke simulation or by embedding the credentials in the datastream (for the last to work your as400 must allow this by setting the system value QRMTSIGN to *VERIFY). The property bean.setSignonEmbedded() controls how the emulator does the auto signon. Hope this helps, Wim. |-+--- | | Patrick Bielen| | | [EMAIL PROTECTED] | | | Sent by:| | | [EMAIL PROTECTED]| | | ceforge.net | | | | | | | | | 13/04/2005 09:06| | | Please respond to | | | tn5250j-general | | | | |-+--- ---| | | |To: tn5250j-general@lists.sourceforge.net | |cc: | |Subject: [Tn5250j-general] JTOpen toolkit and passwords | ---| Hi Guys, It's been a long time, let's pump up the channel again :-) I want to discuss the password-issues again. As you all know we have to provide tn5250j or any jython script we create with a valid password over and over again. Since yesterday i finally saw you're able to provide the AS400 class com.ibm.as400.access.AS400 with the next statement to keep the password in cache. AS400.setPasswordCache(1) -- in jython AS400.setPasswordCache(true) -- in java is the statement to let the jtopen toolkit store the password in cache. So if we can change tn5250j somewhat so that when we give username and password for the first time (for example when we provide the data for the first login-session) and then imediately let jtopen open an iSeries connection and also close it right away then we're sure the password is in cache, which means that when we have to open a new connection to the iSeries, that we simply can use the next command to logon without the password dialog popping up... AS400(as400.stafa.nl, System.getProperty(user.name)) On our systems, the user.name of the windows-box is the same as the profile on the iSeries, but for other users it should be possible to store the username in a variable by the first logon-session. In other words, if we should do it that way, and for example create a variable that hold the username (read profilename) then we could just use AS400(as400.stafa.nl, ProfileVar) to open a connection to the iSeries and users are happy cause they do not have to provide that freaking password over and over again. What do you guys think about that The password needs only to be referenced once, when we get the logonscreen for the first time and only then, so there is no need to store the password into a variable like we do for the username, cause the password is stored in the cache we do not need a variable for it and we are save again in the view of security, cause you're not able to obtain the password in any way, except for logging in with jtopen cause it stored that password in cache the very first time. If all this above is not clear, read it over and over again, and just ask if something is unclear. If this