-
Jul 17th, 2008, 02:51 AM
#1
Are endpointinterceptors thead-safe?
Are EndpointInterceptor to be thread-safe? Or should the implementations ensure that they are thread-safe?
-
Jul 17th, 2008, 03:36 AM
#2
The implementations must ensure they are threadsafe.
-
Jul 17th, 2008, 07:11 PM
#3
Below is the example of my end point using annotations, isn't it thread safe?
@Endpoint
public class MyMarshallingEndpointEndpoint
{
private static SimpleDateFormat yyyyMMddHHmmDF = new SimpleDateFormat("yyyy-MM-dd");
private DataAcces access;
@PayloadRoot(localPart = REQUEST_MESSAGE, namespace = "client")
public ResponseMessage invoice(RequestMessage request) throws WebServiceRunTimeException
{
}
-
Jul 18th, 2008, 01:54 AM
#4
Please use [ code][/code ] tags when posting code.
Is it thread safe no because a SimpleDataFormat isn't thread safe. So you would need to recreate it each time. Next to that I have no idea because there is no code.
-
Nov 5th, 2008, 06:45 PM
#5
I have fixed SimpleDateFormat to eliminate thread safe probleb, But we are getting nullPointerExceptions in production when multuple requests were sent over.
It looks like a there is a threading issue.
I am injecting data Access class which extends JpaDaoSupport
Data Access class does this
public class JpaDataAccess extends JpaDaoSupport implements DatAccess
@Transactional
public void addClientData(Client client) throws DataAccessException
{
getJpaTemplate().persist(client);
getJpaTemplate().flush();
}
Is Jaxb thread safe I am using for marshalling and unmarshallling??
Is JpaDaoSupport thread Safe???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules