java-ee

Java EE application approach

I have come up with a small project to help me learn Java EE, i'm unsure what technology best suites what I want to achieve however so i'm hoping someone can point me in the right direction. What is essentially a gloried web crawler should be constantly running somewhere - maybe updating a database or not (the information will become ou...

How to add a project to a existing EAR in eclipse?

How can I add a new java project to a existing EAR in eclipse? I used project references, but it's not working. ...

Java ORM POJO design pattern problem

I have general problem that for now I didn't saw any ORM that solve it, I have an entity in the database that have fields that I didn't want to load them from database because performance issues, Now if I didn't load them in the SQL query so they get a default value (NULL), and someone can use this property and cause a bug, and if I crea...

Does Java EE security model support ACL?

I used Java EE 6 with Glassfish v3.0.1, and I wonder if Java EE security model support ACL, and if so how fine-grained is it get? EDITED I implement Security using jdbc realm via glassfish v3, that the realm at runtime look into table USER inside the database to check for authentication, by looking at the password field and authorizatio...

JEE App and Different Skins

Hi I am working on a project where there is a requirement to have a different look and feel for 1 set of users and a different look and feel for a separate set of users. These users will be split up based on country or some other type of code to be defined. I plan to implement a filter that will check which skin this user should have a...

Is there a way to integrate CommonJ WorkManager with Glassfish

Is there a way to integrate CommonJ WorkManager with Glassfish ...

EJB 3.0 transaction boundary calling one local EJB from another

Imagine the following two ejb3.0 stateless session beans, each implements a local interface and they are deployed to the same container: public class EjbA { @EJB private ejbB; public void methodA() { for (int i=0; i<100; i++) { ejbB.methodB(); } } } public class EjbB { public void m...

How to setup a project in Netbeans for EJB development using OpenEJB?

We want to evaluate OpenEJB for our application. We have already performed some tests and now we need to start a pilot project. While I've seen how to use OpenEJB for testing purposes (mainly for JUnit tests), I have not seen how to set up an EJB 3.X project inside Netbeans for deployment in OpenEJB. The way we did for testing purposes...

Where do I put weblogic-application.xml in my Maven 2 project?

Where do I put weblogic-application.xml in my Maven 2 project so that Maven places it in META_INF in the target EAR artifact? ...

Code hook before EntityManager is initialized in JBoss AS 6

Hi *, I'm looking for a callback facility that allows me to execute some code before an EntityManager is started in JBoss 6. More specifically, I would like to process a Liquibase changelog, before the EntityManager is initialized. Any hints greatly appreciated! J. ...

JPA Best Practice: Static Lookup Entities

Imagine, an Event entity references a Status Entity: @Entity @Table(name = "event") public class Event() { @Id @Column(name = "id", nullable = false) private long id; ... @ManyToOne @JoinColumn(name = "status_code", nullable = false) private Status status; } @Entity @Table(name = "status") public class Status() { @Id ...

How can i deploy Session Bean on another computer with Client JSP/Servlet

Hello Everybody i'm new in EJB3, i know how to deploy Session Bean (Stateless or stateful) on Glassfish server in one computer. My question is: how can i deploy session bean on Computer A and Deploy Servlet or JSP on Computer B? It mean Computer A have Session Bean Source and Computer B have Servlet or JSP source. if use 1 computer i ca...

ejb3-using-2-persistence-units-within-a-transaction

I am having problems connecting to 2 persistence units from within the same transaction using following tech stack, WLS 10.3.x, Eclipselink 2.1, Oracle 11g JDBC driver, Informix 10 JDBC driver Using inputs from this SO post I made the oracle datasource XA compliant and the Informix ds "Emulate 2-phase commit" and things started to work...

Exception using WebService client.(MyEclipse)

Hi all, I`am trying to generate web service client through MyEclipse, using my wsdl. Ive got the auto-generated classes, and I got this auto-generated example: /** * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.3-hudson-390- * Generated source version: 2.0 * * An example of how this class may be used: * * * MibasB...

django-like CRUD generation with JAVA EE6?

Hey! I just checked out the Netbeans tutorial for auto-generation of CRUD pages. Not bad, but is there any way to generate CRUD pages with Java EE that look a bit more production like? For example like the admin interface generated by Django or Spring ROO. Of course basic features like searching or alphabetic ordering should be included...

java.lang.NullPointerException, when i am inside the constructor of a managed bean invoking methods from other beans

When I am inside the constructor of a managed and trying to reach out to other methods from other beans, I got java.lang.NullPointerException. Is there some kind of specification that not allow managed bean to do that? @ManagedProperty(value="#{document}") private DisplayListController document; @EJB DocumentSBean sBean; public NewUse...

Good JavaEE book?

Possible Duplicates: Best Java book you have read so far Could you please suggest any good books for Java EE J2EE Book Recommendation Assuming I already know the JavaSE basics, what would be a good JavaEE book? ...

How to write a custom converter when working with Primefaces' components that contain POJO

My particular problem is with picklist <p:pickList converter="????" value="#{bean.projects}" var="project" itemLabel="#{project.name}" itemValue="#{project}"> ...

Error while accessing a ServicePOJO in JBOSS 5.0.1

I have a Webapplication with EJBs and ServicePOJOs. When i try to access one of those POJOS, i get the following error: java.lang.NullPointerException at com.sonydadc.MyAPP.pa.server.PA_Bean.getServername(PA_Bean.java:539) at org.apache.jsp.templates.start_jsp._jspService(start_jsp.java:104) at org.apache.jasper.runtime.HttpJspBase.s...

Hibernate Second Level Cache EhCache library mismatch?

I'm using Hibernate 3.5.0, JBoss AS 6 and Liquibase 1.9.5. I wanted to activate EhCache Hibernate second-level caching as follows: The first thing I do, is adding a new dependency to the pom.xml: <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-ehcache</artifactId> <version>3.5....