800 byte By
neu9109 at 2007-9-26 5:19:19
Hello,I have downloaded Sun's sample J2EE pet storeenterprise application 1.1.2. I was surprisedto find that in at least two entity beans thatthey loaded model data into the entity beanin the ejbFindByPrimaryKey method:AccountEJB.java:..public String ejbFindByPrimaryKey (String key) throws ...
116 byte By
zahran at 2007-9-26 5:19:45
Hello all,How does ejb container know if a method is being called within a transaction?.
709 byte By
rrbaker at 2007-9-26 5:20:33
Exception in thread "main" java.lang.NoClassDefFoundError: NonThreadWhy do I get the error above? My source code is below:public class NonThread { public static void main (String[] args) {PrintNumbers p1 = new PrintNumbers(1, 2);PrintNumbers p2 = new PrintNumbers(2, 2);p1.print();p2.print(); ...
498 byte By
auwy29 at 2007-9-26 5:20:34
Dear ALL,I am using JDOM to do some parsing of my XML. I can compile it on my own machine since I installed JDOM.But I have to put all my files in a servelt folder at my college which hasn't got J-DOM installed.I placed the jar file into it, and the class which I compiled on my machine but It ...
268 byte By
pafoege at 2007-9-26 5:21:13
Does anyone know if there is a method that will convert a Dom object to a xml string?Also, just the reverse, when loading a dom, can you load it by passing it a string, rather than a location?I know Microsoft has this in their msxml.
179 byte By
kazz1982 at 2007-9-26 5:21:42
I am a newbie to xml. I have decided to store my information in the xml file. may I know how can I retrieve my information from the xml file?Thanx in advance.
733 byte By
lamdalam at 2007-9-26 5:22:07
Hello,I would like to know how to display an image in the browser ?I got a mail where some image had attach into it. now i m using servlet to build a mail client.I can retrieve text/pain and text/html parts, but i cant find a method to display the attached image in the mail.I can save the image ...
1475 byte By
shausch at 2007-9-26 5:23:10
Hello,i want to integrate xalan in my servlet.the source:try {TransformerFactory tfFactory = TransformerFactory.newInstance(); Source xmlSource = new StreamSource(new URL(" http://localhost:8080/..."+ strLang).openStream()); Source xslSource = new StreamSource(new URL(strXSL).openStream()); ...
Hi,I have build an application in Java, with JMS using iPlanetMessagingQueue2.0.I want to use MQSeries for the same application.As far as I know, to migrate from one vendor to other I will have to createan administratir object according to the vendor specifications.I have downloaded the 3 trial ...
105 byte By
tetoufou at 2007-9-26 5:23:55
How can i get an EJB reference without communicate with a servletthanksFabien
519 byte By
anandMDK at 2007-9-26 5:24:17
Hi, I have written Entity bean where i am using PrimaryKey Class CheckPK, when i am deploying the entity bean i am getting the following errors. D:\weblogic\examples\ejb\basic\Check\ejbcgen\examples\ejb\basic\Check\CheckingBeanEOImpl.java:56: Incompatible type for =. Can't convert int to ...
368 byte By
bahrian at 2007-9-26 5:24:58
Hello all I am geting this exception Exception in thread "main" java.lang.NoClassDefFoundError : javax/mail/Addressplz tell me wat i have to do every thing is set.i have installed mail api exactly according to instructions but i am getting this exception plz give me solution my mail add is ...
Hi All,I am kinda new to the whole world of xml. I was wondering if anyone could help me out by telling me if the following xsl file is optimized or not.XSL:<?xml version="1.0"?><xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output ...
132 byte By
tman191 at 2007-9-26 5:26:04
Can only EJBs access datasource ?i.e - can a util class have static methods that access datasourcethanks
4137 byte By
vy_ho at 2007-9-26 5:26:11
I have a sample xml below and Sun's java source code. When use jdk1.3.1 or 1.4 and jaxp as the parser, I got error when turn on validation. Also, the CDATA section does not show properly when turn of validation (only show: Diagram:). Why "Text" still show for empty spaces when validation turns ...
I have just started learning XML so bear with me. I have a xml document that I created and want to use a stylesheet to display it in html but it doesn't seem to be working. Here is the xml file:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="XSL\myXSL.xsl" ...
243 byte By
Tsoy78 at 2007-9-26 5:27:17
People, please help:I am getting the following message:"javax.jms.JMSException: java.io.IOException: Bad portmapper version number: 101". Can anyone tell me what's a portmapper, and how it is possible to change it?
Dear FriendsI am developing client server applications. I use RMI Technolgy for some of my applications too.I would like to make my application mail activated. The user should be able to send a mail to a desired location using a standard GUI provided by me.How can I go about it ? Please send ...
734 byte By
nycelina at 2007-9-26 5:28:21
Hi.I am new to JMS and would like to have JMS over MQSeries. When a message is sent in request/reply, MQSeries currently attaches a header to the message including information such as userID and information regarding the application that sent the message.My Questions:1. Does JMS provide an API ...
Hello everyone:I am using the xalan-j_2_2_D9 from apache to design my style sheets. I was going through the examples that come along with the package and tried out the simple transform program for a style sheet and a corresponding xml file.It was strange really, when I apply the stylesheet to ...
HI,I am trying to use JDOM is load and render an XML file. However when I try to run the program I get the following below:org.jdom.JDOMException: Exception outputting Document: org.w3c.dom.Document: method createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element; not found Any ...
Hello everyone:Can anyone give a brief description of the precautions to take when creating xsl's that handle xml documents with namespaces.Do translets handle namespaces? There is a code sample for my problem a couple of topics below.Thanks in advancePrashanth ...
I will be grateful if can help me. I am unable to connect to Remote Javabean on server from dedicated client application. Is it possible? If possible does the J2EE allows conection to the server if server is wireless connected from java application
7137 byte By
verdi96 at 2007-9-26 5:31:27
Hi,I'm dealing with this annoying behavior of cmp-field. Sorry ifthis post is kinda long, I'm new to EJB...Here's my ejb snipplet:public class ProductAttributeBean implements EntityBean{public String productId;public String typeId;public String value;public String url; private EntityContext ...
271 byte By
mhowwala at 2007-9-26 5:32:10
I have an EJB delpolyed on one machine and JSP deployed on another machine. I want to call this EJB from JSP using dynamic downloading of stubs. Can anybody tell me how to do this ? or Where can I get the resouce on this topic ?thanks,Manish.
i m writing a client for EJBs which receives XML from EJB, parses it and then use the information. while parsing it gives the following exception.while the same parser is used in EJB deployed in WebLogic works well .... any one know please help me .... Parser: parseSchedule() ...
923 byte By
kbjava at 2007-9-26 5:32:44
Hi,When an web component (Servlet/JSP/Java appl.) need to invoke an business method from an EJB, it first lookup for the registered name from the Application server and obtain the remote reference i.e. the EJB Remote interface. To do this, the client must have got the client-jar file containing ...
1077 byte By
kbjava at 2007-9-26 5:33:44
It is likely that the EJB container maintains a pool of instances of the beans and serve the client calls accordingly. When the client invokes the create method of the home interface, the container instantiate the bean and it's ready. Again when client invokes remove method, the container ...
626 byte By
mgrindel at 2007-9-26 5:35:01
Hi,to get the right understandig of static variables within ejb i have the following question: Having a session Bean "A" which instantiates a class "B" with a static member "c", and session bean "A" is instantiated by two clients running on different machines (i.e. differnet JVMs), is it ...
HiI need help on following:1- How Servlet can execute a command?2- I that possible a servlet instantiates an applet or frame?Would apreciate any command(prefered sample code) on this.Thanks...Ali
792 byte By
MartinS. at 2007-9-26 5:35:52
I'm planning to use XML to configure a J2ee system, and I've come across what appears to be a coding style issue. The following are equivelent, yet it's normal to see the former, yet it would seem to me that the latter is better, shorter and clearer. I'm thinking of mandating the ...
I have j2ee1.2.1 and jdk1.3 installed on my system. I have compiled a JMS class file and have started my j2ee server. When I try and use j2eeadmin, it can't find the command. How do I get that to work? Where is that located?
Reply to vivek.pothagoni@delta.compackage com.delta.wdel.sax;import org.xml.sax.helpers.*;import javax.xml.parsers.*;import org.xml.sax.*;import java.io.*;import java.util.ArrayList;import java.sql.Connection;import com.delta.wdel.database.*;import com.delta.wdel.common.*; /** * A Class class. ...
I have a XML document that has multiple comment elements that look something like this: <GstBk:Comments>Line1 Line2 Line3 Line4 Line5 Line6</GstBk:Comments> But when I try to use the following code: <xsl:value-of select="GstBk:Comments" /> or <xsl:apply-templates ...
I have an Entity EJB that I currently persist using WebLogic's CMP with an Oracle Conn Pool and JDBC. I have a new persistance (home-made) storage system that talks XML over HTTP. No real SOAP implementation except in the XML/HTTP communications.Questions: Can I still leverage CMP to persist ...
Hi,I am calling the following String dlReturnResult = new String();StringWriter dstringWriter = new StringWriter();PrintWriter dprintWriter = new PrintWriter(dstringWriter);try {TransformerFactory dltFactory = TransformerFactory.newInstance();System.out.println("Reached Check Point ...
212 byte By
deer2000 at 2007-9-26 5:37:36
I know it is useful to use xsl to do simple transformation, but since I need to pass some values into the javascript's functions in html, just don't know how to do that. Any advice is apprciated!!
1520 byte By
gulugala at 2007-9-26 5:37:45
Hello,I am trying to parse a schema then against the schema to create new DOM object for the new XML file. After going through each element type from the schema DOM and find the type of each element, I could not deal with <xsd:sequence>. I could parse the schema without ...
663 byte By
aberglas at 2007-9-26 5:38:09
The most common database (Oracle) by default uses a scheme that does not fit into any of those isolation levels. A SELECT statement selects data at the start of the transactions, whereas a SELECT ... FOR UPDATE does something quite different. It is essential to do SELECT FOR UPDATEs before ...
81 byte By
smallsun at 2007-9-26 5:38:23
What is the difference between stateful and stateless session bean?
76 byte By
ygjohn at 2007-9-26 5:38:35
Hi all, which's yr fav Java IDE that supports EJB dev?
1618 byte By
[tone] at 2007-9-26 5:38:48
Okay, I understand that when parsing with SAX, ContentHandlers work on the data thats parsed as it's parsed.What I'm having problems understanding it how to work on the data structurally. For example here is what I'm trying to achieve:I generate a DOM Document based on database results and ...
is there a xjc script for win-nt?
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 ...
558 byte By
proflux at 2007-9-26 5:41:16
Hi,I am having trouble getting my SAX parser to accurately determine the attributes attached to my XML tags.My XML tag looks like:<question type="multiplechoice">The parser comes to this element and calls the startElement method. When I System.out the attributes.getLength() it returns 0. ...
Hi. I was using j2se 1.3 and performed some lookups on objects from an Oracle 8.1.7.Then, in order to use jms, I installed j2ee 1.3 and j2se 1.3.1. Now my lookups doesn't work anymore, but my lookups on jms objects (por example Queue or QueueConnectionFactory) does work fine. This is the code ...
I want to be able to store Strings that are larger than the default 255 characters that are allowed.Do you do this using J2EE deployment descriptors or vendor specific deployment descriptors?Thanks.
1736 byte By
njing78 at 2007-9-26 5:43:11
I developed an EJB application according to the paper "Enterprise JavaBeansTM 2.0 Container-Managed Persistence "But I faced compiling errors when I compile the CMP entity bean which extends the Local Home Interface. My program is like this:************************import ...
2166 byte By
butcheri at 2007-9-26 5:43:20
Hi, I am having some interesting TX problems using JBoss 2.2.2.I have areasonably complex TX which does the following:1. Find container entity A.2. For container entity A assign all contained entities to container entityB. (effectively an UPDATE operation on the contained entities table).3. ...
564 byte By
njing78 at 2007-9-26 5:43:33
I want to develop a CMP entity bean named "User", primary key is userid, and has attributes like username, password and so on. But now I want to develop a method in home interface named findByUserName, other than the normal finder method like findByPrimaryKey and findAll. However, I don't know ...