Greg Belyea

Greenhorn
+ Follow
since Feb 06, 2004
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 Greg Belyea

I have a Java Swing app that recently stopped working well, there were some problems in our MySQL database with some table locking and some memory leaks which i have indentified and fixed.. I thought it was the database performance that was the problem but now that all that is fixed it more appears that out of nowhere it is taking a long time to even acquire a connection to the db from the app. The connection pooling we wrote is shared across projects and all other projects are working fine tho. I am not sure where to start to debug and solve this prob... Any suggestions?

I use Netbeans and used the profiler to track down my memory leaks.. To make matters worse it does not happen on my local development unit, only on the server which is under load but i can run massive queries in Toad on millions of records in a split second...

Confused
GB
9 years ago
Hey Guys

I am trying to solve a problem and have been out of the game for a bit... question... i have created a GUI Panel that has drag and drop capability, i drag an id from the left list box and drop in the right if i want to disable something for that id.. if i drag it back out of the right to left then that id is enabled again... that all works great, my problem is i would like to leave that as a dumb panel that i just pass a couple vectors to and it does it's thing... problem is I need it to add and remove records from a database table though when items are successfully added and removed to/from the right hand list..

I don't wanna stick that logic in the simple GUI panel that could be reused if i don't, how should i design this properly so that any business specific logic is not tainting my new control.. I almost went quick and dirty to get it done, but i don't really want to do that... If it's not reasonably simple i could just stick a couple buttons there for save and cancel and they could grab the current list models, but i'd almost like it to be instant with no more steps..

Cheers
GB
9 years ago
I have a question that I'm hoping there is an easy answer to..... I don't want the solution to be too messy, ie string manipulation if i can help it.

I am querying the user to enter a date, in the format dd-mmm-yyyy, in other words 12-Dec-2004(This is a UK application), however in order for me to convert the date to a timestamp for use with SQL Server, it must be in the format yyyy-mm-dd. Is there an existing class that handles conversions of this sort or am i looking at writing a method to do it?
Thanks alot
16 years ago
Hi Guys

Thanks, what i have done so far is design the tables for, Roles, Users, Permissions, and the Permission Role cross reference table. It would be excellent to be able to configure it so that only certain links show up on the menu pages for certain permissions. I was sure there was a better way than retrieving a profile bean and putting if statements around all the Menu choices. That seemed to primitive. I think i mentioned above that i am using struts, JSP's and SQL Server. I would like to do this the cleanest way possible.
Where can i locate that online tutorial? I will look for the book you specified tomorrow. I am working on it today so maybe i can find some stuff on the Sun Website. I will definitely be back to ask more questions though. Have not been to this site since i was taking my developers cert like 3 years ago, forgot all about it. Great Site
Thanks
Greg B
16 years ago
JSP
Where should i go to find out more about, how to implememnt login features into my Struts>JSP Application. I need to design tables that take into account Users>Roles>Permissions etc... But i am not sure how to retrieve that information and use it properly in displaying pages where certain links won't show up depending on your permissions... Can someone tell me where to look for info??
Thanks a bunch
16 years ago
JSP
Hi All
I would like to know on a performance basis such as maintainability, reliability, ease of debugging, and ease of implementation. What do people like about these two methods of Networking. I know they are often intended to be used in two different types of program, but if you liken them to perform the same task, what are the likes and dislikes??? (Besides dealing with the Obligatory AccessControlExceptions which we all beat our heads against the wall trying to solve on our First RMI attempts :-) ).......................
Let's hear it?
19 years ago
Hi all
Actually there does'nt appear to be to many users on this Thread but hopefully someone can help me out. I have a Frame and a Panel that are accepting the focus in a Tabbing sequence. I need to stop that. It's going through the textboxes properly, then to the buttons, but then it goes to the Frame, and an inner panel. How do I remove these from the tabbing sequence.....
Thanks
Greg
19 years ago
I'm getting this exception thrown on my Stub file when I run my client side. Anyone got any idea why this would be happening, I was on a roll and this is really holding me up. I've got an interface that extends remote, an implementation that implements the interface. The server bind works no prob with interface = new implementation() blah, blah....
On the client when I run the Naming.lookup and try to cast it as the Interface I get a class cast Exception which doesn't make sense cause it's an interface object that is registered???
Help
Greg
19 years ago
Raj
The data class is created in the assn material, if you have the assignment then you would know that it is a partially complete package given to us by Sun to work with. It is not part of the API
Greg
Shankar
After the conversion from flat file to binary, your binary file takes on the form of a Database Table. You will not use your converter after this. From your project you will manipulate the Data Class which in turn manipulates your binary file. A clear understanding of what the Data Class methods are doing will help you to see what is going on when querying and searching the Binary File.
No, the converter quite simply uses one of the methods of the Data class to write info record by record to your DB. This project involves using this Data class to manipulate Data instead of an RDBMS. Study the Data class in depth and you will see that coupled with the FieldInfo and DataInfo classes you are supplied with what you need to manipulate your data.
just to help you guys on your way, the conversion tool is a good way to start. keep in mind that this conversion tool is completely separate from the rest of the assignment. It merely converts the data in your flat text file, to binary form. There is no "setting up of the database really. The Data class does all that for you. You merely have to write the converter which will utilize one of the Data constructors and the writeRecord() to set it up. After this you might want to look at ridding the data class of the depricated methods and your on your way. Pay close attention to the specs, if read correctly they tell you alot you need to know about the proj.
Good Luck all!!
Greg
I have just finished writing the interface for the RMI Server of my FBN proj. I have'nt done much RMI so I'm struggling a bit with the implementation phase. When others made their new class extending UnicastRemoteObject what steps did you take in coding the methods. I was talking to one person who said that they implemented the interface in the Data class itself but I'm thinking that they wanted us not to alter the Data class since it is reasonably complete???
Can someone shed some light on this, I'd really appreciate it, I'm working with real limited reference material for RMI so I'm having a hard time wrapping my brain around it???
Thanks all
yeah I agree, I finished my converter and used two command line arguements. so I run it like
java DataConverter whatever.txt whateverelse.bin
so it takes my ascii file named *.txt(* being whatever you called it) and writes a file called *.bin (* being whatever you want your bin file to be);
then I have a command line prompt that says "How many Columns in your database?">
They answer whatever and I have a GUI that pops up with the proper number of Textfields to enter column names and max field lengths.
Then as long as they fill it in properly it writes the file. I thought this way way very open to recycle and reuse. It works for any asc file.
I am interested in a few things though what methods did people pick in order to replace the depricated writeBytes() in the Data class??
I am in the exact same stage of my FBN developers project. From what I have read I understood the conversion tool to be an instrument that with a command line entry can convert a flat file to binary, and vice versa. If you give the conversion tool gui and have it create bo flat file and bin, then are you fulfilling the objective??? Will you be able to use this tool to write your deleted records back to your flat file later in the project, or will you have to open up the tool to delete unwanted records??? That sounds confusing?
I am definitely interested in explanations and the decisions you guys are making though, it is good that there are other people in the same stages on this thread. I am trying to come up with a design for my conversion tool today.
Greg