The important technologies i use are: Glassfish v3, JSF 2.0, JPA 2.0, EclipseLink 2.0.2, log4j 1.2.16, commons-logging 1.1.1.
My problem is that some parts of the application are pretty slow. I analysed this with the netbeans 6.8 Profiling capabilities.
I. Logging - i use log4j and apache commons logging to generate logs in a logging ...
I haven't found a Maven plugin or target that will package my app and deploy it to Glassfish without error. I get this exception:
[ERROR] com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence...
I have created an EAR with a web project, ejb3 project and the ejb client. I'm able to call the bean methods via injection in the servlet.
I'm planning to use a ServiceDelegate which is a pojo to handle the bean invocation. So I'll call the delegate from my servlet and the delegate will call the appropriate beans and its methods.
But I'...
I can't seem to get a web application running with the embedded glassfish plugin:
Plugin Configuration:
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>${glassfish.version}</version>
<configuration>
...
Hi,
I discovered Tapestry 5, quite recently, its clear separation between view and controller, the use of name standardization instead of XML made me go for it straight. Quite frankly I don't plan on changing but the documentation is just not enough for me.
The project I'm working on must be able to support several types of roles. I mu...
I have app on GF V3.01 server and remote methods in EJB container. When I call remote methods from my remote swing app process take long time to execute. I read about ServiceLocator , but can no find examples for remote Swing app. Someone please help! give some idea to speedup remote method calls.
I create this test and make some comm...
Using Httpconnection i want to send the login details as data with the request and once verified i need a xml file as a response which is used in my Blackberry device to display the details (I already implemented this and tested with an xml file)
private void fetchPage(String url) {
// Perform basic validation (set characters to lowerc...
Which one do you recommend for web and why?
...
Hello,
I'm using wicket-auth-roles, and in particular 'AuthenticatedWebApplication' to secure pages in my wicket application. I would like to disallow users from signing in from multiple locations with the same login. Currently users seem able to log into the same user from two different machines.
I'm sure it's as easy as invalidating ...
Here is a description of the scenario and I would appreciate also any comments on the approach used
The core of my application is a set of web services backed by a P2P database. One service accepts a simple XML-based record (I have designed a generic schema for it). The service processes this data (mainly creating keys based on certain ...
I have a client/server application that communicates via SOAP. The server-side application is a JEE app that exposes web services using JAX-WS. I have a servlet filter setup to perform certain checks before a service is invoked. This is all working pretty well, except for exception handling. If I throw an exception from the filter, i...
Hello,
I have a Java project which has this file structure (shown in Eclipse):
ProjectName
+- Deployment Descriptor: ProjectName
¦- Java Resources:src
¦- Package1
-MyClass.java
¦- FileFolder
-MyFile.txt
And so far from myClass I'm able to read MyFile.txt using:
try
{
reader = new BufferedReader(new FileReader(new Fil...
I am developing a Java EE based web application. We have a very limited time to come up with a alpha version and trying to decide on a web framework to use. It has to be something easy to learn but powerful. Standard JSP/Servlet is not an option here due to the time it takes for the development. Appreciate if anyone could advice. Current...
Hi,
I’m working with a client that has its WebLogic (version is 11g) domains organised in terms of usegage – so one for production, one for test, one for dev, and all applications have to share a single domain. It has a lot of applications/domain (around 20 in all). I’ve not seen this done before and was wondering how common it is. I...
JSR-330 dependency injection can be applied to both JSE and JEE environments, while JSR-299 is titled "Contexts and Dependency Injection for the Java EE platform".
Except strictly JEE-oriented features, what CDI features make sense on JSE either? Any examples available? Thanks!
[Revised]
Here's Weld on JSE.
...
Is it possible to package up a Seam application as a WAR file? I am trying to deploy a current Seam application that was running in JBoss to JBoss 6. It is packaged as a WAR file, but every example included with the Seam download seem to be packaged in an EAR with the Seam jar and application code, both deployed as EJBs
...
I have an apache webserver that is used to serve php and static web files. In order to use active directory authentication i've written some code that can connect to AD through JNDI and authenticate usernames passwords and groups. What I would like is to map all requests to pages in apache through my servlet in order to make sure that a...
Hi
I m using JPA to insert a row
My update code as in here
Now i m inserting a row using this code
public void get_image (String id)
{
Object l = null;
try
{
em = this.getEm();
EntityTransaction entr = em.getTransaction();
entr.begin();
newa.Options o = new newa.Options();
newa....
Hi
I can write a ejb like this...
@Stateless
public class AnotherBean {
@PersistenceContext(unitName = "VoidJPA-ejbPU")
private EntityManager em;
public void newTest() {
System.out.println("Testing");
}
}
And call it using this from a servlet
@EJB
private AnotherBean nsb;
...
...
nsb.newTest();
But whenever i put a variabl...
I've a stateless session bean in an ejb container. If I invoke it from a jsf2 form it works fine, but if I recall the form again it shows me the same data I've inserted before. It happens even if I close and reopen the browser. I must wait several minutes until the form shows empty fields.
The stateless session bean is not recreated for ...