Home » Java Technology

Java Enterprise java bean & Java EE (EJB)

EJB3.0 CallBack methods - simple doubtWed, 16 Jul 2008 22:44:00 GMT

Hi all,I am a newbie to EJB3.0. I am trying to run a EJB3.0 program using CallBack methods.Here's the code:When I try to run the client, the program works perfectly, but none of the callback methods getting called. CAn you please let me know what went wrong?Thanks,GuruInterface - HelloCallBa...

Comments (10) | Promote | Bookmark

Q-build testers wanted !Wed, 07 May 2008 18:08:00 GMT

Hello NetCAT team,as you might have already noticed we are certifying latest NetBeans 5.5 daily build today. If no showstoppers are found it gets promoted as Q-build. Thus I turn to you, NetCAT participants, with some spare time in the hope of getting some help.It's easy: you download the c...

Comments (9) | Promote | Bookmark

5.5 Preview application server registration problemWed, 07 May 2008 09:55:00 GMT

Hi,I installed the 5.5 preview on my Solaris X86 machine by following theinstallation instructions. I left everything to their default values. Atthis point I tried to verify the application server and BPEL runtimeconfiguration, again following the installation instructions. It callsfor me to swi...

Comments (8) | Promote | Bookmark

con = getConnection()Wed, 16 Jul 2008 22:24:00 GMT

Hi All, I use WL 8, Win2000 ,Eclipse and Struts and EJBs.I have set up data source and connection pool in WL 8. In my "EmploymentHistoryBean" class's methods , is it "okay" to write following statement to get connection object ? Once I get this "con" i pass it on to DAOs. con = getConnection...

Comments (6) | Promote | Bookmark

question about ++ operatorThu, 07 Feb 2008 23:58:00 GMT

int i = 0;i = i ++;System.out.println(i); the result is 0.i know the executing sequence is: first =, then ++.but, ++ operator DOES execute. so, if it doesn't affect the i's value, then it affects what?anyway, i couldn't understand why the output is 0! ...

Comments (6) | Promote | Bookmark

What does the JNDI lookup return?Wed, 16 Jul 2008 22:14:00 GMT

Hi, when we perform a JNDI lookup, does it return a reference to the Home interface or the reference to the class which implements the home interface which is created by the container during deployment?Regards,Sathya...

Comments (5) | Promote | Bookmark

Sun Application Server PE9 not responsive after logoutSat, 10 May 2008 02:37:00 GMT

Hi,I've installed Sun Application Server PE9 on Windows Server 2003 and itsrunning as a service.I deployed a web app and everything is working fine.However when I log out of the desktop (logged in as administrator) the webapp becomes inaccessible. I tried connecting to the web app from anot...

Comments (4) | Promote | Bookmark

.jar filesThu, 20 Sep 2007 19:55:00 GMT

Someone please helpI am trying to run a JXTA class. But if I run it in a java environment (Jbuilder) I get a verify error. If I run it through the command line and set the paths for the .jar files it still will not import them.Does anyone know why this is happening or what I could be doing ...

Comments (4) | Promote | Bookmark

How to re-send event (fire)?Wed, 19 Sep 2007 19:00:00 GMT

Hi,I have a JPanel with a JButton. I registered addActionListener on that button. I also have another JFrame class which adds above JPanel to its rootpane.How can I notify my JFrame if user clics on the JButton? In above case only JPanel will know that user clicked on the button so I guess that ...

Comments (4) | Promote | Bookmark

hashtable....Mon, 24 Sep 2007 07:29:00 GMT

hi for a given string value... how to search the data from hash table .... i have a string this value existing in hashtable... now i need to search this string value in hash table ... how can i do.... plz i need code thnx...

Comments (3) | Promote | Bookmark

EntityBean with out the DB table?Wed, 16 Jul 2008 22:07:00 GMT

Has any one ever created an Entity Bean with out actually mapping it's contents to a database table for persistence? I kow it is not the mainstream, but I have a architectural request for it and I have never used a Entity bean in that manner. If so, can some one provide some info/example of...

Comments (3) | Promote | Bookmark

JDK install via a zipFri, 21 Sep 2007 07:30:00 GMT

Hello to all;it seems to me that the JDK used to be installable via a simple zip unzipping. I am working on a Windows 2000 platform on which I have no right (at least, not the right to run the traditional InstallShield installer).Does anyone nows if Sun (or someone else) provides a JRE as a ...

Comments (3) | Promote | Bookmark

MVC & EventsSat, 22 Sep 2007 14:46:00 GMT

Hi,I'm making a Swing application trying to follow the MVC pattern. To that end, I have an ApplicationView class and an ApplicationController class (as well as a DataModel). Obviously, I want to have the view as loosely coupled to the controller as possible so I can swap out the GUI later on ...

Comments (2) | Promote | Bookmark

Problems with EJB3.0... (continued)Wed, 16 Jul 2008 22:08:00 GMT

Hi guys,I posted on here a couple of days ago about problems I was having deploying EJB3.0 on teh Sun WebApp 9.0.Whilst I've mnaged to deploy my EJB & Client (SimpleServlet) as seperate modules (web.war & ejb.jar) I am stillhaving trouble getting the Servlet to connect with the EJB...I have...

Comments (2) | Promote | Bookmark

how do struts & ejb combine to a web applicationWed, 16 Jul 2008 22:34:00 GMT

how do struts and ejb combine to a web application, have example? thanks...

Comments (2) | Promote | Bookmark

when to use which bean?Wed, 16 Jul 2008 22:25:00 GMT

Hey ranchar can you kindly sugest that in which situation we have to use session bean, in which situation entity bean i mean i alwase get confuse that when to use which beanRegardArun...

Comments (2) | Promote | Bookmark

error while creating a statementWed, 16 Jul 2008 22:11:00 GMT

The code which helps in creating a statement is giving this error.java.sql.SQLException: General error at sun.jdbc.odbc.JdbcOdbc.throwGenericSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(Unknown Source) at sun.jdbc.odbc.JdbcOdbcConnection.createStatement(Unknown Source)****...

Comments (2) | Promote | Bookmark

Math.power(...) helpMon, 24 Sep 2007 06:57:00 GMT

Help!!I need to raise 2 to the power of another number, simple as it sounds im having a little trouble. The problem is I am raising 2 to the power of a very large number i.e. 2^1100 or even higher, and am recieving the error java.lang.NumberFormatException: Infinite or NaNwhich I am guessing is ...

Comments (2) | Promote | Bookmark

AuthenticationWed, 16 Jul 2008 22:16:00 GMT

Am trying to perform a user authentication using Java beans but am not able to get the user to sign on. will appreciate any resouces with user authentication - sample codes or tips....

Comments (1) | Promote | Bookmark

Naming Exception - Error accessing repositoryWed, 16 Jul 2008 22:05:00 GMT

When i am trying to run my clien on some other PC, after i have deployed ,my .jar file on the server succefully, i am getting this exception - "javax.naming.NamingException : Error accessing repository : cannot connect to ORB"Please suggest me how to run a client remotely....

Comments (1) | Promote | Bookmark

java.sql.SQLExceptionFri, 21 Sep 2007 02:43:00 GMT

HiDoes anybody know the solution to these two problems:1. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Object invalid or no longer set.2. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Cannot open any more tables.we are using jdk 1.3.1_04 and ms access ...

Comments (1) | Promote | Bookmark

Enterprise WebApp PackagingWed, 16 Jul 2008 22:22:00 GMT

Currently, my engineering group is in the process of refactoring our application code. The purpose of repackaging the code is to formalize and codify the separation of the different code modules. After repackaging is completed, there will be X distinct packages, where now there are only 2. These...

Comments (1) | Promote | Bookmark

j2sdk1.3 on redhat linux 7.3Thu, 20 Sep 2007 17:59:00 GMT

I recently installed j2sdk1.3.0 on redhat linux 7.3,but the problem is java or javac only runs wheni used -green or -native parameters with it, without these parameters the system give the message .java_wrapper is not found. Is any way that I don't need to specify these parameters again and ...

Comments (1) | Promote | Bookmark

Problems in keytool in jarsigningMon, 24 Sep 2007 14:27:00 GMT

Please help, i've installed JDK 1.5.0_04 on my windows xp... i created an account and password in the keytool.Weeks passed and i forgot my keystore password. After a week later again, i remember it, but the keytool said thatthe password was either tampered or incorrect. I uninstalled it and ...

Comments (1) | Promote | Bookmark

openinig internal frames by clicking menuitemsSun, 23 Sep 2007 14:14:00 GMT

Hi,I have been trying to open internal frames by clicking menu items but have not been able to do so because menuitems support only action listeners and not all mouse event listeners.Actually I wanted the event to return the frame n which the event has occurede.g., event,getframe(), so that I ...

Comments (1) | Promote | Bookmark

Why is my bean locked when i call methods on itWed, 16 Jul 2008 22:07:00 GMT

Hi,I have a been that when i call this line in ejbActivate() id = new Integer( (String)context.getPrimaryKey() ).intValue() ;i get an exception, see below. i don't know how i could have locked the bean, container transaction probably. i would think it is a depoyment config thing but i am not...

Comments (1) | Promote | Bookmark

WorkLoad MonitoringWed, 16 Jul 2008 22:22:00 GMT

Hi, I have to develop a [jsp/servlet/class] program which can monitor the workload , messages , byte consumes , message received , message consumed..It means it should be able to monitor all the activities going on WebLogic ...would really appreciate the suggestions ...RegardsNand KEswani...

Comments (1) | Promote | Bookmark

java null pointer exception when calling create on a localhomeWed, 16 Jul 2008 22:06:00 GMT

the subject say it all. I find the localhome, cast the result but when calling create I get the following exception. (using jboss 4.0.2).If you can help or have a pointer on the reason why. I googled extensively with no result.Alexjava.lang.NullPointerException at org.jboss.ejb.plugins.local.Loc...

Comments (0) | Promote | Bookmark

character encodingSun, 23 Sep 2007 10:15:00 GMT

Can anyone help me with this?scenario:I retrieve a word file from a microsoft database where it is stored as an image object.This is done by:byte[] b = resultSet.getBytes("data");I then write this byte-array to a file in the following manner:for(int i = 0; i < b.length; ...

Comments (0) | Promote | Bookmark

question about test ejbWed, 16 Jul 2008 22:28:00 GMT

helloi am new to ejb, have got lots of questions that confused me,i sincerely need your helps,thank you!normally,when i develops ejb,i always make them ear files first,then deploy them to the j2ee reference server by using the deploytool that is built in the j2ee developing kit,if i find error,i...

Comments (0) | Promote | Bookmark