why stateless session bean mainting state between method calls

857 byte By nayyerkamran at 2007-9-26 3:35:49
If I have an instance var in a stateless session bean and in a certain remote method I change its value then I call the next method keeping the same remote refrence. it got changed values that means instance state is maintained between the method calls. This is the behaviour as mentioned in EJB ...

How to modify the listenport...?

118 byte By dragon_east at 2007-9-26 3:35:56
I want to modify the listenport of the weblogic domain to 80, how to do this?Thanks in advance...

Object Message Publishing problem.

483 byte By chethanp at 2007-9-26 3:35:58
I am creating an object message and publishing it.Inside the listener(in the onMessage Listener) when I try to access the object, like((ObjectMessage)message).getObject();it gives me a Deserialize error and the linked exception is ClassNotFoundException.I am just creating a simple object ...

JNDI lookup Failed error while running Sample JMS Application with j2ee1.3

834 byte By ajitphilip at 2007-9-26 3:36:23
I am getting the following error while executing the SimpleQueueSender Application as specified in the tutorial.The error is :JNDI lookup failed : javax.naming.NoInitialContextException:Need to specify class name in environment or system property or as an applet parameter, or in an application ...

Problem with initial.lookup

9621 byte By tho88 at 2007-9-26 3:36:26
Hello,I was wondering if someone could help me.I have developed a GUI using AWT and Swing that allows the user to enter their name and address.If the user clicks the submit button, the method in the EJB is invoked to print the name and address on the screen. The program works ok but I am ...

Parsing XML on Unix/Tomcat platform - Urgent!!!!

716 byte By jcshroff at 2007-9-26 3:37:34
Hi,I'd like to know if it is possible to parse a XML file using the JAXP API on a Sun Solaris system running the Jakarta Tomcat servlet engine.When trying to execute the servlet that parses the XML document, the following error message comes:java.net.MalformedURLException: no protocol: ...

Order and LineItem in cmp, how?

2213 byte By verdi96 at 2007-9-26 3:37:39
I've read Sun's jsdk1.2.1 examples (ejb 1.1) aboutmapping 1-n "weak"-relationship, such as Order andLineItems. In the example, LineItems was implementedas ordinary serializable class, while Order wasimplemented as bmp-entity bean.I would like to know how to "convert" that "schema"to cmp, ...

Apache - Tomcat - JBoss

1893 byte By delattrj at 2007-9-26 3:38:02
Hi,I'm trying to run Apache + Tomcat + JBoss.JBoss/Tomcat embedded is working fine, but I can't run Tomcat standalone, I've got the following error :javax.naming.CommunicationException: Can't find SerialContextProviderat ...

how can i send a attchment use javamail?

41 byte By stoneskin at 2007-9-26 3:38:30
it's web-based.thks

Problem deploying EJB: Cmp-Fields not found

9490 byte By teknologikl at 2007-9-26 3:38:47
I have been using Java technology for quite some time, including many facets of J2EE, but have just very recently begun exploring Enterprise JavaBeans more in depth. Excuse the simplicity of my question please.I have developed a very simple Entity EJB, but am having difficulty deploying it; ...

How to get the Document.toString object back to Docuement?

678 byte By fredyzh at 2007-9-26 3:38:53
Hello, I trasnform an document to a string by toString method, but I need the string back to the Doucument. here is the code, say I have Document object(already built), doc,System.out.println(doc.toString() ), it print out: org.apache.crimson.tree.XmlDocument@76a746,How can I get the xml ...

Validating XML, but specify where DTD doc is, at runtime?

3137 byte By andymoose at 2007-9-26 3:38:54
Hi all.I've looked through a lot of posts in this forum and still cannot find the solution to this problem, so maybe someone here can help me?The problem is this:I am using a servlet to read in an ordinary XML document, with a normal <!DOCTYPE declaration and validate it. This works great ...

JMS durable subscriber question

643 byte By smnaveen at 2007-9-26 3:39:07
In JMS, we can associate a client id to a topicconnectionfactory. I want toknow the significance of this client id.to implement a durable subscriber is it always necessary that the topicconnectionfactory has a client id?also in the createDurableSubscriber() interface, the second argument iswhat ...

Accessing a JMS QUEUE on a Remote Server through JNDI

204 byte By hmugasha at 2007-9-26 3:40:21
HiHow would I access a JMS QUEUE on a Remote Server through JNDI in a client running locally. Is there a way I can map a name to a remote object through JNDI?thankshenry

JMS pub/sub with MQ server

931 byte By m_ansram at 2007-9-26 3:41:40
Hi Friends,I have an MQ server setup on win2000 machine and is working fine with both point-point and pub/sub with programs running on the local machine. I am not using JNDI. My problem is I have publisher running on the same machine as the MQ server. I am trying to subscribe from a remote ...

Runnig J2EE on Windows 98..(Urgent)

185 byte By shinevijayan at 2007-9-26 3:42:04
Hi Everybody,Can anybody give me step - by - step instruction on how to install and run the j2ee platform on Windows 98.Thanx in advance,Shine Vijayan

keep track of particular nodes...

310 byte By r_subhashini at 2007-9-26 3:42:21
Hi.I want to refer particular nodes in the DOM tree.Is there any way to refere the required nodes in DOM tree without parsing it again and again..I guess that we can do that using NodeList class.But I didn't get the logic for it. Thanks in Advance,Subha ...

creating socket connection error

692 byte By megajava at 2007-9-26 3:42:36
My problem is when I have router in local host, my client works fine, but when I move router to an other computer, then creating topic connection gives me error like: error creating socket connection to 127.0.0.1:14001, message: Connection refused: no further information(I use port 14001, in ...

send an email for an Applet....please help ..

400 byte By genghiz at 2007-9-26 3:43:58
hello guys...i have an applet that works much like an HTML form... it is a form for products and after having filled that the information has to be updated to the database and the concern people of the company should get an email for the same .... how can i send that mail from this Applet... ...

A stand-alone java client can't talk to remote EJBs

1159 byte By rainbowC at 2007-9-26 3:47:03
Hi there,Please forgive me if you're already bored with this question. But this question hasn't been really answered.Now I'm using j2eesdk1.2.1 with 'doc' folder installed. I try to run the "Converter" example. Everything goes fine when I run the ConverterClient.class on the same machine ...

EJB pls urgent

295 byte By subbumca at 2007-9-26 3:47:06
I wants to create one ejb component, i am working on windownt , which server should i download, which gives deails where to store the java source file, then how to call the components form server though network(is client) help really appreciated

Methods calling in session bean

339 byte By msyal at 2007-9-26 3:47:10
There are two ways to call a method from session bean . One is client look for each bean and call methods from the beans one after other Other is bean itself looks for the methods in other beans and then client only calls the reqired method.Which of this is the right appraoch and when to use ...

Exception in thread "main" java.lang.NoClassDefFoundError: PerformTransform

1407 byte By seymour19s at 2007-9-26 3:47:22
import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.stream.StreamResult;import javax.xml.transform.TransformerException;import javax.xml.transform.TransformerConfigurationException;import ...

Special characters in <a href>

341 byte By sudhakar_barua at 2007-9-26 3:47:53
Hi,I generate a html using JAXPs xslt transformer.One of the <A href="{$pHREF}"> consists of Western european special characters(where pHREF is a xsl variable/param).while text printing, the special characters() are printed as they are, but are distorted when I want to generate a <A ...

URGENT-Accessing properties file from EJB

236 byte By mpbhat at 2007-9-26 3:48:26
EJB Specification places restriction on accessing files. Suppose I access properties file for read- only purpose using ResourceBundle class in EJB, does it mean that I am violating the restriction put by EJB specification.

problem with deploying CMP bean

403 byte By prasad_pn at 2007-9-26 3:48:31
hi all,i am getting errors in ejbFindPrimarykey() method while deploying CMP bean in weblogic5.1 deploying tool.i get this problem sometimes when i specify primarykey class and field and sometimes when i dont specify primarykey.i am really confused with this.can anybody help me out and tell me ...

Delpoy EJB using command prompt, with Weblgoic 6.0

157 byte By chandankalra at 2007-9-26 3:48:37
Hi, I would like to know , how to deploy an EJB , from command prompt on BEA's Weblogic server 6.0. Thanks & Regards

Resolving DTD URI when XML doc is transformed?

1989 byte By andymoose at 2007-9-26 3:48:40
Hi all.Thanks to your help I have managed to validate and parse an XML file when the external DTD is not referenced with an exact path in the <!DOCTYPE declaration (problem solved using setEntityResolver()).Now I am trying to do the same with a transformation. The XML doc contains a ...

complete email application available

438 byte By stcampbe at 2007-9-26 3:48:41
HiI have developed a complete mail app (send and receive, folders, signatures etc), developed from the ground up in java, and I am looking for some feedback for it. If anyone would like to download it, test it and give me some feedback that would be great. I don't want to start a spam list so ...

Where should Entity Bean field validation logic be maintained?

745 byte By colinward at 2007-9-26 3:48:45
Where is the most suitable place to have data validation?Flavour of the month seems to be placing data validation in the Entity Bean constructor/setter methods. It makes sense for our system to have validation performed by the Entity Bean (as opposed to the ValueObejct), but to have the logic ...

Parsing XML from String!

255 byte By ruivale at 2007-9-26 3:49:58
Hello!I want to parse a XML doc, if I may call that, that I receive in a String. Can I parse a XML doc this way? Should I first create a File and then parse that XML file? THANKS in advance! RV

DocumentType to OutputStream -- DocumentType is Lost

782 byte By markcoth at 2007-9-26 3:50:56
I am trying to do the following...DocumentBuilder builder = DocumentBuilderFactory().newDocumentBuilder();DOMImplementation domImpl = builder.getDOMImplementation();DocumentType type = domImpl.createDocumentType("XXX", null, "My.DTD");Document doc = domImpl.createDocument(null, "XXX", type);I ...

EJB Server

244 byte By akhalil100 at 2007-9-26 3:51:03
I'am new to EJB and wondering where I can get a free EJB Server without any trial version etc.Does Sun provide one? If so, could you please provide information where I could downloada EJB Server?Thanks

Sun's view towards JDOM

328 byte By Brunky at 2007-9-26 3:51:29
Does anyone know what Sun's policy concerning JDOM is?I hear DOM4J is supposed to be better, does anyone agree or not.Currently, I'm using DOM and am sick of dealing with nodes. JDOM would be much better but I don't want to walk down a path that will lead nowhere.Thoughts anyone?dvb ...

Using "LIKE" in J2EE SQL Query Window

401 byte By huertas77 at 2007-9-26 3:52:16
Whats the syntax to define a finder method using the SQL "LIKE" clause in J2EE in the deployment settings of an CMP entity bean...for example lets say I have an entity bean with a primary ket called "PK" and a String data member called "Titile", I've tried: SELECT "PK" FROM "EntityBeanTable" ...

How can I run EJB Client in other computer ?

654 byte By SangHPark at 2007-9-26 3:52:17
Hello,I'm trying to run converter examples.if ejb client pgm resides on a same machine with j2ee server , it works fine.But when I put client pgm on a different machingbelow message show.**********************************No application client descriptors defined for: ...

Has anyone used JAAS with WebLogic?

6289 byte By 6tr6tr at 2007-9-26 3:53:18
Has anyone used JAAS with Weblogic? I was looking at their example, and I have a bunch of questions about it. Here goes:Basically the problem is this: the plug-in LoginModule model of JAAS used in WebLogic (with EJB Servers) seems to allow clients to falsely authenticate.Let me give you a ...

J2EE forum : J2EE SDK download, FAQ, interest lists

716 byte By CameronBraid at 2007-9-26 3:53:22
Hello All,Here's a Java forum specifically for the J2EE SDK!Please post all your J2EE SDK related queries and experiences that will be helpful to fellow J2EE developers.The downloadable bundle for J2EE SDK 1.3 beta 2 is now available at http://java.sun.com/j2ee/download.html#sdkPlease take a ...

How to display attachments like gif in web based mail?

189 byte By MLomongo at 2007-9-26 3:53:56
Good day everyone.My problem is displaying attachments of known types(like jpeg,gif, etc.) into a web based mail? If you can provide code snippets the better, thanks...

Tomcat and the servlet of java mail demo

827 byte By metalcure at 2007-9-26 3:54:12
Hi all~~I compiled the demo servlet and run it on Tomcat.When I login to the servlet,I can see a table which says there are 2 messages in the INBOX folder(I just sent 2 mails to my mail box to test the servlet).It seemed that nothing was wrong.But when I clicked the hyperlink of the ...

Inserting null values in the backend using entity beans

421 byte By savitharr1 at 2007-9-26 3:54:24
How to insert null values in the backend using entity beans? Since the PK class has all backend fields as datamembers whether is it not possible to insert null values in the backend? I tried overloading ejbCreate() that also did not work because of the above reason. Can anyone help me out in ...

ejb compile error, please help

1956 byte By liberticide at 2007-9-26 3:54:31
Does anybody knows why i got following error, I copy from word to word from book but I am keep getting same error message over an over please help thx in advance DiceEJB.java [17:1] class DiceEJB must be declared abstract. It does not define public abstract void ejbPassivate() throws ...

Writing data into an XML file on Unix/Tomcat platform - URGENT!!!!

2212 byte By jcshroff at 2007-9-26 3:54:39
Hi,Thanks for the solution about using a protocol prefix before accessing the XML file from the Unix file system. I used the http protocol before the file path and the servlet is able to read the XML file. But however, now while writing into the XML file, a SecurityException is thrown by ...

How to create two PrimaryKeys in J2EE

1691 byte By killC at 2007-9-26 3:54:59
Hi all!I've tried to use the "ejb-jar.xml" file for creating two PrimaryKeys, one as String, second as Integer. There is a tag in "ejb-jar.xml" for ...

finder method in container-managed entity bean

552 byte By sriva123 at 2007-9-26 3:55:02
Finder method of a container entity bean is taking the primary key class object of another entity bean. How to map this in the xml descriptor file weblogic-cmp-rdbms.xml for this type of beans.I am trying to deploy the jasmine computer store of Mastering EJB by EdRoman.I couldn't write the ...

Prob with automated reply

156 byte By bonjava at 2007-9-26 3:55:10
Hi I have a problem in automating replies to people who send mails to me.Can any one help me pls.thanks in advancebonjava

SecurityException: sealing violation, URGENT!!!!

4134 byte By jcshroff at 2007-9-26 3:56:10
Hi,While writing data into an XML file from a servlet running on Unix/Tomcat platform, a SecurityException: Sealing Violation is thrown. This is the exact error that comes up:Error: 500Location: /servlet/TestOrderAddInternal Servlet Error:java.lang.SecurityException: sealing violationat ...

Any JavaMessaging Expert out there

133 byte By sameera_cmca at 2007-9-26 3:56:50
I am just a beginner i wan to know some links which will help me use the Java Mail APi Thanks in Advance

jsp and javamail

1848 byte By sarumii at 2007-9-26 3:57:20
I am trying to do a feedback form using javamail. I need to add some fields to the form and have them returned and aligned on the returned email, and am having trouble with this.I am using the following on the sendmail.jsp<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" ...

Parsing Problem

2792 byte By abilal71 at 2007-9-26 3:57:29
My XML file looks like this .....<properties><property><name>Sybase ...