I have built a small application which creates/maintains company divisions following the MVC design pattern.I now want to move the methods which create,update, add objects out of the controller possibly into the Model servlet. This I hope would allow other parts of the application (not yet ...
612 byte By
ventural at 2007-9-26 1:18:15
Hello!I am an Italian student who studies Computer Science at Pisa University, andI am developing some projects in Java using Java 2 Standard Edition (J2SE) and Java 2 Micro Edition (J2ME, for MIDP 1.0 compliant devices). I need to know if there are some Java API(for J2SE and J2ME) to send SMS ...
335 byte By
achilipu at 2007-9-26 1:18:49
Hi all,I'm a newbie in Java and I have a question which I'm sure the most of you will find pretty easy. I need a servlet which take an URL given from a redirect process and then the servlet must work with it. I think I have to do it by means of the doGet method. Any idea?Thanks in ...
108 byte By
tpgoldie at 2007-9-26 1:39:29
When is the Java v1.4 official release. i know it is in beta at the moment.Regards Tony
HiI want to use the Struts framework to implement an MVC pattern. For the model I would like to use EJB's.Is there any problem with my approach? Should I rather use another framework?
1592 byte By
bdagnon at 2007-9-26 1:54:02
Hi,I was looking at the 1.4 beta and noticed that many bugs are not fixed including one of which (bug ID: 4127936) is 3 and 1/4 years old and was supposed to be fixed in 1.2. This would not happen if either:a.) Sun changed its "let's expand into every possible area but rarely fix what we've ...
42 byte By
CYung at 2007-9-26 1:54:36
Does J2EE support Linux 7.0?
2184 byte By
hustck at 2007-9-26 2:16:30
Infomation in the console:D:\j2sdkee1.2.1\bin>j2ee -verboseJ2EE server Listen Port: = 1049Naming service started: :1050Published the configuration object ...Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:CloudscapeDB;create=truejava.lang.RuntimeException:at ...
HI allcan anyone give me the code (java application or applet)preferably(appln) which implements password provisionfor folders in system.i.e when i click on a folder it should ask for passwordand when authenticated access is allowed.please helpemail: shri_gururaya@hotmail.comthanksbelur ...
2310 byte By
JavaDen at 2007-9-26 2:22:38
anybody know why j2ee won't start ?port 1050 is not in usethese are the error messagesC:\>j2ee -verboseJ2EE server listen port: 1050org.omg.CORBA.INTERNAL:minor code: 1398079697 completed: Noat com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:256)at ...
I am starting a Java/Enterprise/Internet project as a training exercise.I am an experienced programmer who has learnt Java this year and got Sun Certification. I am now trying to learn databases, server side, EJB etc, and I want to start a project to build some experience. (it would also be ...
256 byte By
jp_menon at 2007-9-26 2:37:41
I would like to know how a build and package an appliation containing EJB's ,beans & Jsp's to be made into a (executable file or something of that sort) installable package on solaris.all sugestions remotely related are welcome!!
578 byte By
javamad at 2007-9-26 2:44:01
Hi guys, congratulations for your book, it's a very good one.I have one question and one remark for you :1 the remarkPage 47 and 48 you say something totally wrong i think when you say that the developper has to reset himself the javabean between two requests. If you specify the scope of the ...
179 byte By
buddin at 2007-9-26 2:51:51
hiI got an error while i am running my client program.error is java.lang.NoClassDefFoundError: javax/naming/Contextsuggest me with some idea pls
1022 byte By
walpj at 2007-9-26 2:56:03
My comments in the forums listed below suggest some requirements for two APIs related to client-side Java.o An application instance manager API that offers a Pure Java method to invoke other Java application instances.o An application cache API that manages information about the location, ...
434 byte By
kklchan at 2007-9-26 2:56:56
I am looking for a pattern to set up a server appliation where clients can connect and configure a computation engine (a Bean, not necessary EJB.) The Bean would then execute entirely on the client side, possibly disconnected from my server.Because it requires quite a bit of db support to ...
2121 byte By
chemali at 2007-9-26 2:58:34
I am using JDK1.3.1 and JSDKEE1.2.1 and the j2eeserver does not start!!! Here's the output. C:\j2sdkee1.2.1\bin>j2ee.bat -verboseJ2EE server Listen Port: = 1049org.omg.CORBA.INITIALIZE: Could not find the POA-to-id mapper. Please ensure od has been started. minor code: 0 completed: Noat ...
490 byte By
6tr6tr at 2007-9-26 2:59:14
I have a thought:Why don't we developers start an open source, java-language operating system? Does anyone out there have a server on which you could put a website like JavaOpenSourceOS.org or something? Then let everyone contribute code? We could build a diagram of the diff. parts it would ...
2548 byte By
stockmry at 2007-9-26 3:02:06
I'm trying to implement the FrontController design pattern from Sun. But we keep on running into problems when we port the application to apache/Tomcat structure. It works fine in a tomcat stand alone. De context is initialised and the servlet is found using the url pattern, however when we ...
618 byte By
javamad at 2007-9-26 3:07:44
Hi guys, a few questions about the Synchonizer Token (page 77 --> 82). When a page (that souldn't be submitted more than once) is requested, a unique value is generated. That value is included in the page (hidden field) as well as in the user's session object. When the page is submitted, ...
645 byte By
cop4587 at 2007-9-26 3:12:11
I am developing EJB with JBuilder 5 and have JDK 1.4 beta installed on my machine. So I installed Borland AppServer 4.5, but when I try to start it, here comes a problem:BAS 4.5 only support JDK up to 1.3.0 not higher! When I start it I got a bunch of error msg . Since I don't want to ...
Hi,I have just downloaded the j2sdkee1.2.1. I have been able to configure it and try out couple of example. But when i tried the example "accounts" using an entity bean it say that it "cannot find the principle implementation jdbc/Cloudscape". Actually i have not been able to run the provided ...
I want to use a stateless session bean as Controller. The controller will then forward requests to relevant process session beans. The controller bean will be called by a MainServlet (or whatever the channel is).Will the container create multiple session beans for each request, and will they be ...
225 byte By
xorphee at 2007-9-26 3:22:22
How can i make an auto-exe main program in java. It can be an exe or an auto jar file.I'd like to understand how making a java main file that can be load like an exe on window for example...thanks
772 byte By
707819 at 2007-9-26 3:26:44
Hello - I'm feeling out the ValueObjectFactory pattern and am running into a problem. My SessionEJB is deployed and working (it's returning values to me, etc.). Problem: when the ValueObjectFactory class tries to run class.forName(voClassName) where voClassName is the name of the class I want ...
339 byte By
siv-viv at 2007-9-26 3:33:21
hi generous people!!!, well what i want to do is that 1. if a query is made on to xyz.jsp on the browser then automatically then a page called abc.jsp should appear I HAVE HEARD THAT THERE IS A EASIER WAY OF DOING THIS THRO DEPLOYMENT DESCRIPTOR !!!! if anyone has done that then suggest me how ...
75 byte By
snanting at 2007-9-26 3:36:49
Help,How can I make a Applet receive data from a serial port?
I used java.io.BufferedInputStream in a class which will be used in a stateful session bean.Because the java.io.BufferedInputStream class does not implement the java.io.Serializable them the EJB Container ,I use JBOSS said "stateful session bean can not be passivated".The Exception as ...
507 byte By
dubwai at 2007-9-26 4:04:57
I am trying to implement a strategy where the last session bean to be accessing an entity bean removes that entity bean before going out of scope.Essentially a session bean looks for a particular entity bean and if it isn't there creates it. As each session bean is about to be destroyed I want ...
Instead of using Beans to contain the data for JSP pages I want to use XML objects. For example, a 'Document' object which represents XML data.I should then be able to interface easily with web services -some clients might require the raw xml string. Furtermore, I am not tied to JSP. I could ...
1650 byte By
pebbati at 2007-9-26 4:13:22
Hi I am trying to print a job using printer job. through program I need to invoke the printer job and give the file name to be printed . it is giving exception at pj.print();code is as followsPrinterJob pj = PrinterJob.getPrinterJob();pj.setCopies(2);System.out.println("usernmame=" + ...
1661 byte By
bhc6849 at 2007-9-26 4:21:01
We have a case where we are designing a set of EJBs that will play the role of Value Assembly Objects. Our Business Objects are in DBs that have DAOs layed below an EJB layer. When we construct the Value Assembly Object (VAO) as a Stateless Session Bean, we have the following choices:* Have the ...
711 byte By
mellish at 2007-9-26 4:21:55
We have a web-based application where our customers want to be able to customize and extend our system's functionality. Microsoft has some technology called VSA ( http://msdn.microsoft.com/vstudio/vsip/vsa/default.asp) that they claim gives developers a way to customize and extend web-based ...
1333 byte By
mroshea at 2007-9-26 4:30:02
Hi, I've just come across some commerical components which are packaged slightly strangely and I'd like to find out if their approach is J2EE compliant.The components are EJBs which are packed into several EJB module archives (.jars) inside a main application archive (.ear). The interesting ...
New to J2EE.I want a session bean to be called every x seconds. The time when the session bean needs to run is stored in a database. Any ideas how?The only thought I have so far is to write an external timer program to regularly call the session bean. This however means that my solution isn't ...
564 byte By
JPons at 2007-9-26 4:36:30
I need to acces a ejb from a bean, working with iplanet, but I cant open the home object. An NoClassDefFoundError happen.there is the code:String JNDIFormulari = "java:comp/env/Formulari"; Object BOFormulari = null;com.base.formulari.FormulariHome HomeFormulari;com.base.formulari.Formulari ...
564 byte By
JPons at 2007-9-26 4:36:31
I need to acces a ejb from a bean, working with iplanet, but I cant open the home object. An NoClassDefFoundError happen.there is the code:String JNDIFormulari = "java:comp/env/Formulari"; Object BOFormulari = null;com.base.formulari.FormulariHome HomeFormulari;com.base.formulari.Formulari ...
77 byte By
tman191 at 2007-9-26 4:37:21
Are sessionContext and HttpSession related?Thanks
1039 byte By
bdturne at 2007-9-26 4:37:31
I am havin trouble finding a method for doing complex searches that I am happy with. I have a table of "log entrys" - each "log entry" is composed of an "admin user", "action" and one or two "target" value objects, as well as a Timestamp.The problem here is a user, through a JSP form, will want ...
I am exploring channels to present ideas to Sun for a new initiative. Does anybody know how to go about this process? I came across the Java Community Process page and initially thought of submitting a Java Specification Request(JSR), but only paying members can submit JSR's. Besides ...
1033 byte By
chemali at 2007-9-26 4:48:40
One thing escapes me in the Pet Store application:The ModelManager object contains the HttpSessionvariable,public class ModelManager extends ModelUpdateNotifier implements java.io.Serializable {private ServletContext context;private HttpSession session;private ShoppingClientController sccEjb = ...
Is it bad practise to access an EJB Entiy bean directly from a JSP? If at all possible?For examle:1. A user requests a list of Tasks in a form on a web page. 2. This form is then forwarded to a Controller servlet. 3. The Controller forwards the request to a stateless session bean ('Process'). ...
621 byte By
ermans at 2007-9-26 5:30:54
I've problems using the jdk 1.4.0-beta 2 with JDeveloper 3.2.3.Used jdk 1.3.1 before, evertything worked correctly, accept a smal prob with the minimize- and maximize-icons of JInternalframe.Got mail that this would be solved with new jdk.But when i define new JDK in JDeveloper and try to ...
I have been reading and learning about J2EE Patternsvia the "Core J2EE Patterns" book. But I have alsoheard other developers talk about "J2EE BluePrints".Are they the same? How do they relate to eachother? Thanks
Context: Multi-tier web application.I need to store conversational state over several user actions. To achieve this I plan on storing a reference to a Statful Session bean within a JavaBean which is itself stored in the javax.servlet.http.HttpSession object. The Session bean will hold the ...
107 byte By
eeyvind at 2007-9-26 5:41:31
Join the Microsoft boycott.Check out: http://www.geocities.com/virtualexp/ms.htm
Is it posible make 2 kinds of removevia parameters in a ejb.For example:instead -> ejb.remove();ejb.remove(param1);The purpose is to have 2 removes actions in the same entity bean, remove_set_null and remove_cascade forinstance.
1666 byte By
dubwai at 2007-9-26 5:43:25
I have implemented a working prototype of what I call a "Last one out turn off the light" design.Here is the design in a nutshell:Client creates a stateful session bean.Stateful session bean looks for entity bean with the primary key of the client's IP address. If such an entity bean doesn't ...
674 byte By
somilj at 2007-9-26 5:45:29
Hi..Can anyone help me in my doubts?Whenever i have an entity bean object , and say at given instant of time more tan one user wants to update the data that the entity bean represent.Take a particular case:One user calls an entity bean modifies itzz state say one field but doesn't commit , now ...
135 byte By
somilj at 2007-9-26 5:45:31
Whatzz the differenece between J2EE archectiture and J2EE design or in general software architecture and software design?