aakash bhatt

Ranch Hand
+ Follow
since Jan 09, 2003
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 aakash bhatt

I need to pass data entered from one webserver to another webserver which would be in a totally different machine.
Could I do this by using only weberver?

Thanks,
aakash
13 years ago
How do I set the log4j ON in Tomcat server and i customize my log file in to a particular path(directory)
13 years ago
Currently I have installed the Tomcat server in my PC. After I start the server, I need to type http://localhost:8080/index.jsp in my browser to see the page.

Could there be any setting where in I type just http://localhost then it redirects to my index page where i do not need to specify the port address

Thanks,
aakash
13 years ago
With what transaction level are ejbCreate and ejbRemove method called for Entity Beans?

Thanks,
aakash
I have got iterator but it would iterate one by one. I do not want to write a while loop and break statement for 1st element
and for last element to iterate the whole collection through iterator has next.

Is there any other way, as Collectio have size() but do not have any get method to retrieve the element.
Any other way around other than this.

Thanks
13 years ago
How do i read the 1st and the last value from the Collection

Regards,
aakash
13 years ago
Thanks,

But still can i have a scenario while using ejb, I had to used synchronized List. As ejb all bean have instances and are not threaded then any scenario in your application you have faced to used synchronized List.

aakash
13 years ago
In my architecture framework, I had to use collection depending on my need I had to come to one point either Vector or ArrayList can fit in to my requirement
But the case I am not sure which among the two should be chosen.

As Vector is synchronized and Arraylist is not based on this difference, how do i define where should i chose between this two.
1) Do in my ejb(Session bean and entity bean) would Vector having synchronized nature would be an advantage.
Can I have a scenario in a case where Vector should be used over ArrayList

2) Same for JSP
Can I have a scenario in a case where Vector should be used over ArrayList

Thanks,
aakash
13 years ago
Thanks Kaur,

But my question was as ejbStore is called just before the data is written to database as in insert too we are writing the data to database, so in that wouldn't the ejbStore() should be called or the spec is written while insert the ejbcreate() does pesristence which ejbStore() should have done.


Regards,
Pradeep A
Thanks Ben,
With cookie and Url paramter we can maintain session indirectly.
But my query is as Http is a staless protocol then how does we can maintain a sesion by setting values in HttpSession, then how does in this HTTP protcol handle it.

Thanks,
aakash
13 years ago
If HTTP is staleless protocol then how does it maintain Session through HttpSession

Thanks,
aakash
13 years ago
While creating a record through entity bean ejbcreate() and ejbPostCreate() would be called.
Would ejbStore() be called while inserting or only while update ejbStore() is called and while insert only ejbcreate() gets called which creates a new record in db.

Thanks,
aakash
In my String , I have value as String vTest = "ABC#XYZ#PQR#STV"
How do i retrieve the value ABC, XYZ each by each which is delimetted by #
Thanks,
aakash
13 years ago
Could I have an example of how to use java.util.Property
Is it the same used for storing an environment variable.

My Queries:
1) Say i had stored my key-value values in Project.properties file
Now in my code how do i read the values from the Project.properties files

2) Can i add some values dynamically from code to the Project.properties

3) Could I get the values of Project.properties from System.getProperty() or could i load the project.proerties from System.getProperty()

Thanks,
aakash
14 years ago
What is the significance of the code Class.forName() while doing a connection?

Thanks,
aakash