That would do it.  I think after that you would be set.

[EMAIL PROTECTED] wrote:

Kenneth,

we use the protocolbean in our screenscraper. So it is sort of headless it is working. We do trap the paint requests. So it certainly should be possible.

Only adjustment that has to be made is allowing the GUITerminal receive a protocol instead of creating one itself.

Wim.




Kenneth Pouncey <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

09/06/2005 15:35


To
tn5250j-general@lists.sourceforge.net
cc

Subject
Re: [Tn5250j-general] tn5250j portal








Wim

Theoretically that should be possible.  The reason I say theoretically is that
the only thing the gui would do is attach listeners for the object events it
wants to see.  So you should be able to send keys and as long as there are no
listeners attached the events will not be sent.  

After all the keys are sent and the screen you want is there you then send this
through to the GUITerminal which will obtain the information from the object(s)
and then create the event consumers.  Once the consumers are there is when the
gui will start receiving the painting instructions.

Now I have not looked at those in a while but I am not sure why it could not be
done with what is there.  Well I am saying what is there in CVS now for
headless.  Not sure how much code you used from the new headless code or what
was changed but I can not see a problem with doing this at all.

Like I said it would kind of be what is being done with the Web5250 stuff.

If there is a problem with doing it this way I would not think it would be to
much of a problem to change it to work that way.

Damn the flow in my head says it works this way but without an acutal test....

Regards

Kenneth




Quoting [EMAIL PROTECTED]:

> Kenneth,
>
> the modals are very simple: you are in a GUI panel, click a button, 5250
> terminal comes up positioned on a specific screen. The user keys in his
> information, hits enter and the emulator automatically closes. The GUI
> underneath picks the use case up again and goes on. While the emulator is
> open, the GUI is inaccesible.
>
> Secondly, I know the emulator support headless operation throught the
> protocol bean. But can I create a protocol bean, to everything I need and
> next create a GUI terminal that hooks up to the protocol bean? Like an new
> GUITerminal(myProtocolBean).
>
> wim
>
>
>
>
>
> Kenneth Pouncey <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 09/06/2005 14:56
> Please respond to
> tn5250j-general@lists.sourceforge.net
>
>
> To
> tn5250j-general@lists.sourceforge.net
> cc
>
> Subject
> Re: [Tn5250j-general] tn5250j portal
>
>
>
>
>
>
> Wim
>
> Thanks for taking the time to answer my questions.
>
> Quoting [EMAIL PROTECTED]:
>
> > Kenneth,
> >
> > - Indeed the SSL is not necessary in our case as it's across VPN or
> > something. The customer has it setup as some special service from their
> > provider using straight through ADSL connections on some kind of
> corporate
> > infrastructure.
>
> OK
>
> > - We'll be working through the sessionbeans indeed; In this case it'll
> be
> > standard 5250 as we all use it. Not the screenscraping part.
> > - What we normally do, is to wrap the normal command they want to launch
>
> > in a special command of our own. E.g. instead of issuing a WRKUSRJOB
> > USER(user) we issue a STRCMD CMD('WRKUSRJOB USER(user)'); the only thing
>
> > our STRCMD does is launching the command, but when the normal command
> ends
> > and we fall back in the program stacking onto our wrapper command, we
> send
> > the !# event or just do a signof with disconnect. The emulator at the
> Java
> > side knows to close itself then. In GUI mode we can then even issue 5250
>
> > as modal dialogs etc without a problem.
>
> Could you explain this of the modal dialogs.  Did you have to change the
> application programs to do this?
>
> >So we do make it interactive! We
> > can not however send back information towards the web application
> directly
> > as we can keep synchronisations in there. We did once start to cache the
>
> > 5250 sessions, but that poses more of problem than it brings advantages.
>
> > The only thing I still would like is to be able to create a protocol
> bean,
> > connect it, start the initial command and only then hook it to a
> > interactive terminal. This way the user would'n see the login and launch
>
> > scenario pass by as they do now.
>
> But I think it can work that way now in the code base that is in CVS.
> Maybe I
> am misunderstanding this because the Web5250 works mostly this way in
> headless.
>
> > - I would really like to donate the screen scraper back to the
> community.
> > Honestly. The problem right now is that you need a specific view factory
>
> > to scrape the screens correctly. At this point we only have one factory
> > that interprets customer specific screens and is not generally usable.
> We
> > would like to build such a factory for the IBM 5250 guidelines as we use
>
> > them in all our appliations Then it would become very useful for
> > everybody. We however do not have the time at this point. It is however
> > just a work of a few days. Note that the customer specific factory even
> > translates functions to menu's and toolbar buttons. Another major
> > enhancement would to recognize subfiles and translate them to tables.
>
> No problems.  Am sure we will get around to it sometime.  We all work
> within
> time constraints.
>
> >
> > Hope this helps,
>
> Yes
>
> Regards
>
> Kenneth
> > Wim.
> >
> >
> >
> >
> >
> >
> > Kenneth Pouncey <[EMAIL PROTECTED]>
> > Sent by: [EMAIL PROTECTED]
> > 09/06/2005 11:24
> > Please respond to
> > tn5250j-general@lists.sourceforge.net
> >
> >
> > To
> > tn5250j-general@lists.sourceforge.net
> > cc
> >
> > Subject
> > Re: [Tn5250j-general] tn5250j portal
> >
> >
> >
> >
> >
> >
> > Wim
> >
> >
> > Quoting [EMAIL PROTECTED]:
> >
> > > Hello Kenneth,
> > >
> > > we have to build an extranet application for a customer hooking up
> onto
> > > their existing AS/400 applications. Well, it's not really an extranet
> > app.
> > > All users are on VPN hooken in directly on the LAN. This means we can
> do
> >
> > > something. The users are the commercial  exterior service force of the
>
> > > customer. So they'll also need existing applications over the
> > > functionality provided by the new webapplication as we can not convert
>
> > all
> > > software at once.
> > >
> > > The web application will be based on JSF talking over our Java/iSeries
>
> > > connector to RPG backend system. We've done this a few times now. Some
>
> > > links on the website need to launch a 5250 application with autologon
> > and
> > > command calling. As said it's going to be used on an 'intranet' and
> > > secured.
> >
> > Yes got that now.  Been away from thinking this way for a few months so
> > that
> > makes sense.
> >
> > >So we can pass uids and pwds around freely. The emulator itself
> > > passes it also unencrypted. In our situation this is not a concern.
> > > Otherwise, you should SSL the connection, I think.
> >
> > Yes it does pass it as unencrypted and yes an SSL connection would make
> it
> > more
> > secure but you already have it encrypted with the VPN, probably using
> > IPSec or
> > 3Des correct?
> >
> >
> > >
> > > We were indeed thinking in webstarting an parameterised JFrame with
> > > systemname, uid, pwd and command etc.
> > >
> > > What's your opinion?
> >
> > Yes I agree.  You will be setting up a SessionBean for that correct and
> of
> > course your own JFrame?  Will the JFrame mentioned here be your
> JTerminal
> > that
> > we have discussed in the past?
> >
> > Does this also use your screen scraping modifications?
> >
> > >From there to start other applications I guess you have special
> > application
> > screens that use the '#!' signature to pass remote commands back to be
> > executed
> > correct?
> >
> > When the person is finished with the 5250 session/function does it stay
> > open or
> > automattically closed down after the function is complete?  Well that
> > would be
> > more of an interactive session so probably not worth thinking about.
> >
> > Thanks for the info Wim
> >
> > Kenneth
> > >
> > > Wim.
> > >
> > >
> > >
> > >
> > >
> > > Kenneth Pouncey <[EMAIL PROTECTED]>
> > > Sent by: [EMAIL PROTECTED]
> > > 09/06/2005 09:36
> > > Please respond to
> > > tn5250j-general@lists.sourceforge.net
> > >
> > >
> > > To
> > > tn5250j-general@lists.sourceforge.net
> > > cc
> > >
> > > Subject
> > > Re: [Tn5250j-general] tn5250j portal
> > >
> > >
> > >
> > >
> > >
> > >
> > > Wim
> > >
> > > The other reason I am asking you the specifics is because I did not
> like
> >
> > > the way
> > > the arguments were being passed for the user and password.  It is
> > > basically in
> > > clear text for anyone with a little knowleged to look at.  Maybe there
>
> > is
> > > a
> > > better way to do this?
> > >
> > > Maybe my definition of portal needs to be updated a little bit.  A
> > little
> > > reading I guess should do the trick.  Also a real world example would
> > > benefit
> > > not just myself but others that are interested as well.
> > >
> > > Regards
> > >
> > > Kenneth
> > >
> > > Quoting Kenneth Pouncey <[EMAIL PROTECTED]>:
> > >
> > > > Wim
> > > >
> > > > Beleive me I will be the first to admit that the code is not the
> best
> > OO
> > > > code
> > > > base.  Although it is a hell of a lot better than it used to be.  I
> > > think
> > > > the
> > > > refactoring went well over all IMHO.
> > > >
> > > > Actually started to write him about the SessionBeans class but
> decided
> >
> > > not
> > > > to
> > > > get in the middle.  Am thinking maybe he based this off of an old
> > > > distribution
> > > > code base and not CVS as he mentions in the article to download the
> > > latest
> > > > source bundle.
> > > >
> > > > Anyway it is good to see something different for the use of the
> > codebase
> > > so
> > > > it
> > > > can not be too bad.
> > > >
> > > > What exactly are going to try to do with this if you do not mind me
> > > asking?
> > > > Will you be using portals like the article mentions?  If so what are
>
> > the
> > > > benefits and or uses of this over an applit or starting from java
> > > webstart?
> > > >
> > > > I ask so that maybe we can get something written up to some extent
> on
> > > how
> > > > you
> > > > will actually go about doing this without all the modifications.  We
>
> > can
> > > put
> > > > it
> > > > out on the website or your company website.
> > > >
> > > > Regards
> > > >
> > > > Kenneth
> > > >
> > > > Quoting [EMAIL PROTECTED]:
> > > >
> > > > > 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
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can
> you
> > > > shotput
> > > > a projector? How fast can you ride your desk chair down the office
> > luge
> > > > track?
> > > > If you want to score the big prize, get to know the little guy.
> > > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > > > _______________________________________________
> > > > Tn5250j-general mailing list
> > > > Tn5250j-general@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> > > shotput
> > > a projector? How fast can you ride your desk chair down the office
> luge
> > > track?
> > > If you want to score the big prize, get to know the little guy.
> > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > > _______________________________________________
> > > Tn5250j-general mailing list
> > > Tn5250j-general@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> > >
> > >
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> > shotput
> > a projector? How fast can you ride your desk chair down the office luge
> > track?
> > If you want to score the big prize, get to know the little guy.
> > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > _______________________________________________
> > Tn5250j-general mailing list
> > Tn5250j-general@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> >
> >
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> shotput
> a projector? How fast can you ride your desk chair down the office luge
> track?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
>
>






-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Reply via email to