• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exporting Code in Visual Age Java 3.5.3

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have developed an application using the EAB and CCF connector types using
VAJ3.5.3. This application consists of Record types, Records, Commands and
Servlets.We are now ready to deploy this application and I would like to
export the source code for this-- have a few basic questions regarding
that--
1. As we have a group of developers, I have only about 30% of the code in my
workspace (of course all of it is in the same repository). If I want to
export the entire source code in to one JAR files, does all of it need to be
in the workspace ?? Is there a way to export all the code from the
repository directly??? If now, do I have to load the code in to my workspace
and create multiple JAR files??
2. If I want to deploy this app in Websphere App. Server v3.5, do I have to
build a separate JAR for the Servlets and separate one for the rest of the
components or call all the code reside in one JAR??
Ay advice and direction would be very helpful.
Thanks very much!
Veni.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Veni Velkoor:
Hi,
We have developed an application using the EAB and CCF connector types using
VAJ3.5.3. This application consists of Record types, Records, Commands and
Servlets.We are now ready to deploy this application and I would like to
export the source code for this-- have a few basic questions regarding
that--
1. As we have a group of developers, I have only about 30% of the code in my
workspace (of course all of it is in the same repository). If I want to
export the entire source code in to one JAR files, does all of it need to be
in the workspace ?? Is there a way to export all the code from the
repository directly??? If now, do I have to load the code in to my workspace
and create multiple JAR files??


Yes, JAR files created in VAJ can only contain code that is currently loaded in the workspace. So you will have to load all of the code into your workspace to create the full JAR.


2. If I want to deploy this app in Websphere App. Server v3.5, do I have to
build a separate JAR for the Servlets and separate one for the rest of the
components or call all the code reside in one JAR??


In WebSphere 3.5 it can all reside in one JAR file.


Ay advice and direction would be very helpful.
Thanks very much!
Veni.


You're very welcome.
Kyle
 
Veni Velkoor
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello(Kyle),
Thanks for the prompt response....so here goes part 2 of my query--
In our situation we cannot load all the code in to the workspace at one time (as I get memory errors becoz my workspace containing about 1/3 of the source code is already 90+MB).
So, can I load one third of the code in to workspace each time and create 3 or 4 jars this way??? Is there a problem if all the code in an application is not in the same JAR file, but is spread out across 3,4 or 5 JARs???
Even if this is okay, do u, in ur experience, see any potential future problems with this way of doing it???
Thanks again!
Veni.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you can create separate JAR files of each section and then piece them together by putting all of the JARS on the web application classpath in WAS AE.
However, this worries me -- how many classes are you talking about? How much memory do you have on your machine?
Kyle
 
Veni Velkoor
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle,
We are following one of IBM's models(described in Enterprise Access Builders in VA JAVA's PDF index under help) to provide new frontends to backend CICS apps using the CCF connectors.
So, to answer your question about the number of classes for each backend screen on the VA JAVA side, there are six components--
Record Type (converts COBOL rectype to JAVA)
Record (an instance of the rec type)
RecordBean Info
Command(handles the comm with CICS)
Command BeanInfo
Servlet
And we have about 100+ screens for our software so that is about 100 times 6 (600+) number of classes and that is a lot of classes.As of now, I might have only about 1/3 of the screens done and my workspace is already at 90MB+.As of now all the classes reside under One Project and one package.
So that is a concern...while we have more screens(and hence classes) done and available int he repository, I am even not ablt to load them to my PC which is a 512MB 1GHz machine. As far as actually running them there hasn't been a performance issue yet, but it is more in loading these in to the workspace at this point!!
Any ideas??? Would breaking these up in to multiple pacakges or even package/project combinations be of any use??
Thanks for any input again!
Veni.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutely yes! Splitting it up into multiple packages would be an EXCELLENT start at making life easier for you -- it's far easier to pick and choose out of a few packages (say 5 or 10) than out of 600 classes!
I'm not quite up to recommending you do it as multiple projects, though --- that's a bit tricker.
Also, don't expect your workspace to grow linearly -- a lot (and I mean a LOT) of that 90M space is taken up by things that you probably aren't using -- have you tried (for instance) loading your project into a fresh VAJ workspace and looking at the size recently? I'd expect it to be smaller than 90 Meg.
Kyle
 
Veni Velkoor
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes, I have, a couple of times, downloaded a fresh ide.icx and tried reloading all the necessary packages and my project in there.... it aways gows up to the 90MB size again usually. In fact I have even removed all the packages I am not current;y using such as the SSL API etc. Here is the approx breakup of the workspace size--
clean ide.icx -- 10MB (as is from Instantiations.com)
with all the necessary features(such as CICS connector/WTE etc) loaded-
29MB
My project DSS loaded (only to the previous edition which is abt 65% of the
code there) - 68MB and on adding a few more screens(6 classes each) it soon reaches the 90MB range.

So again, here is my next question--I agree that breaking in to seperate packages willbe the best option.
Q1. Now, if a class from one package needs to access a class from another package do I have to domake any specail changes to the code I have so far or will having both the packages in the workspace be sufficient ?
Q2. How does this work during deployment...can I just build a seperate JAR for each package and if the classpaths are set correctly, will the classes be able to communicate effectively between jars??
Thanks again for patiently answering my many queries!!
Veni.
 
reply
    Bookmark Topic Watch Topic
  • New Topic