Sanjay Mistry

Greenhorn
+ Follow
since Oct 30, 2005
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 Sanjay Mistry

Hi all,

I am well seasoned Java developer. However, I have to get a good quality tutorial/guide through a complete practical example and hand holding to getting me grasp new stuff.

I have had heard very very good things about Grails and it's quickness and easiness in delivering of solution. After much trials, I found one documentation which was easy read and it worked first time. It took me about 3-4 hours to go through the book but by the time I finished, I felt good and confident to start a project knowing that I can solve/find solution for most what I will need.

Please give it a try: http://www.infoq.com/minibooks/grails. Many many thanks to authors of the book. (It's free to download).

Regards
Sanjay Mistry

13 years ago
Hi All,

I need to read from multiple sources, i.e JDBC & FlatFile inputs into a single output of a FlatFile. Would this be possible in 1 step? Currently the only way I know is either to queue or insert into table for all inputs and then extract from that. This I find a bit cumbersome and not elegant solution.

Firstly, is it possible? if so, can someone point me the right direction.

Thanks
Sanjay
14 years ago
Hi there,

There is "free" software out there to convert. Google "free print to pdf"

Sorry dude, using java or any other programming language will be too much headache for 1 document.

Best of luck.

Sanjay
14 years ago
Hi there,

Please read my last response on the the thread:
https://coderanch.com/t/274035/Other-JSE-JEE-APIs/java/Connect-SMTP-server

Hope that helps.

I also have other example. Please shout if you need more assistance.

Regards
Sanjay
14 years ago
Hi Andrew,

Please send me the details too.

I am want to be prepared to SCEA 5 when available.

Thanks
Sanjay Mistry
Search for topic "Connect to SMTP server", I have submitted code to send email through gmail and it works.

Regards
Sanjay Mistry
16 years ago
Hi Guys,

I am replying to this mail even though its been ages since last reply. The below code is tested and does work. Make sure that firewall allows the required ports through.

Best of luck
Sanjay Mistry

16 years ago
Hi Guys,

The my GUI was very basic. The JTable, one for the column could have been like a combo. The menu functions where also very basic. :roll:

On the other hand wrt locking , I locked for read also, for better marks, if locked for update then wait till unlocked, but if not locked then don't lock for read.

General Consideration - I took great care in formating and consistency in name of variable and coding. The design was simple and consistent. I put descriptive comments where the code was not simple.

I must say the essay exam is not really an exam. It just there to explain your choices.

All the best.
Sanjay
17 years ago
Got 370 out of 400

The maximum possible score is 400; the minimum to pass is 320.
General Considerations (maximum = 100): 101
Documentation (maximum = 70): 70
O-O Design (maximum = 30): 30
GUI (maximum = 40): 24
Locking (maximum = 80): 65
Data store (maximum = 40): 40
Network server (maximum = 40): 40

Thanks to all of you for all you help!!! I have only used this forum as my guide and will continue. In fact, I have already bought the HFSJ for the next exam. Good luck to all who are busy with SCJD.

Sanjay Mistry.
17 years ago
Thank you. It's exactly what I was looking for.
18 years ago
Hi,

I am running apache-tomcat-5.5.12 . I need to load a '.bin' into memory. At the moment on first request, I do the loading with delays the request and rest queued.

I want to improve this by doing the loading on start of server. Is there a way I can run once on startup. In Jboss, I used Schedulable, on startup run once.

Any help is well appreciated.

Sanjay Mistry
[ February 21, 2006: Message edited by: Sanjay Mistry ]
18 years ago
Hi,

I am busy with B&S version 2.3.1. I, too, am using the serialization over simple socket.

The assignment say that GUI must be used to configure. Meaning, you may have one GUI to configure networked-client and the database server or have different GUI. I have chosen the later.

The assignment also mention the name of the conf file "suncertify.properties". If the file does not exist then default to something appropriate. The user may or may not change these defaults. These values must then update the properties file for the next time.

I think the appropriate default IP address in the networked-client config GUI should be either "localhost" or "127.0.0.1". Where as port number should be any between 1000 - 99999. I'd say 1234 is quite ok.



java -jar <path+filename> mode
if mode==server , then just only the server will run,
if mode==alone then without server the client will run itself
if mode is empty then GUI will run and connect to the server ?
And the main class that directing to the proper classes will be defined
in the Manifest dir of the jar file called Main-Class:....?



Your understanding of modes are correct. However, you should not edit the Manifest, the tool used to create the "executable jar" will do the necessary. The IDE your are using must have functionality to create an executable jar.

Hope this helps.

Regards
Sanjay
--- Sorry Mihai to hijack your thread. I have questions with same heading.

Hi Guys,

I am almost finished with the assignment (B&S 2.3.1). I just want to know if my locking is adequate.

For update & delete - client checks if locked, if so then message user else lock, update/delete, unlock. (##)

For create - checks duplicate, if so the message else create.

For update - checks duplicate, if so the message else update.

Each request to server is synchronized, create a new instance of Data. (this will address the "multiple concurrent clients of your server")

What does this mean? "Any attempt to lock a resource that is already locked should cause the current thread to give up the CPU, consuming no CPU cycles until the desired resource becomes available".

What is the resource?

Does it mean, that if record is lock then return and give message, OR that while a client is busy accessing the file then the other client must wait with no CPU cycles?

Have I resolved this problem by "class-lock" a method or have I missed the boat totally?

The other baddy in my architecture is that client is requesting lock/unlock and the interface required to be implemented does not cater for me to identify who locked the record. However, I can still change my Data class to cater for this. But will it be necessary as it makes not difference to locking itself where I locked or someone else locked 'cause the client runs this in sequence as mention above (##).

Any ideas?

Regards
Sanjay
Hi Ken,

I am doing B&S 2.3.1.

File access out of the JVM is not your concern. If another JVM is accessing the file then locking or how up-to-date data is should not be issue.