j2ee

ActiveMQ forwarding from local broker to a remote broker [with unstable connection]

I have the following problem: I have several sites with a local ActiveMQ broker that forwards to a remote broker (in a datacenter). This connection is often unstable, and goes down several times a month for a few minutes or hours at a time. Messages therefore need to wait on the local broker if the remote broker is not accessible at th...

Classloading notes with quartz server in jboss 4.2.3

Hi i'm configure my quartz server on jboss to make it the access to other classes in a ear, setting in the quartz-service.xml that depends of the other .ear. The server deployed works fine but when the job it's work throws an excepcion of "No classloaders found" and it's rare because the quartz starts after my ear. I don't if i need anot...

Thread deadlock in J2EE application

I am a newbie to J2EE. I wonder if there are some common deadlock cases in J2EE application layer, resulting from using Java synchronization primitive - synchronized keyword. If yes, could help give an example? Thanks a lot! ...

What's different when implementing Flex authentication/authorization in a clustered environment?

Are there any differences implementing Flex application security in a clustered Java environment (such as Oracle Application Server/OC4J or a JBoss cluster) vs a single application server environment? (And/or does it depend on the specific environment software?) What considerations are there in a situation where you need to authenticate...

tomcat and his classpath manager

hi, if deploy on tomcat myapp.war contains two lib (lib1.jar and lib2.jar), which contain both a.b.c.MyObj which one chooses at the time of the creation of MyObj ? ...

JAAS LoginModule login() and commit() successful, but user not logged in

Hello, I've implemented a LoginModule to perform some custom authentication, and call the authentication using the login() method of the LoginContext class. The login module's login() and commit() methods are called successfully, but instead of being able to use the web app I am being sent back to the login page immediately. request.g...

EL evaluation in tags

In the below code snippet, the intention is to take value for name from a variable, however no value gets output when it is tried with EL, while direct assignment works fine. <%! String sName; %> <% sName="ABC"; %> <H3> Hello <c:out value="${sName}"/> </H3> <H3> Hello <c:out value="ABC"/> </H3> What is missing or has gone wrong here?...

exporting war file in jdeveloper 10g

how can i export .war file in jdeveloper 10g ? ...

choosing platform as a service

Hy guys, I am currently doing the architecture of a small start-up. Due to budget constraints and trying to avoid as many problems related to deployment and scalability as possible I decided to go for a PAAS related to one of the Cloud solution providers out there. I am currently balancing between the well known Google App Engine and th...

accessing the .java file from .jsp file in Eclipse

in eclipse IDE how can i access a java class from .jsp exactly like accessing a servlet from a jsp file ? in other word, what should i replace with question marks "????????" <form name="myForm" action="???????????????" method="post"> </form> when i run engine.java file from "mypackage" package tomcat application servers shows this add...

Ant build symlink error

Hi, I am getting the symlink error when i do an ant build. Searched in net and some posts suggested to download junit jar for fixing it. Downloaded junit-4.8.2.jar. Added this jar file to Classpath but still's not working. I tried to include the jar file within the build.xml but still it didn't work out. <target name="-createDir"...

Preparing Ear file in maven..

Hi All, We have replaced ejbs with Spring transaction and security(service facade) in our project. Earlier we were using maven ejb plugin to include dependent libs in the classpath. <plugin> <artifactId>maven-ejb-plugin</artifactId> <configuration> <archive> <manifest>...

Recommended profiling method for J2EE deployed in JBoss AS 5

Greetings, I'm attempting to profile a J2EE project (EJBs, Servlet, JSP) which is deployed in JBoss Application Server 5. I would like to find the methods which use the most cpu and memory. What are the recommended methods and tutorials? Thanks in advance, Ken ...

Java Web Service with backend stuff going on..

Hi Everyone, I'm thinking about developing a Java Web Service using RESTEasy. I am going to follow this example: http://technicalmumbojumbo.wordpress.com/2009/10/13/restful-webservices-using-jboss-resteasy-tutorial/ Now, that's very well and good for getting the server to reply back with a simple response, however how do I get some "ba...

building a web plugins platform for video

I am thinking of ways by which people may interact with video and probably publish them. So, I have a service in mind that people can use to upload the video to one place and then just write plugins which tells my webservice what to do with these videos. my current plans are like if someone uploads a video to my service and then edits it...

How to handle parent key constraints in jdbc transactions?

Hi, I have 2 tables named T1 and T2. Where T1 is parent and T2 is child. The scenario is, I started a jdbc transaction and then insert a row in T1 and then try to insert a row in T2. Inserting row in T2 gies me "Integrity Constraint-Parent key not found" exception. How i handle this scenario ? Connection con; try{ con = ConnectionP...

Ajax Log-in or Auto-login with J2EE Container-Managed Security (FORM-based auth)

I have a J2EE webapp which uses standard FORM-based authentication, using a login.jsp page, which works okay, apart from a couple of glitches: If username/password are incorrect, the login error page auto-redirects back to login.jsp, but unfortunately "j_security_check" then appears at the end of the URL - which I know is sub-optimal. ...

what is the J2EE framework for web services ?

Hi all! I wanna build a server web services using J2ee! But I don't know what is best j2ee framework! Plz help me choose the best in many j2ee framework. I attend to interoperability, performance, security and changability. P/S my server will not using for website but it will using to distribute application (for mobile). ...

Get the server port number from tomcat with out a request

Is there any Tomcat API or configuration available which can tell an application (probably on startup), what port its running on without a request?? *EDIT* Imagine a scenario where there are two web applications running in the same tomcat and one of which need to invoke a web service from the other one. We don't want the request to l...

Where is Web container's default locale defined?

I was reading i18n chapter from java blueprint and I came across this "the system default locale for a Web component is the Web container's default locale" (@ http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/i18n/i18n4.html). I am wondering if there is anything like that. Also, I see that faces-config.xml p...