Travis Kline

Greenhorn
+ Follow
since Jul 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Travis Kline

Hi All,
I have an application that periodically gets OutOfMemoryErrors when under heavy volume. The application has a max heap setting of 512mb but will experience OutOfMemoryErrors when the free memory/allocated memory is 256mb. Most times the application will then be granted more memory, but sometimes it just hangs.
Is anyone familiar with WebSphere's process for allocating memory to application instances? If the max heap size is set to 512mb, is that reserved for the application? I have also heard people mention "paging" when discussing garbage collection and memory, how does this process work? Thanks for any help....
Travis
20 years ago
Thanks for the reply Pradeep. I was concerned because my old connection pooling code used synchronized routines for both getting and recycling connections.
-Travis
20 years ago
Hi All,
Is it necessary to synchronize methods when getting a connection from a WebSphere datasource?
thanks for any help,
Travis
20 years ago
Hi all,
After migrating from WebSphere 3.5 to 4.0.5 our application is crashing when under a heavy load. I was hoping to get a core dump after the app crashed to find some clues as to what may be causing the problem. Unfortunately, WebSphere does not seem to provide a core dump.
How and when exactly does WebSphere administer a core-dump? Does the developer need to add any specific error/exception handling to receive a core-dump? Any advice/help would be greatly appreciated....
thanks,
Travis
20 years ago
Hi all,
Has anyone received the error, "Unable to save ear", when deploying an ear on WebSphere 4.0? I suspect it is a permission problem because I use the same Ant script on another machine and the generated ear deploys OK. There is a diffence in the umask between machines and I know Ant does not retain file permissions when copying. The build consists of a WAR, utility jars, and a deployed EJB jar. Does anyone know what file permissions WebSphere needs when deploying an ear?
Thanks,
Travis
20 years ago
You can use ejbdeploy.sh on WebSphere to generate deployed code for EJBs.
20 years ago
Hi all,
I am a new to ANT. I am trying to generate the deployment code for EJBs running on WebSphere. Following the code example from the ANT manual, I have written the following:
<property name="websphere.home" value="E:/Program Files/IBM/WebSphere Studio/runtimes/aes_v4"/>
<target name="test" depends="jarUtility">
<ejbjar srcdir="${TestEJB}" basejarname="TESTEJB" descriptordir="${TestEJB}/source/META-INF">
<include name="*-ejb-jar.xml"/>
<websphere ejbdeploy="true" oldCMP="false" destdir="${DEST_DIR}/jar/">
<wasclasspath>
<pathelement location="${WAS_DEPLOY_TOOL}/itp/plugins/org.eclipse.core.boot/boot.jar"/>
<pathelement location="${WAS_DEPLOY_TOOL}/itp/plugins/com.ibm.etools.ejbdeploy/runtime/batch.jar"/>
<pathelement location="${WAS_LIB}/xerces.jar"/>
<pathelement location="${WAS_LIB}/lib/ivjejb35.jar"/>
<pathelement location="${WAS_LIB}/lib/j2ee.jar"/>
<pathelement location="${WAS_LIB}/lib/vaprt.jar"/>
</wasclasspath>
<classpath>
<pathelement path="${DEST_DIR}/jar/Utility.jar"/>
<pathelement path="${WAS_LIB}/j2ee.jar"/>
</classpath>
</websphere>
</ejbjar>
<echo message="Building EJB Jar file ...... SUCCESS"/>

</target>
I do not get any errors in the log, but no jar is generated either. Does anyone have any idea what I am doing wrong? Any help would be greatly appreciated.....
thanks,
Travis
20 years ago
Hi all,
I am using a default tree model with custom tree nodes to represent some data objects. These data objects are constantly changing and I do not always know which one the user is currently working with. DefaultTreeModel.nodeChanged(myNode) works nicely on an individual basis but I need something that will refresh the entire tree. DefaultTreeModel.reload() works but I lose the expanded tree path. Any suggestions? Thanks.....
21 years ago
Has anyone ever worked with JColorChooser inside an applet? It appears to need a 'modify thread' permission in order to be instantiated. Is there anyway to get around this? Any advice would be appreciated...
Thanks,
Travis
21 years ago
I am working with both stateless and stateful sesssion beans within Visual age for Java. I was wondering if anyone could give me a general overview of the proper way to invoke/use these beans. I was told it was best to cache the EJBHome object and continually call the create() method to obtain the remote object when working with stateless beans.
Meanwhile, if maintaining state for a single user with stateful beans it is best to cache a remote object unique to that user. Does the developer rely on a session to cache this object or is an id sent to the bean each time? Is any of this information accurate....if not what is the best practice?
Thanks a lot,
Travis
Thanks for your reply!
I think you may be right, inevitably I will have to create my own renderer. But I have been studying some other windows based list components that behave differently. Just as a JButton will have an outline drawn around its edge when it receives focus, so should the JList's first cell (the yellow cell border may vary depending on L&F). All of the list examples I've seen coded outside of Java exhibit this behavior. It leads me to believe that it is either a bug or I am missing something....correct me if I'm wrong.
Thanks,
Travis
21 years ago
Hi all,
When working with JList, JDK 1.2.2, I would like to indicate the component having focus by drawing a yellow border around the first cell in the list. I would expect this to be default behavior for this component. Is there any easy way to achieve this result without creating my own ListCellRenderer? Any tips would be appreciated....
Thanks much,
Travis
21 years ago
You can try:
yourPanel.setLayout(new BoxLayout(yourPanel, BoxLayout.Y_AXIS));
yourPanel.add(panel1);
.
.
yourPanel.add(panel5);
21 years ago
1. Create an Object to retain the checkbox's state, generate accessors, override toString(), etc
public ListCheckBox(Object newObject) {
aObject = newObject;
isSelected = false;
}
then add this object to your data model
DefaultListModel aModel = new DefaultListMode();
aModel.addElement(new ListCheckBox(newElement));
.
.
theList.setModel(aModel);

2. In your list cell renderer's getListCellRendererComponent, change the state of the checkbox:

this.setSelected(((ListCheckBox) value).isSelected());
3. Add a mouselistener to your list and upon mouseClicked:
public void doCheck() {
ListCheckBox item =
(ListCheckBox) getSelectedValue();
item.setSelected(!item.isSelected());
repaint();
}
This is should start you in the right direction but you'll probably have to do a lot of tweeking to get it to behave the way you want.
21 years ago