Re: [Tn5250j-general] Updates

2009-03-06 Thread Christian Geisert
kjpou schrieb:
 hello all
 
 The project has been migrated to svn thanks to Christian.
 
 Please try it out and post any problems.

Just did a quick checkout (svn co 
https://tn5250j.svn.sourceforge.net/svnroot/tn5250j/trunk/tn5250j),
a build and then a successful connect to our AS/400.


Christian

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Updates

2009-03-06 Thread Christian Geisert
Davide Grandi schrieb:
 tags :
 I see only 0.5.x.
 apart from  setting a common way to name the old releases there's should 
 be a tag for the current trunk (0.6.0. I think).

Looks like there is no 0.6.x tag in the cvs repository, otherwise 
cvs2svn would have converted it.

+1 for consistent tag naming (easy to change with svn)

 trunk :
 maybe 'CVSROOT' should go away (may be...)

Yes, and .cvsignore too ;-)

 HEAD seems a sort of duplicate of '/tn5250j/src'

Yes, a rather old one which I think could be removed.

Thanks for reviewing!

Christian

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Updates

2009-03-04 Thread Christian Geisert
kjpou schrieb:
 Christian
 
 Thanks for doing the conversion.
 
 I went out there last night but there was no file to import so thought 
 it might take a while to show up so did not post anything.  Still no 
 file out there as of this morning.
 
 *Source data type Source file Destination [1]Replace [2]
 SVN dump file archive No valid files were found for importing, 
 please consult the documentation.*
 
 Do you think I need to wait or is it that since you uploaded the file it 
 does not allow me to view it?

The problem here is probably just that I don't know exactly where to put 
the svn dump... I've moved it to /home/groups/t/tn/tn5250j/ now.

Christian

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Updates

2009-03-02 Thread Christian Geisert
kjpou schrieb:
 Hey all

Hi Kenneth, great to have you back!

 Anybody out there from the old days still around?

Sure. Still using tn5250j almost every day ;-)

 I received no takers on the CVS to SVN so will give it a shot.

I've done some cvs2svn migrations in the past and I'm happy to help.
I hope I'll find some time tomorrow to have a closer look at it .

Christian

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Updates

2009-03-02 Thread Christian Geisert
Christian Geisert schrieb:
 kjpou schrieb:

[..]

 I received no takers on the CVS to SVN so will give it a shot.
 
 I've done some cvs2svn migrations in the past and I'm happy to help.
 I hope I'll find some time tomorrow to have a closer look at it .

Ok, just had a first look

The cvs repository is available via rsync:
rsync -av tn5250j.cvs.sourceforge.net::cvsroot/tn5250j/* .

A first run with cvs2svn didn't show any problems (need to check eol 
style and binaries) and produced a (compressed) 27M file.

Kenneth, if you enable subversion support at SF we could try an import 
tomorrow.

Christian

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Print screen whit Java 1.6

2008-01-03 Thread Christian Geisert
Richard Houston schrieb:
 Hey Everyone,
 
 Hope you all had a great holiday and got some time off.

Way to short but will go skiing for a week on January, 12th ;-)

 Was wondering if anyone has had a chance to look the below issue? I know
 your all busy so I humbly ask this question of you.

Sorry, I just switched to Java 5 (with the long overdue migration
from Debian SID to Kubuntu 7.10), haven't used Java 6 yet..
I'll try to test it somewhere ... sometime

Christian

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-12-10 Thread Christian Geisert
Christian Geisert schrieb:
 Richard Houston schrieb:
 Hey Everyone, Just wondering if there was anything I could do to help the
 debugging of the STRPCCMD code. My client is looking forward to putting
 another nail in the client accesses coffin in there environment and this
 function would do that. Please let me know if there is anything I can do
 to help out.
 
 I didn't find the time until now but I hope I'll have the patch ready 
 early next week.


Finally here's a patch for testing

This is based on work by Wim Van Leuven with adaption from Mahmoud
GANGAT - I just did change the check for the PCO string which didn't
work for me (problem with codepages..)


A nice story aside: Last week I was at IBM (to test Apache OFBiz on the
System i) and guess what the IBM guy used to access the System i?
Yes, he was running tn5250j!! Woohooo that made already my day - and
Java performance looked really good on the new maschine ;-)

--
Christian

Index: src/org/tn5250j/framework/tn5250/tnvt.java
===
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/tnvt.java,v
retrieving revision 1.18
diff -u -r1.18 tnvt.java
--- src/org/tn5250j/framework/tn5250/tnvt.java  13 Dec 2005 11:53:00 -  
1.18
+++ src/org/tn5250j/framework/tn5250/tnvt.java  10 Dec 2007 17:34:11 -
@@ -36,6 +36,7 @@
 import java.io.OutputStream;
 import java.net.Socket;
 import java.util.Properties;
+import java.util.Arrays;
 
 import javax.swing.JDialog;
 import javax.swing.JLabel;
@@ -90,6 +91,8 @@
// WVL - LDC : TR.000300 : Callback scenario from 5250
private boolean scan; // = false;
private static int STRSCAN = 1;
+// WVL - LDC : 05/08/2005 : TFX.006253 - support STRPCCMD
+private boolean strpccmd; // = false;
private String user;
private String password;
private String library;
@@ -918,7 +921,61 @@
 
invited = true;
}
-
+
+   // WVL - LDC : 05/08/2005 : TFX.006253 - Support STRPCCMD
+   private void strpccmd()
+   {
+  try
+  {
+ int str = 11;
+ char c;
+ ScreenPlanes planes = screen52.getPlanes();
+ c = planes.getChar(str);
+ boolean waitFor = !(c == 'a');
+ 
+ StringBuffer command = new StringBuffer();
+ for (int i = str+1; i  132; i++)
+ {
+c = planes.getChar(i);
+if (Character.isISOControl(c))
+   c = ' ';
+command.append(c);
+ }
+ 
+ String cmd = command.toString().trim();
+ 
+ run(cmd, waitFor);
+  }
+  finally
+  {
+ strpccmd = false;
+ screen52.sendKeys(screen52.MNEMONIC_ENTER);
+  }
+   }
+   
+   // WVL - LDC : 05/08/2005 : TFX.006253 - Support STRPCCMD
+   private void run(String cmd, boolean waitFor)
+   {
+  try
+  {
+ log.debug(RUN cmd =  + cmd);
+ log.debug(RUN wait =  + waitFor);
+ 
+ Runtime r = Runtime.getRuntime();
+ Process p = r.exec(cmd);
+ if (waitFor)
+ {
+int result = p.waitFor();
+log.debug(RUN result =  + result);
+ }
+  }
+  catch (Throwable t)
+  {
+ log.error(t);
+  }
+   }
+   
+   
// WVL - LDC : TR.000300 : Callback scenario from 5250
/**
 * Activate or deactivate the command scanning behaviour.
@@ -1137,6 +1194,7 @@
 // }
 
try {
+if (!strpccmd) {
//   SwingUtilities.invokeAndWait(
//  new Runnable () {
// public void run() {
@@ -1147,6 +1205,9 @@
screen52.updateDirty();
 // controller.validate();
 // log.debug(update dirty);
+ } else {
+strpccmd();
+ }
} catch (Exception exd) {
log.warn( tnvt.run:  + exd.getMessage());
exd.printStackTrace();
@@ -1856,7 +1917,9 @@
//int rowc = 
screen52.getCurrentRow();
//int colc = 
screen52.getCurrentCol();
 
-   switch (bk.getNextByte()) {
+   byte bytebk = bk.getNextByte();
+ 
+   switch (bytebk) {
 
case 1: // SOH - Start of Header Order
log.debug(SOH - Start of Header 
Order);
@@ -2061,7 +2124,37 @@
screen52.addField(attr, fLength, ffw0, 
ffw1, fcw1, fcw2);
 
break;
+// WVL - LDC : 05/08/2005 : TFX.006253

Re: [Tn5250j-general] STRPCCMD

2007-11-28 Thread Christian Geisert
Richard Houston schrieb:
 Hey Everyone, Just wondering if there was anything I could do to help the
 debugging of the STRPCCMD code. My client is looking forward to putting
 another nail in the client accesses coffin in there environment and this
 function would do that. Please let me know if there is anything I can do
 to help out.

I didn't find the time until now but I hope I'll have the patch ready 
early next week.

Christian

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] STRPCCMD

2007-10-29 Thread Christian Geisert
Pete Helgren schrieb:
 Richard,
 
 If you scan the archives for STRPCCMD you'll find some activity from 
 July, 2006, that indicated that the code for the feature hadn't been 
 committed yet.  There was a patch submitted and a full jar containing 
 other items from Win van Leuven.  The code hasn't been committed by 

And I tried to extract just the code for STRPCO, but it didn't work.
Then someone else sent an updated patch which I started to test
but then I got busy with other stuff... I'll see what I can do.

 anyone, in fact the product has been so stable that there hasn't been 
 much activity recently.

;-)

 I meant to apply the updates but I really haven't gotten to it.
 
 I'll see what I can do.  I have had some NPE's plaguing me lately with 
 0.6.1 beta version and I need to get to the bottom of that so if I open 
 up the code again I'll see if I can get the update done as well.

And there are some issues with Java 5 which I'd like to fix.

-- 
Christian


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Extend hotspot functionality

2005-11-28 Thread Christian Geisert
Richard Houston schrieb:
 Hey guys,
 
 Anyone have to time to review the below and if so do you figure we can get
 this merged into the cvs tree?

I hope I'll have some time in the next days.

-- 
Christian


---
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] Issue with JDK 1.5.0_05 on Linux.

2005-09-28 Thread Christian Geisert
Richard Houston schrieb:
 Hi all,
 
 I found an issue using Sun JDK 1.5.0_05 on Linux. If you have two copies
 of tn5250j running, started by launching tn5250j twice, not in tabs. If

Just wanted to try this but I can't select MDI in the
connections/options dialog. Is this working for you?

 you have the windows cascaded, if you click on the back ground tn5250j the
 windows pops forward but the original foreground window is still in focus
 but not in the for ground. Hope that makes seance. The only way to bring
 it into focus it to click IN the foreground tn5250j window which winds
 up changing your cursor position. The users find this to be a bit of a
 pain.
 
 This is not the case using JDK 1.4.2_08 or on 1.5.0_04 on windows.
 
 Any ideas or thoughts.

Sounds like a bug with JDK1.5 under Linux

-- 
Christian


---
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] Export data FROM host

2005-09-26 Thread Christian Geisert
Marc Vos schrieb:
 Hi Kenneth,
 
 I've found a minor error in TN5250j when saving datatransfer settings for a
 transfer from host to pc. When you save the settings, not all is saved:
 
 1) 'full' or 'internal' field names radio button setting isn't saved

Just committed a change which should fix this.

 2) The file format setting is saved, but the parameters which you can set

 when you click the 'change'-button are not.

Sorry, no time to look at this now. You might want to fill a bug report
so this won't get forgotten.

 Regards,
 -Marc Vos

-- 
Christian



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general