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

Command Pattern Considerations

900 byte By holbrng at 2007-9-26 7:07:04
I am in the process of implementing a command pattern to abstract ejb access between client and server. In the command pattern I am implementing, I am using a Command object that gets passed through the Proxy/Business Delegate to the Facade, and to the correct ejb. I have written a ...

how can this pattern work? need help!!

541 byte By xingwuji at 2007-9-26 7:08:52
the model i need have 3layers:JSP+EJB+SocketServer, i know EJB can act as Socket Client(not Server),but the main problem is that i must use a .dll or .lib file(written in c) in EJB to packge the socket data.someone says EJB can use JNI while EJB Spec won't allow it, i dont't want to take the ...

Error: 500 after Http://localhost:8000/

1070 byte By dong33 at 2007-9-26 7:09:37
Hi all I received message below when used Http://localhost:8000/ Error: 500Internal Servlet Error:java.lang.NoSuchMethodErrorat com.sun.web.security.SecurityInterceptor.setSSLAttributes(SecurityInterceptor.java:56)at ...

About size of "j2sdkee-1_3-win.exe" file

462 byte By dong33 at 2007-9-26 7:22:55
Hi all,1. I download this file ,I found that the size is 14.2 MB,but the size of web page is 14.9 MBI can setup the fileI use windws 2000But I can't see the default page of j2ee after " http://localhost:8000"I want know the size can influence run j2ee?2. J2ee can be intead Tomcat or JSWDK ...

Retrieving lists from other layer into a JSP page - Design Question

2376 byte By filcobra at 2007-9-26 7:27:44
Hi all,What should be a good design technique in order to allow a JSP page to present some list obtained from other layer of my application. I intend to leave only presentation logic in the JSP layer, while all data access will be in other layer. For example, I have a JSP page that will show ...

Implementation of Data Cache in Servlet/JSP Technology

332 byte By deemahesh at 2007-9-26 7:30:05
Hi, I am interested in achieving data cache in Servlet/JSP technology. I understand that javax.util.jcache specifications are being brought out to achieve data cache. Can any one throw more light on javax.util.jcache as to where it is available, methods available etc.RegardsMahesh Karanth ...

Account Example in J2ee - pls help me

864 byte By Devik at 2007-9-26 7:32:06
Hi there, I am very new to J2ee technology and am trying Account example which comes with Sun j2dskee server.I am using the Cloudscape database.I am able to deploy the application without any problem.But when I run the client I am getting the following error.In the server console:Can't find ...

Can't find principle mapping information-Pls help me

331 byte By Devik at 2007-9-26 7:34:30
Hi there,when I run the Account example in j2ee using cloudscape,i get the errorCan't find principle mapping information for the data source with the jindi name jdbc/Cloudscapeand in command prompt: getting rmi.remotexception:couldn't create entity bean.pls helpThanks-Devi ...

Exception in thread "main" java.lang

2005 byte By avalente1 at 2007-9-26 7:35:51
1. I have compiled Applications and Applets before with success and am now getting the following error message:C:\>java GuessRandNumberAV.javaException in thread "main" java.lang.NoClassDefFoundError: GuessRandNumberAV/jaaC:\>2. I am using WINDOWS 953. This is my ...

Java Class Parser?

196 byte By matsibp at 2007-9-26 7:45:10
Anyone know of a good and easy to use package that would allow one to read a Java class and manipulate methods,attributes, and class inheritance information?Thanks in advance.

Can I change of the port in J2EE

224 byte By simonyu at 2007-9-26 7:52:41
I am the beginner of J2EE, If I access the J2EE server, I need to type http://localhost:8000/the port is 8000, can I use the other port instead of 8000, for example use the common port 80 instead of 8000

Spread and Prevalence of Java Technical in China

801 byte By dong33 at 2007-9-26 7:53:09
Hi All,I am a lover of Java.I reside at TianJin City of china.The city have eight hundred million people,and a lot of people have be very interest at Java Technical and obtained Professional Certification of java.But their study is no convenience & want for infomation of Technical.The ...

CLUSTER ! For real J2EE programmers

519 byte By javamad at 2007-9-26 8:01:41
Hi, please help me, i turn crazy!! I'm trying to create a cluster with weblogic 6.1. The documentation says that each member of a cluster MUST listen to the same port number.I start the first server and everything is OK.But when i start the second server, a shutdown sequence is initiated ...

where is PortableRemoteObject.class?

400 byte By jordanwang0860 at 2007-9-26 8:17:11
In J2SDKEE1.2.1,I can find javax.rmi.PortableRemoteObject.class,but in J2SDKEE1.3,I can not find PortableRemoteObject.class.Who can tell me where is it?In developing EJB,the client code contains:" RemoteHome home=(RemoteHome)javax.rmi.PortableRemoteObject.narrow(obj,RemoteHome.class);"Does the ...

Problem starting j2ee server..any expert can help

1956 byte By alexgnp at 2007-9-26 8:24:01
Posted this in the JMS Forum...Probably..I should ask people in this forumAnyone knows why I can't start the j2ee ..which I hope to use it as the JMS provider. I am trying to try the e.g. from JMS tutorial....But it seems that I can't start the j2ee in the first place 'cos error say that I ...

Plrease Help: Problems running J2EE on Windows98

420 byte By Genesis2000 at 2007-9-26 8:31:55
After installing J2EE and making all PATH lines needed in the autoexec.bat, 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" Is there anyone who had ...

About two phase commit

445 byte By unicman at 2007-9-26 8:45:40
Hi!I want to use MySQL with EJB. I know that J2EE supports two phase commit.As you might know, MySQL doesn't support transactions fully.I wondering if two phase commit concept in J2EE requires transaction support from database or it can manage transactions even if a database server doesn't ...

what create this error : java.net.SocketException socket write error ( code

112 byte By huangs7 at 2007-9-26 8:54:47
what create this error : java.net.SocketException socket write error ( code = 10055 )Thanks

problem in running ejb client!

3042 byte By shogun1234 at 2007-9-26 9:02:01
i am newbie to the j2ee and wirte a simple ejb jar file to depoly on jboss with no error message. beside, with a client hope to access test if my ejb jar could work correct, but i do not know how to run the client by typing java HelloClient (the client i worte)in commond line or spesify the ...

Can I write my own J2EE Container in J2EE AppServer

480 byte By Sturgeon at 2007-9-26 9:06:59
I am not sure this is the right forum but I think it is closest. I have some questions regarding the containers of the J2EE AppServer. 1. Is it possible to host multiple containers in AppServer in one JVM?2. Is it possible to develope my own container but follows the J2EE rules.3. What is ...

EJB Command Pattern

99 byte By msyal at 2007-9-26 9:08:25
How is Command Pattern is light weight as compared to session fascade design pattern?

Data corruption using Sockets in Java !!!

929 byte By premrj at 2007-9-26 9:09:02
The application which I am developing is a typical client-server app using Java sockets with TCP/IP. I am using bufferedinputstream and a byte array of size-1024. I will be transferring multiple files one after the other. Information regarding the file is send as a header splitted by ...

Cannot find PortableRemoteObject

1133 byte By factor3 at 2007-9-26 9:13:51
Greetings:I am attempting to compile an EJB test client using the Sun tools. I am running on a Red Hat Linux environment. My classpath is as follows:CLASSPATH=/home/work/research/jdk1.3.1_01and I am attempting to do the compile using compile.sh, which contains the following ...

Urgent Please.. ejbStore is not called after ejbCreate..

2317 byte By a-1220 at 2007-9-26 9:16:17
Hi all,In one of the beanmanaged entity bean, the ejbStore is not called after ejbCreate. I am using wblogic 6.1 server. I've also coded similar types of entity bean and those are working perfectly.I am getting the following exception message when I call the create method from the ...

InsertTag doesn't Implement Tag?

751 byte By slavkoj at 2007-9-26 9:42:16
I'm trying to create a tag to implement templates. I'm using the PetStore as an example. I get to this point but I do not understand the message! Is not TagSupport implementing the Tag interface? The tag InsertTag extends TagSupport and calls super() in the constuctore?Can anyone help me with ...

JDO's for maintaining objects in session?

84 byte By madhur6 at 2007-9-26 9:44:01
Can we use JDO-Java Data Objects, for maintaining objects in session.

Curious CMP Deployment problem...

1034 byte By factor3 at 2007-9-26 10:02:41
Greetings:I am attempting to deploy a CMP bean on the J2EE reference server. Cloudscape is the database I am using.In all of the documentation and books that I have read, when you add such a bean to an application using the deploytool, in the deployment settings window you can create the ...

Observer pattern in J2EE

735 byte By Thomaz at 2007-9-26 10:13:47
I have a question about the Observer patterne. I have tried to implement it im my application but without result. First my idea was to save all the client Object references in A linked List in a bean on the server. Then each time a certain event ocurs on my server I will call a method fire() ...

Java language proposal #1 (revised)

1005 byte By SteveDuToronto at 2007-9-26 10:17:32
The overhead of reference counting has led to a preference for mark-and-sweep garbage collection. But this has some obvious disadvantages as well. For example, creation of temporary objects chews up memory; this reduces performance due to having to search for unused objects during garbage ...

Java language proposal #2

1774 byte By SteveDuToronto at 2007-9-26 10:17:34
Java forces software designers to choose between synchronized and unsynchronized access when writing a class. Often, the most general-purpose design requires synchronization, while a number of important uses of the class do not. Synchronized wrapper classes are inconvenient to write and ...

Opening a dir & showing files inside

234 byte By lambu76 at 2007-9-26 10:19:15
Is there any way, any method, to open a dir in a window and show, in this window, its content, such as I'd clicked on this directory ?I've preferred an O.S. independent way, but it's not so important.Thz

Which objects should I implement as EJB?

216 byte By sergey_rysev at 2007-9-26 10:21:46
I am new in the J2EE world so I have no feeling which objects should be implemented as EJB objects and which should be notmal objects. Are there any criterions for that? Thanks in advance.

User management

683 byte By Howlingmad at 2007-9-26 10:23:36
Hi, i'd like to utilize the J2EE capabilities for user management in my web application. I had a look at the Tomcat security sample which provides automatic login whenever a user tries to access a protected resource. This looks promising but the only drawback here is how the list of users is ...

Too Little Opportunity for Class Extension

2059 byte By thawker at 2007-9-26 10:30:53
I have been working in the OO world for more than 15 years and am an expert in Smalltalk. I have begun moving into Java and am not entirely thrilled by my experiences to date. I am finding out that what I would treat as simple tasks prove to be inordinately difficult or end up incomplete in ...

Open a file with its defualt associated application

274 byte By lambu76 at 2007-9-26 10:36:31
is there any way to open any file with its defualt associated application from a java program ?Example:In Windows I have a file example.txt and, from a java program, I would like opening it by the defualt associated application Notepad.Thx

Open a dir and a file with its associated program in win, but in Linux ?

410 byte By lambu76 at 2007-9-26 10:36:55
In windows I can open a dir in an explorer window with this java code:For winnt o 2000Runtime.getRuntime().exec("cmd /C start c://db /B");For win9xRuntime.getRuntime().exec("start c://db");For opening a file in win I can use this java code:Runtime.getRuntime().exec("cmd /C start filename ...

Startup classes in j2ee compliant appserver

561 byte By prashanthjee1 at 2007-9-26 10:40:35
Hi, Startup classes are very necessary one in some situations.Support for the startup classes provided by weblogic or orionserver or other appservers are different..I mean that startup classes meant for one appserver can not used in other appserver without much changes made to it.Whether there ...

Automatic ~username public_html directory mapping

642 byte By adaptinet at 2007-9-26 10:57:48
Hello dear j2ee community !How can I configure the j2ee server such that when someone type http://localhost/~username he is directly redirected to the public_html directory of the username ?I know that we can do this with tomcat (adding something like that in the server.xml file: <Listener ...

Basic Question on OOAD

1510 byte By rajeshrv at 2007-9-26 11:05:08
After going through the book ,UML Distilled,and some other sites, i struck with some doubts. The major concerns are1. Regarding the steps or sequence of OOAD model .For the OOAD approach,I assume that the steps to be followded are i) Usecase ii) Problem domain identification iii) Sequence ...