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 ...
I want to modify the listenport of the weblogic domain to 80, how to do this?Thanks in advance...
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 ...
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 ...
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 ...
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: ...
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, ...
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 ...
it's web-based.thks
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; ...
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
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... ...
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 ...
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
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 ...
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 ...
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 ...
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.
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 ...
Hi, I would like to know , how to deploy an EJB , from command prompt on BEA's Weblogic server 6.0. Thanks & Regards
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 ...
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 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 ...
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
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 ...
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
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 ...
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" ...
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: ...
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 ...
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 ...
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...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
I am just a beginner i wan to know some links which will help me use the Java Mail APi Thanks in Advance
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.*" ...
2792 byte By
abilal71 at 2007-9-26 3:57:29
My XML file looks like this .....<properties><property><name>Sybase ...