Tempora Telora

Ranch Hand
+ Follow
since Jun 20, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tempora Telora

All,

I have searched around and have touched eclipse for a while but, I am trying to run a main located in a folder structure about 4 levels deep. In doing so it is saying that it cannot find my main method. I have tried adding the main location to the run configuration but havent figured out the trick yet..

here is a sample setup:
src/com/test/application/ApplicationMain.java

I know i am missing something..

Thanks
All,

I have been tasked with creating a JMS topic that will provide functionality of listening for an update then moving said update message into an etl process to be put into the database.

My question being we could receive some where of 1-1000 updates a sec/min/hour.

Would a proper design be a Push/Subscribe model implementing a queue?

Thanks I am new to the JMS world.



Also what do JMS topis listen for files in a directory, wsdls, xmls?

Thanks,

Randy
All,

I am having a bit of difficulty with this. In cygwin I am running the following command to compile my java class. I have multiple jars I need to associate to it. How do you add multiple jars in a java -cp command?




Thanks,
Lammy
[ August 01, 2008: Message edited by: Randy Tatham ]
16 years ago
Has anyone written a custom jsp to test bandwidth speed connection?

I am thinking about writing a JSP to test bandwidth speed to a list of ips to return a result set to the user stating that on web box a to x, y, z your bandwidth speed for x = 4 megs y= 2 megs, z=6 megs

Just thinking abotu the fesability of writing this.
17 years ago
JSP
I have written against sybase and oracle. Closing your the connection after executing the statement I believe is a large part of controlling performance.

Here is a scenario. You have a small website where you have 20 users logged in at one time. If you didnt close your connection then that would be 20 concurrent connections to your db that are open.

vs

Only creating a connection when running a query/update/etc... against the db for the 20 users.

Great performance closing the connection after running your query.. Just be agile with your coding. If you know you are going to have to make a couple of query calls (for a single connection user) then try and do that in the same connection.
I have written against sybase and oracle. Closing your the connection after executing the statement I believe is a large part of controlling performance.

Here is a scenario. You have a small website where you have 20 users logged in at one time. If you didnt close your connection then that would be 20 concurrent connections to your db that are open.

vs

Only creating a connection when running a query/update/etc... against the db for the 20 users.

Great performance closing the connection after running your query.. Just be agile with your coding. If you know you are going to have to make a couple of query calls (for a single connection user) then try and do that in the same connection.
All,

I think it would be great if you all posted an assignment a month and had users reply with their source to your assignment. This will allow users to pick up different standardizations and view how other people write their code. This could allow them to pick up some cool tricks that they have never seen before.

I am trying to get back into java(programmed in it for about 3 years and am currently stuck in scriping world) and I think that this would help me out and other users out a ton.

This was posted in another area but was informed that maybe I should put it in here. Sorry for the double post.



Lammy
17 years ago
Do you have the oracle odbc connection already setup in java?

If so then use java calendar (date was/is depricated).

1.Create a new Calendar object. Calendar cDate = new Calendar() or Calendar cDate =Calendar.getInstance(); I forget which.

2.Use your odbc connection to store the date from your oracle database into a Calendar object. Calendar dbDate = select statement (guessing here)

3. Use cDate.(compareTo(Calendar anotherCalendar) to compare the dates.
17 years ago

Originally posted by joseph cooper:
I am trying to compare the element sequenceNumber from the client record of the arraylist clientList to each of the elements sequenceNumber from the policy record of the arraylist policyList.

This is not correct code.
//cr is the client record
//pr is the policy record

for(int index=0; index<clientList.size(); index++)
{
for(int i=0; i<policyList.size(); i++)
{
if (clientList[index].get(Integer.parseInt(cr.sequenceNumber)).equals(policyList[i].get(Integer.parseInt(pr.sequenceNumber))))
{
/* do some work if they match*/
} //if
} //for - policy
} //for - client




Your pseudo seems correct. You are using a bubble sort to compare each client against the policy. If policy and client sequence are equal then you need to retrieve then use your .get methods ( client[1].getFirstName(), etc..) that you have created to compare and retreive your data items. You can store the data from your .get methods from both the client and policy into variables and use those for transformation purposes.

Other than that I am completely lost as to what you need as well. It seems as if you have it already figured out in your pseudo.
17 years ago
That split is a perfect work around.

Try and create a driver class that will parse through the txt file and then create some customer classes that will store the values of the driver classes parsing.
17 years ago
All,

I think it would be great if you all posted an assignment a month and had users reply with their source to your assignment. This will allow users to pick up different standardizations and view how other people write their code. This could allow them to pick up some cool tricks that they have never seen before.

I am trying to get back into java(programmed in it for about 3 years and am currently stuck in scriping world) and I think that this would help me out and other users out a ton.

Lammy
17 years ago
hello all,


i have 4 panels (two flowlayouts; two boxlayouts) that I have added to a mainPanel that is a boxlayout.

The problem is that the are center aligned. I would like them all alignd to the left.

How do I align left?


Thanks,
Randy
17 years ago
Yea that is what I have ended up doing. THOUGH on one of the conversions I am one pixel off. This was just because of a rounding issue.

thanks,

Randy
17 years ago
Yea I am using the DIRECTORIES_ONLY constant. The problem is that on my contentpane I am using a flowlayout and hsould be using a boxlayout but, I cannot figure what to pass the boxlayout because I have 4 different JPanels.

Also my jfilechooser is showing up in the window versus just a button. Should I just do a jlabel jtextfield jbutton[to browse files]? Can I direct the answer of hte browser to the jtextfield?


Thanks,
Lammy
17 years ago
Hello all,

I was wondering if anyone knows the screen size conversion between 1024 x 1028 all permutatations to 800-600?

I am sure there is a utility or some post somewhere but i cannot find it.

I have a screen position on 1024x1028 (example 612, 314) and i need to find that same position on 800x600 and so forth.


Thanks,
Randy
17 years ago