Ashkrit Sharma

Greenhorn
+ Follow
since Oct 05, 2006
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 Ashkrit Sharma

You can use POJO to write Business Logic or java have EJB's for same.
You should develope your business logic as component,so that it can be re-used
16 years ago
There is one more usecase when Vector is not thread safe.
You can't add or remove element to vector concurrently,but if you have reference of elements of vector then you can very well modifiy state of those elements. So you need to take care.
There is one more solution to this problem.
You can store reference of current transaction to ThreadLocal object.
Each time you start transaction at any level you will just increment counter of ThreadLocal. You will start transaction only once when counter is zero and for other time you will just increment.
For each transaction end you will decrement the counter. You will complete transaction only when counter reaches to zero.


class TransactionManager extends ThreadLocal
{

public Object initialValue(){return new Integer(0);}
public Object get()
{
return super.get();
}

public void begin()
{
if(get()==0)
{
// Start transaction here
}
//Increment counter.
}

public void end(){
//Decrement .
if(get()==0)
{
// End transaction
}

}

public void rollback{}
}
17 years ago
If i understannd you question properly. Then you can just drop you conf folder in classes folder or create a jar file of conf folder and drop it in lib folder.

Doing so will make you code(i.e "getResourceAsStream()") run.
"getResourceAsStream" function always try to load reosuce from class path and conf is not in the classpath. That's the reason why it was returning null .
17 years ago
Asynchronus processing is good option,i feel you need some request id also. User can use this request id to check the status of his request using different WS call.
17 years ago
You can get some sample implementation from samples/handler folder of axis 1.4 installation.
Yopu will get fair idea about that .
17 years ago
Security has 2 parts Authentication & Authorization.
There are different ways of doing Authentication, but the most simple & secure way is to enable SSL for Axis servlet.
For Authorization you can use Handlers. Handlers are like servlet filter. You can read the SOAP message before it is reached to ultimate endpoint and apply Authorization rules.
17 years ago