Ravi Danum

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

Recent posts by Ravi Danum

Hello All,

If I use OpenJDK8 from RedHat and JRE 8 from Oracle, will I be charged for patches that need to be applied to JRE 8?  We are developing code locally, and then deploying the product to a server at another site that we do not own or maintain.

Thanks in advance.

Ravi




5 years ago

Thank you all very much!
5 years ago
Hello All,

Is there an OpenJDK 64-bit version 8 for windows complete with security updates?

Thanks so much.

Ravi
5 years ago

Thank you both so much for the replies.  I too read that some incomplete blocks may not have been pushed out, so I added the flush to the output stream.

Both answers were helpful in my socket communication.

-Ravi
Hello,

Is it free for the U.S. government to create a java product (jar file(s)) and distribute to another U.S. government group?

Is there any licensing involved?

Can the U.S. government create a java product and run it in their office on behalf of a different U.S. government group?

Thank you.

Ravi
5 years ago
Hello,

Thank you for the replies.  I have found that I needed to add:  socket.flush().

I was glad for the post on little vs. big endian.  I will have to work with this on another part of my task.

Ravi

Hello,

I have written some java client code to connect to a router.  The router sends my client message to an application.  From time to time, the application either refuses connection or closes the existing connection. There is other client code that has been written in Python which does not cause this problem.  I am using Wire Shark to look at the messages.  The messages look fine.  I am wondering if I need to change my client code, written in Java to little endian.  Both clients and the application are all on the same machine.  None of the other code is written in Java, meaning the application.

Does anyone have an idea how to check for this or correct this?  Could the problem be something other than the endian?

Many thanks.

Ravi

Hello,

It is me again to say that I left out another detail in my first email:  none of the applications will be running remotely.

Originally I thought about writing a web application to input the data with tomcat running locally, but decided it would take a bit longer than I have.

Many thanks again for your emails and help.

-Ravi
6 years ago

Hello All,

Thank you very much for your responses.  

I have chosen to use Swing because I need to enter data for each item that includes links to photographs, lists, a choice selected from a list, choices selected from a list.  The field names are important to store with the data.  A csv file would not work in this case.

It seems a GUI makes user input easier.   Storing the data into a properties file (1 for each item) will be easy to read.

Each item entered can be thought of as a record; however, not all fields in a record will always have a value - in this case the name/value will not appear in the properties file.

I eventually want to store the data in MongoDB.

If I need to add new fields, that will work fine with MongoDB.  (It would not work with an RDB database).

I chose Swing over JavaFX because I'm working on Ubuntu and didn't download the oracle jdk8.  Only that one has JavaFX for Ubuntu.  The GUI I will write will contain only basic components.  I also know Swing to some extent and don't have much time to complete this project.

I apologize for not giving more details in my first question.

Again, thank you very much for the responses - this got me to reading more on the subject and thinking through the best solution for my project at this point.

Warm regards.

-Ravi




6 years ago

Thank you both for your input.  

I will do this.  

I will write a Swing application, and initialize the fields with default values from a properties file.

After all data has been input for a given item, I will store it in a new properties file for the item.

When it comes time to store the data to a database, I will write a program to read data from each item's properties file and store to the database.

Your responses have been helpful in steering me to my design.

Many thanks!

-Ravi



6 years ago
Hello Fellow Java Developers,

I want to write an application to input data for some items.

Each item requires about 25 fields of input data.

Initially I want to input and save the items' data in either property files (1 for each item) or xml files (also 1 for each item).  

At a later date, I want to read from the properties files or xml files and store in a database.

Now for the question:  

1) should I write a Swing application or a web application to input the data?

Many thanks for any suggestions!

-Ravi


6 years ago

Hello All,

I have looked into this and have found that often the web service proxy is cached and reused.

The important point is whether the web service proxy is thread safe or not.  The JAX-WS implementation that is included in the JDK starting with Java 6 has a proxy that is not thread safe.  The web service proxy in CXF is thread safe.

Since I have written my code using the JAX-WS implementation in JDK (java 8), I plan to create a small pool of proxies (2-3 objects).

Any comments to this method are welcome.

-Ravi
8 years ago

Hello,

I have created a web service client using wsimport.  I have two questions:

1)  Can I create 2 ports and call web service methods concurrently?  (I don't see anything in the generated code that prohibits this.)

2)  How long can I keep a port open?  For example, how many web service methods can I call on a give port instance?  The port instance is created as follows:  


Many thanks for any help you can give.

-Ravi
8 years ago

Stephan,

I have more research to do on this topic.

Thank you.

-Ravi


Many thanks, Bear -- that is what is needed in my design.
8 years ago