Consider 3 Jpeg files
image1.jpg
image2.jpg
image3.jpg
For a given URL and a set of parameters, I would like the server to select and return one of those images.
I'm working in a JEE6 environment. What approach would you recommend?
A JSF redirect?
A REST WebService?
A good old servlet?
... ?
Any suggestions welcome!
...
I have a pre-existing SOAP-based web service with which I'd like to provide a long-polling based notification system. How can I implement this? The client is currently a Java desktop rich client which must receive updates from other connected clients. The server is GlassFish 3.01. I had a basic, blocking @WebMethod but I had problems res...
Let's say I'm running a cluster with two Weblogic server nodes on two servers (Solaris, 4 CPUs, 64 GB RAM each). The heap size is maxed out on these nodes and so each server runs with 40+ GB of free memory most of the time and each server usually has on average 30% CPU utilization.
Assuming that the application scales horizontally prope...
Hello SO!
Even though I've been in Java SE for quite some time now, I started EE & web w/ Java only about a month ago, so pardon if the question seems a bit noobish...
So here's the situation: I'm trying to write a JS based multi-player game with real-time interaction (let's say chess in this example, though it really doesn't matter wh...
Is developping an EJB application is considered like a web services ?
Or the two are different ?
Or you can make EJBs like web services ?
...
Can a server-side enterprise bean return a reference to another bean's remote interface that the client can use to call methods on that remote bean?
Example: I have a singleton auction house bean which has a vector of singleton auction item beans. I want to return to the client a vector of interfaces to the auction items so that the cl...
I wan to know how the transaction is internally implemented in EJB. I want to know the logic they use to create a transaction. if you could point out some articles that would be helpful
...
Hello,
do you know any good Java library for audit logging? Or at least good book/article to help choose good approach to build audit log for an application?
Library requirements:
- define common audit metadata (userId, time, IP, ...)
- define audit message types (transaction sent, message received, ...)
- lock/sign individual audit me...
I am specifically using WebSphere Integration Developer V7, but I also could be using Rational Software Architect V 7.5.1 (as I have both).
Context: I am trying to create a JAX-WS client to call into the Human Task Manager and Business Flow Manager services in WebSphere Process Server V7, that are exposed via JAX-WS. By default they hav...
Hello guys,
Here's the setup: the entity class has the collection of other entities that is loaded lazily. The trick is, I need to perform some data-related work (for example, I want to calculate certain checksum with the elements of collection).
The trick here is that I want to avoid at all costs the race conditions like: "someone ha...
I'm trying to figure out what the best options are for developing a RESTful web application with Java EE 6. For example, I want to be able to interpret a URL like so:
GET www.myapp.com/customers/1 - returns a web page displaying details about a customer with id 1.
The only two options I can think of are
Using Spring MVC 3
Using a JAX...
Say you have a 4-node J2EE application server cluster, all running instances of a Hibernate application. How does caching work in this situation? Does it do any good at all? Should it simply be turned off?
It seems to me that data on one particular node would become stale quickly as other users hitting other nodes make changes to databa...
Hello every body now I work with shopping cart, I wonder use between Stateful session beans or HTTP session for cart or login. Everybody have any ideas?
In Stateful Session bean how to do compare state for item id, if it equals I will add to item one unit it means if item id = 1 it is coke and user add to cart one more coke it will bec...
I have two maven modules and a need for class A in module 1 to load class B in module 2 using class.forname. this works very well and I can call the right methods on class B no problem at all. module 1 is wired up using spring and I'd like to wire module 2 up in the same way for consistency. I tried this and compiled it up no issue. b...
Hi All!
I am trying to inject javax.mail.session in ejb 3.1 via @Resource without any success, I believe that I miss understood the proper configurations (I want annotations based solution and not XML descriptor)
I read in the new spec of JEE 6 and understand that I can used in the new JEE 6 Connector API to send mails via Message Driv...
Please rest assure that I did some search trying to understand about this as much as possible, but most of the community posts are about implementation instead of explanation. I guess I just dont understand it correctly, but if a field is annotated insertable=false, updatable=false, doesnt it mean that you cannot insert value nor change ...
I have to access a config file which is in a directory on the app server file system, but is not deployed as part of my J2EE app.
Would getResourceAsStream() help me in this case?
Thanks
...
I'm very new to Java EE and I'm trying to understand the concept of Local interfaces and Remote interfaces. I've been told that one of the big advantages of Java EE is that it is easy to scale (which I believe means you can deploy different components on different servers). Is that where Remote and Local interfaces come in? Are you suppo...
I've been trying to set up a Java EE 6 Maven project via New Project -> Maven -> Maven Enterprise Application.
However, when I try to run the application I've been running into a couple problems:
I had to change the the http port that Glassfish listens on because the port it chose (8080) was already used. I went into the domain.xml fi...
Hi,
I have been using and learning Servlets and JSP without giving enough thoughts on J2EE/JEE security.
Now, I wanted to upgrade my knowledge and add security into the web apps that I am building.
I have searched over SO post but cant find enough resource to read on about Security. Can you share me some links or tutorials where I co...