//Category EJB
package session;
import com.Entity.Category;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
// Item EJB
package session;
import com.Entity.Item;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceCon...
I'm running JBoss as a server started from within Eclipse. I have a strange problem where turning on automatic publishing (so the ability to hot deploy a class while debugging, etc.) causes the war to redeploy. When it redeploys it's over 3 times the size of what it was originally. Has anyone seen this? I'd like some method to update Jav...
Hi,
As part of all the development of some use cases, I've used a properties file approach to handle almost all the configuration parameters in the project.
Even when this approach is a security safe approach, I need to be able to change this parameters on the application, so I need an admin web module to be able to change at runtime a...
I have more the 100 table in my project. Every one hour millions of records insert in my database in this case. How find unused (idle) tables last one month or last one week. How get alert message.
Technology – Java/J2ee
Database – Oracle
...
How would I get Authentication and roles information from a JBoss realm that uses kerberos/SPNEGO from MSAD into a web-app using Spring security 3? Do I need to create a custom AuthenticationProvider or UserdetailsService? I've noticed that Spring Security 2 had container adapters, but they decided it was too much of a pain to keep the...
I'm using Glassfish 3.0.1, JVM 1.6.0_21 on Windows XP Pro;
I don't know exactly what has changed in my environment but I get this stacktrace as soon as I try to deploy an enterprise application (ejb module + app client module).
There is nothing running on port 3820, except Glassfish... I checked with netstat with the server stopped and...
I want to have a web app and then configure it to load static files from a direct path.
This is the webapp configuration:
<Context docBase="E:\webapp1" path="/" reloadable="true"/>
How do I setup the static resources.
...
As part of a Java based web app, I'm going to be accepting uploaded .xls & .csv (and possibly other types of) files. Each file will be uniquely renamed with a combination of parameters and a timestamp.
I'd like to be able to identify any duplicate files. By duplicate I mean, the exact same file regardless of the name. Ideally, I'd lik...
Hello all,
I have JSF page has two drop down lists and I want to load the second one with values based on what was chosen in the first one. However, the "onchange" event is only detected the second time I change the selection!
Web page Code snippet:
<h:form id="selectRegion">
<h:selectOneMenu id="governorate"
value="#...
Not sure if I asked this correctly. I am trying to see what I need to create an website that uses MVC and that connects to legacy multiple databases, brining back those database info into one page. I wanted the site to be MVC but am not sure where to begin. Do I use Spring? What do I use for an server? Jboss and apache? Hibernate?
...
I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.
I have build Flex/J2EE applications from scratch but can't think of the best way to do this.
I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5. Any idea on how to p...
Preface:
Most of J2EE applications are using container managed datasources through JNDI. This is fine as it gives one place for configuring these connections.
The problem arises when we want to use ORM framework (like hibernate) or something that have to know the default schema (mostly for Oracle, may be others too), which can be differe...
I've got the Spring Security preauthentication sample configured and working with JBoss. The next step is to somehow get the user information into a flex client GUI.
What are some methods that will let me get the Authentication or UserDetails object that's created by spring-security on http access into the flex client? Since I'm loggi...
I want to use the lang variable in my code, and give the value in the if command.
Is the below code possible in .jsp page ?
<%
String language = "EN";
EN lang;
if (language.equals("EN")){
lang = new EN();
}
else if (language.equals("FR")){
lang = new FR();
}
%>
// html ...
<% out.print(lang.variable1); %>
i got thi...
the code below is not giving me the answer i want, i don't know where is the problem?
FR is the translation of EN (exactly like .properties file)
i want to read the translation from the FR.java file if
i want to reach the hello variable of fr.java or en.java from the index.jsp page. but code i wrote gives me the value from Lang.java
St...
I know it it is easy to read the context-param values from web.xml with a Servlet.
But is it possible to read the value with a normal java class?
...
My application is deployed as an EAR file.
The application has traditionally required that some post installation configuration changes be made.
This was easy with the Oracle 10G OAS as the EAR was exploded into a directory thus allowing easy access to configuration files.
With 11G, the EAR is not exploded resulting in additional d...
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...
I'm porting a dynamic web project to Struts2 and I gotta convert a many servlets to Struts2 actions. I want to use the ServletRequestAware, ServletResponseAware and SessionAware interfaces and keep most of the code unchanged. Please take a look at BaseAction.java class which I found by GOOGLin'. I want to use this so that i can make othe...
I have a single threaded message listener that listens for the incoming messages.The received messages are persisted in a database as they are recieved.
There is a message A and associated message B follows it with a reference it.In Some Odd occurences, B arrives before A. Now in this case, There has to be 3retries after some 'x' equal...