j2ee

j2me and j2ee communication

i want to make application send a message via J2me application to the server(Tomcat J2ee) and the sever will back message to my J2me application. Request response model between J2me and J2ee(Tomcat server)..... ...

Exclude section in page from IntelliJ code formatting

Hello, Is there any possible way to have IntelliJ -not- format part of a page? I'm using XHTML and facelets but this could apply to any page. I'm also curious if it's possible to do that in code, though that's not as important to me as excluding pat of a page. Thanks. ...

Is H3T a good solution to my lazy loading problem?

Still working on resolving this question. I came across H3T which looks like a promising solution. However, I'm really not 100% sure that it will work for me. For instance, it looks like H3T won't work when the client is local - which is how my app currently works. Has anyone out there used H3T, specifically under JBoss 5? How did it g...

How to define JPA?

Hi, I have just joined a on going project based on spring framework. It usage hibernate as ORM system. and it is well integrated. I have learned a lot with this project. But some how i am not satisfied with my understanding of hibernate, JPA, when they are mixed together. It has been very confusing for me to understand when my PM is tal...

Axis webservice error

I have written a simple java file Calculator.java as below public class Calculator { public int add(int a, int b) { return a+b; } public int subtract(int a, int b) { return a-b; } } Now, i renamed it to Calculator.jws and put it in my web application's root directory. (in the same directory as the WEB-I...

Data conversion from binary type data to readable format

Hello, we are using BSE lease line to fetch their detailed data about BSE Application.As per protocol the data coming from their lease line will be in binary format.We want to create a socket in java which will read that binary data,and will convert that binary data to readable format,which can be later on used for our purpose. After re...

Debugging transactions with Glassfish 2.1

Occasionally, I get following exception when running my Java EE application with Glassfish: Error in allocating a connection. Cause: java.lang.IllegalStateException: Local transaction already has 1 non-XA Resource: cannot add more resources. The application uses a single JDBC connection pool that is not XA-capable. However, I was not...

When moving to Eclipse J2ee from regular, do I need to uninstall?

I currently have the standard dev eclipse 3.5.2, but now need to do some jsps etc, so want to move to the j2ee version. Can I install the j2ee version right over my old one, or do I need to uninstall? I guess another option might be to get the WST packages and install those directly? Any advice is appreciated. Thanks, Mike ...

J2me with Eclipse?

I have two classes one is J2me class HitMIDlet and a servlet HitServlet i want to send request to servlet using J2me class.How i will mange these these two classes using Eclipse .? ...

Reject GET Method on j_security_check

Is there a way to only allow POST requests to j_security_check? I want to reject GETs. ...

Rename the fields of ejbql query in ireport

Hi, im using iReport 3.7.3 with ejbql connection my problem is when i want get the fields from the query, the ireport sets the name of the fields with "COLUMN_1", "COLUMN_2" even if i use the sentence "as" the ireport get's me that name to the fields. Here's an example of my query select doc.docId as DocumentID, doc.transactionDate as T...

Does a war file size affect in some way the application and/or application server performance?

Hi, we've bean struggling here at work by somebody suggestion that we should decrease the size of our war file, specifically the WEB-INF/lib directory size, in order to improve our production JBoss instance performance. Something I'm still suspicious about. We have around 15 web apps deploy in our application server, each about 15 to 2...

What versions of related technologies apply to J2EE 1.4, 5, and 6?

So I've had some hairpulling experiences lately because of coming onto projects being developed using one technology (say Tomcat 6) but having to deploy to another (say Oracle 10g R3). Differing application servers aside, multiple times I've had to downgrade J2EE specs say from J2EE 5 to J2EE 1.4 and in doing, had to scour the web to fi...

GlassFish Forbidden 403 error page

I am really confused with this error and need some help. When accessing my link the first time in IE I type in : https://something/other/test.jsp and I'm presented with the FORBIDDEN-403 GlassFish Enterprise Server is now Presenting The Forbidden Page error page in GlassFish. However, if I refresh this same page then I see the resul...

JDBC, JNDI Problem with tomcat 6.0.26

Greetings, I am developing a webapp that requires setting up a DataSource with JNDI using Enterprise JDBC Classes.I am using the Netbeans 6.9 bundled tomcat (6.0.26 app) server with mysql 5.xx.The issue really is that I can still see the database values from a relation being displayed in my jsp page whereas during the tomcat initializati...

Diff between database conn through session bean and entity bean

Hi all, Could you please tell me what is the difference between writing JDBC (or) HIBERNATE Connectivity code in EJB3 Session Bean and Writing same Connectivity code[JDBC (or) HIBERNATE] Through EJB3 Entity Bean(JPA).could anyone please clarify this.. Thanks in Advance... Raghavan.. ...

Java heap bottleneck - how to identify the cause?

I have a J2EE project running on JBoss, with a maximum heap size of 2048m, which is giving strange results under load testing. I've benchmarked the heap and cpu usage and received the following results (series 1 is heap usage, series 2 is cpu usage): It seems as if the heap is being used properly and getting garbage collected properly...

EJB CMT TransactionAttributeType.REQUIRES_NEW doesn't work.

@Stateless @LocalBean public class MySLSB { @Resource SessionContext ctx; @PersistenceContext(unitName = "myPU") EntityManager em; public void T1() { em.persist(new MyEntity(1L)); //T1 created! /* wrong call to plain java object T2();...

struts2 interceptor problems

Hi, I am new to struts2, prior to this I have been using struts1.2, Spring and Hibernate combination. I have just started using Struts2,Spring and Hibernate application, but I seem to be plagued with interceptor exceptions, There are two error which keep happening, all in different scenarios 1) 2010-07-26 19:50:58,031 ERROR org.apa...

j2ee webapp A using authentication facility of web app B

Any user that tries to access some secure resources on my webapp A needs to be authenticated with a webapp B. B has access to the user credentials password etc., I am wondering about the right way to go about this. One alternative would be to have a filter protecting my secure pages. If a user that is unauthenticated access A secure res...