R
Robert M. Gary
I have a customer that is asking all his vendors to provide their
API's via a Web Container. My marketing guy seems to believe this
would be useful for other customers.
Much of the API can be provided to the customer in the form on session
bean, whereby I can provide the customer a bean that would then go out
to my network product and retrieve data.
However, another facet of our product is that the customer needs to be
able to be notified of network events. Typically this would be done in
an API but having them register an interface that I would call with
the data after I've done some processing on it.
However, I don't see any design patterns whereby I can provide that
funtionality in a container. Because I don't have control over the
lifetime of an enterprise bean in a container I can't (I don't think)
have a long lived bean that provides this service and then calls the
customer's interface for notification. I'm also not suppose to spawn
threads from an enterprise bean. I've also looked at just providing
the data via JMS. If I produce the JMS message within the container
though I still have the same problem of needing a long lived bean in
the container to listen on the socket, do the processing, and then
produce on the JMS. It doesn't appear I can produce the JMS message
from the remote network based process because of very specific
security requirements on the transport mechanism. some containers
offer some security but none of them appear to meet the requirements
imposed on me such that I can transport customer data across a network
with it.
So, I'm looking for other design pattern ideas whereby I can provide a
notification mechanism to a customer that runs in an App server.
Although I can't write this to a specific App Server (without limiting
what other customers may want) this particular customer is running
WebSphere.
-Robert
API's via a Web Container. My marketing guy seems to believe this
would be useful for other customers.
Much of the API can be provided to the customer in the form on session
bean, whereby I can provide the customer a bean that would then go out
to my network product and retrieve data.
However, another facet of our product is that the customer needs to be
able to be notified of network events. Typically this would be done in
an API but having them register an interface that I would call with
the data after I've done some processing on it.
However, I don't see any design patterns whereby I can provide that
funtionality in a container. Because I don't have control over the
lifetime of an enterprise bean in a container I can't (I don't think)
have a long lived bean that provides this service and then calls the
customer's interface for notification. I'm also not suppose to spawn
threads from an enterprise bean. I've also looked at just providing
the data via JMS. If I produce the JMS message within the container
though I still have the same problem of needing a long lived bean in
the container to listen on the socket, do the processing, and then
produce on the JMS. It doesn't appear I can produce the JMS message
from the remote network based process because of very specific
security requirements on the transport mechanism. some containers
offer some security but none of them appear to meet the requirements
imposed on me such that I can transport customer data across a network
with it.
So, I'm looking for other design pattern ideas whereby I can provide a
notification mechanism to a customer that runs in an App server.
Although I can't write this to a specific App Server (without limiting
what other customers may want) this particular customer is running
WebSphere.
-Robert