Guru dhaasan

Ranch Hand
+ Follow
since Sep 13, 2006
Guru likes ...
VI Editor Java Ubuntu
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Guru dhaasan


I have a Swing app. works perfectly as a desktop application
But when started using JNLP, the UI does not load completely.
During loadtime only the outer border looks visible with the menu bar. But when the button in that menu bar is clicked, which is used to connect to Database in my app, then the whole app loads properly.
It's like only the portion required are loaded and the rest of the window is blank at any point in time, which is undesirable when started.

I believe this is not to do with the networking latency since I have my jars in my system itself.

Also, I have tried with the 'download=”eager”' option in the Jar resources inside jnlp (even though this is the default ) to load the jars before the app launches and still I have the same scenario
Also tried to run from the commandline using the javaws.exe file and there are no exceptions registered

As of now, I have put all my jars and jnlp file inside an Apache webserver instance and tried to run the jnlp. Will this has any impact on my issue?

Here is my JNLP file:

Can somebody help me why this one occurs and how to resolve this?
9 years ago
By "Standalone" I was referring to a tool/software by which I can experiment JPA features without the help of J2EE server like Glassfish
Am preparing for the JPA2 certification exam.
In addition to the theories I am thinking of doing some hands-on exercises to get myself familiar with JPA.

Can some one please suggest which stand alone thing will work for (I am looking for some standalone softwares to do some exercises for JPA2)

Thanks in advance

May be you can use a file which just contains the count and everytime you can increment the count in the doPost/doGet method exits, if you really do not want to use the DB
But again, as the unwritten rule for any software problem is there are n number of ways to solve it.
9 years ago
No credit card info. should be persisted.... in real life scneario, you will just forward the info. to Payment gateway... Take the CC details, validate it and route to a success/error page depending on the validation result...

keep it simple
Get the credit card # from the user (jsp/servlet) and use the commons-validator.jar to validate the same
Google for some examples of how to use that validator class
What you heard from different sources is true.. you should involve with payment gateway and stuff and more importantly you've to PAY for that... That's why i told its pointless for a college project...

Better is that as suggested by Ulf, you can use apache commons library for validating the credit card and just a dummy payment gateway system which mimics what you see in a real world
May be like once the card is validated successfully, you can redirect to the success page saying that the transaction was successful. If the CC validation fails, just route to an error page

Hope this makes sense for your project..
Interesting discussion Das & Ulf...

@Das: At what level you want your project to be... Credit card validation or real time booking??? I see no point in the later for the sake of a college project...

I am preparing for the EJB certification and I am going thro the EJB 3.1 book (O'Reilly)

One of the chapters discusses about JNDI, ENC and the EJB connections

Can some of you give me a real life scenario of these so that I can get a better understanding

I was going thro the EJB 3.1 book (O'Reilly)
In that the author is mentioning that (these are not the exact words in the book, this is my own understanding of the text)

"in SFSB when its becoming activated (after coming out of passivated pool), serialized objects, unlike their original norm, will not return the default values like int will not guaranteed to return 0 and object is not guaranteed to return null"

Whether my understanding is correct?? If yes, why its designed that way in EJB??


Thanks for the response.

I prepared using HF EJB book, Rancher notes @ and Enthuware mock exams

All the best for the exam