Tagged Questions
0
votes
0answers
6 views
Simple JAX-RS example with @Consumes, @Produces and JAXB
I'm trying to create and run simple example of JAX-RS using @Produces, @Consumes annotation and JAXB.
@Stateless
@LocalBean
@Path("/hotel")
public class RestMain {
@GET
...
-2
votes
3answers
52 views
Which web framework to choose for JEE6 (no JSF)? [closed]
I'm planning to write an app using jee6 stack. This is not going to be heady-data-driven app with tons of tables, forms etc. It's more like online rss reader, twitter etc.
I don't want to play with ...
0
votes
0answers
15 views
APACHE POI - cloneStyleFrom doesn't copy BorderStyle
I've a problem with the library apache poi, i want to copy the style of a cell and to do this i use the function cloneStyleFrom() and all works good except the copy of borders style. I don't ...
0
votes
3answers
36 views
Reading error from the file in java
I wrote the following program reading number of computers from text фалйа, containing a prime number
import java.io.*;
public class ReadFromFile {
/**
* @param args
* @throws ...
1
vote
2answers
30 views
Wildcard path for servlet?
Having an @WebServlet(urlPatterns = "/myServlet/"). If the user goes to myapp/myServlet/other, I still want my servlet to catch. So to say, wildcard anything on after the servlet path. How could I do ...
1
vote
2answers
53 views
Making Spring 3 MVC controller method Transactional
I am using Spring 3.1 and have my DAO and service layer(transactional) written.
However in a special case to avoid a lazy init exception I have to make a spring mvc request handler method ...
0
votes
0answers
12 views
Cubby - how to get Response object in action methods?
public ActionResult doSomething() {
...
}
this is the typical action method in Cubby (Seasar). Anyone familiar with Cubby? How do I get the Response Object in this? Or how do I let the user ...
0
votes
1answer
25 views
Any problems in using hibernate's session.connection() to run native sql
In my project, they use Hibernate's session the below mentioned way and then save entity objects with in a transaction.
Session session = HibernateUtil.getCurrentSession();
...
1
vote
2answers
25 views
CDI choosing correct scope for bean
Coming from plain old DI of Spring I can't figure out how to choose scopes properly while writing with CDI.
In Spring all my services have singleton scope by default, which I suppose maps to ...
1
vote
1answer
26 views
Automated integration tests on deployed j2ee environment?
Our team is currently introducing automated testing to an existing J2EE web application that is deployed on Weblogic. We've had success with unit testing using JUnit and Mockito which are ...
1
vote
2answers
32 views
cookie.setMaxAge strange behaviour
I work in a jsp based website that needs cookies enabled in order to navigate it (It is an internal site, it will not be exposed to the internet).
The first visit of a user will return a 302 to the ...
0
votes
0answers
26 views
In java web setups, how to implement TXT/CSV downloads?
for example, I am already at the backend and I have data (List of SomeObject) and I want it to be downloaded (instead of redirecting to a page). I am not really sure how to implement it.
QUESTION:
...
1
vote
2answers
45 views
Realtime updated values?
how can I have push mechanism within a JSF JEE App?
I have several backend values, that may sometimes change every other second, sometime every other minute, sometimes only one time per hour.
I do ...
1
vote
2answers
40 views
Java Servlet extend another Servlet
The init method in most (all) of my servlets is similar. Mostly initializing a DataSource
I am thinking of creating a BaseServlet having a protected DataSource and the init method implemented and all ...
0
votes
1answer
19 views
What mean JAX-RPC-based web service endpoints (in context of EJB)?
I read Beginning Java EE 6 platform with Glassfish 3 from Antonio Goncalves.
In chapter about EJBs he wrote that some features of EJB may be deprecated in next releases of JEE.
None of the ...