EJB, Servlet, JSP help

820 byte By mikeahmad at 2007-9-26 1:17:20
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 ...

Is it possible to send SMS using Java?

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 ...

Taking a URL with a Servlet

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 ...

Struts (MVC) and EJB

213 byte By jaco@cyberseal.co.za at 2007-9-26 1:48:37
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?

does J2EE support Linux 7.0 ?

42 byte By CYung at 2007-9-26 1:54:36
Does J2EE support Linux 7.0?

help me! j2sdkee1.2.1 can not start

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 ...

anybody know why j2ee won't start ?

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 ...

Packaging the java application for WebSphere 3.5 on solaris.

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!!

Questions and remarks for the authors of the book

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 ...

problem while running client program

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

Construct and download a bean

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 ...

j2ee server does not start!!!!

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 ...

FrontController Apache / Tomcat

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 ...

To the authors of the book. Questions about the Synchonizer Token

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, ...

BAS 4.5.1 doesn't work with JDK 1.4 beta!

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 ...

jdbc/Cloudscape

561 byte By kunalkaul at 2007-9-26 3:14:46
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 ...

Caching of session session bean.

432 byte By jaco@cyberseal.co.za at 2007-9-26 3:21:03
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 ...

Value Object Factory Pattern - failing to load ValueObject class

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 ...

Deployment Descriptor

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 ...

stateful session bean can not be passivated

3120 byte By mymymymycn at 2007-9-26 4:01:10
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 ...

Last one out turn off the light

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 ...

Using parsed XML as data format for MVC implementation

589 byte By jaco@cyberseal.co.za at 2007-9-26 4:09:34
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 ...

DAO Layering; DAO/DAO, DAO/EJB, etc.

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 ...

Customizing Business Logic for a Web Application

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 ...

Compliant J2EE/EJB class file packaging...

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 ...

How to implement a scheduler?

738 byte By IBeaumont at 2007-9-26 4:30:24
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 ...

How to access a ejb from a bean

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 ...

How to access a ejb from a bean

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 ...

session context vs. httpsession

77 byte By tman191 at 2007-9-26 4:37:21
Are sessionContext and HttpSession related?Thanks

J2EE pattern for complex database searches

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 ...

Pet Store Model Manager Question

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 = ...

Access EJB from JSP

862 byte By jaco@cyberseal.co.za at 2007-9-26 4:50:47
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'). ...

Problems using jdk 1.4.0-beta 2 with JDeveloper 3.2.3

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 ...

Patterns vs Blueprints

275 byte By PossumKing64 at 2007-9-26 5:32:49
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

Storing conversational state in a web application

395 byte By nickredshaw99 at 2007-9-26 5:41:12
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 ...

Deleting a Bean

294 byte By flaviolopez at 2007-9-26 5:42:53
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.

Opinions / Expert Knowledge

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 ...

Implementation of Entity Beans

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 ...

Difference ?

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?

Conversational State in EJB and HTTPSessions (Core J2EE Patterns)

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... ...

Urgant Problem in in J2EE pls. Help

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: ...

MVC architecture question

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 ...

Abstracting Object Persistence

462 byte By jaco@cyberseal.co.za at 2007-9-26 6:03:39
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 ...

Why IE5 browser no work after started j2ee?

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 ...

Problems running J2ee

733 byte By JChauveau at 2007-9-26 6:43:15
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 ...

Confusion in designing the Web layer in a J2EE application

1109 byte By souravm00 at 2007-9-26 6:45:55
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 ...

Confusion in designing the Web layer in a J2EE application

1109 byte By souravm00 at 2007-9-26 6:45:56
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 ...

Overridding j2ee platform classes

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 ...

(J2EE == J2EE Sever) ?

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

Can I cache the context and ejb home references in the Service Locator?

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 ...