I have a Java web application bundled as a WAR.
The application is deployed in jBoss 5.0.1.
For historical reasons I am unable to use the built in authentication & authorisation specified via web.xml. Primarily this is because it isn't possible to specify the URLs that should be protected using web.xml's "web-resource-collection" elemen...
Hi,
I'm using spring-security framework.When I update the permissions,It does not take effect immediately.I have to quit the current user(means logout), and then re-visit(means login) will be to update the user's permission.
Is a way that immediately enable the authority after update user authority in spring security?
...
We have a J2EE/portal application running on WebLogic Portal 10.2. We have recently introduced an asynchronous EJB call, but after putting it into production, we're getting an error message that says
MDB application XXX is NOT connected to messaging system
Is this a coding issue, something that can be tweaked with a runtime parame...
I see a lot of J2EE developers put labels in property files but don't use different Locales. So, you get a lot of missing property exceptions. And the main thing is that it makes it hard to debug and read a JSP page. So over time, you have thousands of lines of property files that may or may not be used with the JSP file.
For me, it ...
I have a j2ee web app that is using JAAS form based authentication. However, due to some unusual requirements, I cannot have the user enter their username and password directly into the logon.jsp form and have them submit it. Instead, I must gather the data on a separate page, and then later redirect to logon.jsp to log them in.
What I ...
I'm having a difficulty with naming the pattern used commonly by the application I've been working on for a while. Just to set the scene: this is a JEE application that uses messaging (JMS) a lot, persist data in relational database (JDBC) and relies on global transactions (XA) managed by the application server (JTA).
The pattern I'm ta...
I've put the Hibernate libraries in both the Glassfish domain and in the library collection of my project in Netbeans. hibernate-entitymanager.jar contains both HibernatePersistence (the last class in the call stack) and Ejb3Configuration, so I'm rather stumped as to why I get the missing class error for Ejb3Configuration.
java.lang.NoC...
I have a Servlet which is returning a csv file that is 'working' over HTTP in both internet explorer and firefox. When I execute the same Servlet over HTTPS only firefox continues to download the csv file over HTTPS. I don't think this is necessarily an Internet 6 or 7 issue described on MSDN :
The message is:
Internet Explorer ca...
I want to define injection so that only if the injected interface has EJB it will be injected. This is used as a plug-in to the main EJB. How to do this? Is there some annotation for this?
I can use @PostConstruct to manually "inject" the variable. But then I have to handle the dependencies by myself. How can I handle dependencies knowi...
I face troubles accessing my website deployed on Websphere Application Server 6.0 when I deploy my application which uses JSF1.1 Runtime Environment.
At first It loaded with some errors telling me that my commandLink is missing bodyContent, which is Optional, but I think edited my pages and the page is displayed.
When I try to press an...
I'm currently developing a library for monitoring calls to several remote services (WebServices, EJBs...).
One of the parameters that i would like to register is the port from which a EJB is called (a Stateless Session Bean invoked like a remote object)
There is any standarised way of getting the port? Or should I inspect the JNDI tre...
How do I use a fully qualified host name for the "java.naming.provider.url" property in the "env" parameter passed into (J2EE) InitialContext class. Whether I pass in an IP address, or a fully qualified (host.domain...) host name, the lookup( name) call will fail, saying it cannot find the hostname, where the hostname is just the "basen...
Revising some past exam papers for an exam mainly focus on component-oriented design and J2EE, I have come across the following question:
A preliminary investigation of scenario 3: “Exchange Request” suggests that two EJBs will provide a suitable solution: a session bean called EnterExchangeRequest to control the processing and an entit...
Given the following:
@Entity
public class Parent implements Serializable {
@Id
private Long id;
// mapped ManyToOne below...
private List<Child> children = new ArrayList<Child>();
...
}
Is it a bad practice to have Parent.equals() and Parent.hashCode() use only id? I understand that Child.equals() and Child.hashCode() shou...
I wanted to read contents excel files in my web-based project(J2EE-JSP+Servlets) which are located inside the web server's folder..
So, I have made a java file, which i will call through a JSP page using JSTL library.
I need to have the path of excel sheet in that java file, so that i can read the contents of that excel sheet. The exc...
Is it possible to override the settings in war file's WEB-INF/jboss-web.xml? I have a war file from a vendor, and I'd like to change the datasource which it uses without modifying the war file itself.
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
....
<resource-ref>
<res-ref-name>jdbc/primaryDatasource</res-ref-name>
...
Do people practically ever use defensive getters/setters? To me, 99% of the time you intend for the object you set in another object to be a copy of the same object reference, and you intend for changes you make to it to also be made in the object it was set in. If you setDate(Date dt) and modify dt later, who cares? Unless I want some b...
How can I get the J2EEServer MBean using JMX query ?
I've tried something like :
mbsc.queryMBeans(new ObjectName("*:j2eeType=J2EEServer"), null)
but no success ?
Have i done something wrong?
Thank you!
...
I am designing a website-based project wherein I first designed my logical layer in Java J2SE application development. Then I made the GUI in J2EE for website. I am importing my J2SE files in J2EE architecture using JSTL and I will call the data using this only. But it is giving me an error as follows:
for-each loops -- for-each loops ...
Hey Guys,
I want to start working with J2EE, used to .NET
What plugins do you use for java&j2ee on eclipse?
Interesting things would be,
Database
Javascript
UML
UI
Hibernate(are there plugins to work with hibernate?)
Anything else that you use that helps your work.
Cordially,
...