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

Java 1.4 Official release

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

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?

Why is Java more open and less buggy?

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

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

request for code URGENT pls help

365 byte By swaroopba at 2007-9-26 2:17:35
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 ...

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

Join a new enterprise Java project.

1249 byte By steve_hosking at 2007-9-26 2:35:27
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 ...

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

application manager functionality

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

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

Anyone want to develop a fully-java language Operating System?

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

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

HELP ! Make an auto-exe main program in Java

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

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

Help,How can I make a Applet receive data from a serial port?

75 byte By snanting at 2007-9-26 3:36:49
Help,How can I make a Applet receive data from a serial port?

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

PrinterJob

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

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

Need advice on presenting an Initiative to Sun

1124 byte By JavaInitiative at 2007-9-26 4:41:09
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 ...

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

Join the Microsoft boycott!

107 byte By eeyvind at 2007-9-26 5:41:31
Join the Microsoft boycott.Check out: http://www.geocities.com/virtualexp/ms.htm

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?