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 ...
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?
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
1426 byte By
sanruch at 2007-9-26 5:48:03
Hi all,I've read the book (Core J2EE Patterns) mentioned in this forum... and it's really great!!But i have a question about a - from my point of view - important topic when developing web-application.Where and how to store EJB-References?Perhaps i have not read the book carefully enough... ...
1306 byte By
anirudhb at 2007-9-26 5:58:01
I Have sucessfully Installed J2EE server on the Windows 98I use deploytool for the deploymentc:\>deploytoolI start the server usingc:\>J2EE -Verboseit starts the serverBut when i try to call the url it gives exception even when I try http://localhost:8000/ it gives ExceptionError: ...
358 byte By
danbunea at 2007-9-26 6:03:35
In my application design I use a servlet controller.Is it wise to make all the connections to the ejbs (lookups) in the init method of the servlet and save it in the ServletContext object so when I need to use it in a jsp view just to extract it from the application object?Thamk you in ...
How can I abstract the implementation of my object persistance.For example, I want to create a layer/service that will return references to persistant objects irrespective of how they are implemented e.g. EJB, Object-Oriented database, or simple Data Access Objects.Otherwise, I will have to ...
1652 byte By
dong33 at 2007-9-26 6:40:33
Hi I use windows 2000 ,JDK 2,j2EE1.3I use http:localhost:8000 to previewBut it show " no found server or DNS error".Please help meThanks a lotI started j2ee it show like below:J2EE server listen port: 1050Naming service started:1050Binding ...
Hi allAfter installing everything and making all PATH lines needed, i run j2ee :C:\j2ee -verboseand get error messages :"Insufficient environmental space" (16 times)"Syntax error" (3 times)"Insufficient environmental space" (1 time)"invalid command or filename" I would like to know if this ...
Hi All,Here is my doubt regarding optimum design for the web layer in a J2EE architecture.I'm following the mediator pattern (as it is in J2ee blue print - Pet Store application), i,e,. I'm having a mediator servlet which degates the requests to appropriate Controller classes (which are ...
Hi All,Here is my doubt regarding optimum design for the web layer in a J2EE architecture.I'm following the mediator pattern (as it is in J2ee blue print - Pet Store application), i,e,. I'm having a mediator servlet which degates the requests to appropriate Controller classes (which are ...
411 byte By
mroshea at 2007-9-26 6:47:42
Hi, I'd just like to get clarification on one thing - if a J2EE module archive contains packages which are duplicates of those provided by the J2EE server (for example the JAXP javax.xml.* packages), which classes should be loaded at runtime? I'm presuming the J2EE server's classes get ...
250 byte By
dong33 at 2007-9-26 6:51:42
Hi I want know that J2EE equal J2EE Sever?Or I must development *.ear file by J2EE then issue to webpages folder of JavaServer Web Development Kit ,is not?Please teach meThanks a lotDavid
874 byte By
holbrng at 2007-9-26 6:56:27
I am trying to increase the performance of a system that makes calls to about 7 enterprise java beans. I have created a service locator object to help streamline this by putting all the jndi information here. This service locator is a singleton object. I was wondering if I could keep a local ...