HiI'm trying to learn Enterprise JavaBeans, and I'm reading OReilly Enterprise JavaBeans 3.0, and I tried to compile the first chapter but, when ant tries to compile the thing, I get:compile:[javac] Compiling 4 source files to D:\bookz\java\j2ee\EJB\OReilly Enterprise JavaBeans 3.0 5th ...
2716 byte By
jmillsya at 2007-11-27 2:05:02
Hey Guys,I am using SAAJ to extract a SOAP Request. The request has an embedded MIME attachment.Everything seems to be working very well on my windows dev box. Using Java 1.5, and Tomcat I can send in my request and parse just fine. Issues started occuring when I moved into a dev production box ...
I am using Java Mail APIs for sending the mails. "From", "To", "CC", "BCC", "Subject" is set in MimeMessage. Earlier I could see "?" in place of both "From" and "Subject". To fix the Subject issue, I used steps given in " http://support.microsoft.com/kb/324603" and it worked. But still I am ...
1279 byte By
ruuddina at 2007-11-27 2:06:51
Hi,This is a FAQ, however, I did a search before posting to the forum but could not find a definite solution. Here is what I am trying to do:A webservice is returning a response XML and I am trying to display it on client console. I am able to display it properly on server side. The response is ...
hi,i am using tomcat5.5.17 for client side and bea weblogic for server side EJB.i am using netbeans to develop and deploy the web application .. i have added weblogic.jar, j2ee.jar ,jndi.jar...whenever i am trying to execute my application , i am getting following error...Error : Cannot ...
Hi, I have a web app that has a session timeout in its web xml, how can I remove the session timeout that the session will never timeout ever. I read that when you remove the session timeout code in the web xml, it will have a default value.Someone suggested that I put longer values, but the ...
I have developed a webservice in JAX-WS. This webservice has a method query that returns multidimensional array of String String[][].@WebMethodpublic String[][] query(@WebParam(name = "key") String key) { }my problem is the client cannot generate the webservice artifacts because of an error, it ...
I'm learning Java EE at the moment, just went through a tutorial on the Netbeans site which runs you through creating a simple EE app that writes notes to a database.What I don't quite understand is, to write a note it sends a message to a MDB which then writes to the database. Why would you ...
how can i create a webservice that returns a javabean? @WebMethodpublic Person query(@WebParam(name = "id") String id) {Person person=new Person();person.setId(id);person.setFirstName("Lisa");person.setLastName("Cruz");return person;}will JAX-WS generate the WSDL and XSD Schema file? do i need ...
5354 byte By
a25139a at 2007-11-27 2:07:34
Hello, I was able to send emails until yesterday, since then every time I try to send an email I get this error:04-24-2007 10:34 - Sending email to : xxx@xxx.xx ...java.lang.NullPointerExceptionat java.lang.String.concat(String.java:1997)at ...
Hi,I have a class say Employee, which consist of ArrayList object and 2 String Objects. my webmethod is returning this object. and I deployed this ws in my APP server.When I look into the wsdl file, there is only 2 String fields are mapped there is no List Object. can anyone tell me how to use ...
Hai,I have configured my jms in jboss with TIBCO EMS. i am able to send Queue messages from client. but my message driven bean is not able to receive the queue. I found the following error message in Jboss logCannot instantiate class: com.tibco.tibjms.naming.TibjmsInitialContextFactoryWhy it ...
HelloI'd like to try Java Pet Store. I'm on page https://blueprints.dev.java.net/petstore/usingnetbeans.html right now, looking for instructions which tells me:1. Install JavaEE5 SDK, SJSAS9: done2. Download JPS JAR file: done (downloaded it to D:\docs\java\samples)3. Start NetBeans 5.5, ...
I use javamail for pop3, but I have some problems.I wanna read raw headers which aren't encoded.I cannot read few messages because of charset.I tried to read a raw data for a body, but I still have a problem for header data such as subject or filenames.Can I give an option for not encoding? If ...
Hi every oneand Thanx to every one...for giving their precious help for every one Here i want to explain a small problem in java mail with unicode Here it is ....Iam sending a mail with some chinese characters in the subject field..internally these chineese characters are converting in to html ...
86 byte By
gs03anna at 2007-11-27 2:13:00
Is there a way to find if my client has lost its connection to the JMS service?
Is there any way to specify code to be executed when a web application is deployed and undeployed to an application server? I'm using Sun Java System Application Server Platform Edition 9.0 Update 1.Thanks.Glenn
204 byte By
-@-a at 2007-11-27 2:13:18
I would like to incrementally convert my remote stateless session beans to version 3. To do this, must I convert the entire ejb-jar.xml from the old dtd-based format to the new schema-based format?
i am sending the email using standard java api, my application is concerned highly with emails, i have to send almost 50000 emails daily. but Transport.send(message); takes longer time, i want to improve the performance, how to decrease this wait time.message.setSentDate(new ...
Hello,I am able to fetch mails from my mail server. Also able to delete it from the mail server. But before deleting the mails i need to save these mails in a file or a folder is this possible?Thanks in advance
187 byte By
MAYAa at 2007-11-27 2:17:52
By using folder.getMessages() we can get all the messages. But i want to get only unread messages. Is it possible with JavaMail? If yes how we can do it?Regards,MAYA.
Hi,I write a student entity (2.0) bean. it does not store data in database(mySQL). my env = Jboss4, mySQL4.1,Eclipse3.1, Entity bean 2.xCan any body tell me the possible reasions. if you need then i'll give u code.Thanks in advanceRavi
1419 byte By
a3cchana at 2007-11-27 2:18:12
Hallo,I'd like to select random entity from database -- e.g. single fortune cookie that will be displayed on application web page. Unfortunately I've been able to think out only very simple (and inefficient) method so far:// Fortune cookie entity@Entityclass FortuneCookie { @Id int id; String ...
145 byte By
revevera at 2007-11-27 2:20:09
I wrote an EJB and I would like to configure it by Spring with .xml files. But where should I place the config files? anyone has any idea?
359 byte By
Petr82a at 2007-11-27 2:20:39
Is it possible to have let's say two BPELs that are using same WSDL when there is no operation which both of them use?Different question - if there are two BPELs which are initiated by the same receive operation of one WSDL and the operation is called which of the two BPELs are executed? One ...
1156 byte By
sagmana at 2007-11-27 2:20:56
Hi all,I am trying to create a design for print services, and I'm trying to see if EJB is a good option. If you know of any similar tutorials/case studies, I'd appreciate a reference. I couldn't deduce anything for this case in Sun's tutorials...I would like a user to be able to print to a ...
I am getting error import javax.xml.ws.Service not found. Which jar file I should add in JDeveloper and from where?I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.Please note I have already added following libaries, jars to Tool->Project Properties->Libraries in ...
3039 byte By
dawuada at 2007-11-27 2:22:00
We have two XSD files with an elements with the same name but different type.A.xsd<xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema" xmlns:commons="commons" xmlns:xjc=" http://java.sun.com/xml/ns/jaxb/xjc" xmlns:jaxb=" http://java.sun.com/xml/ns/jaxb" jaxb:version="1.0"> <xs:include ...
1545 byte By
sagmana at 2007-11-27 2:22:10
Hi all,I'm using EJB 3.0, and I need a certain EJB to lookup another EJB by a name given to me at runtime (so I can't use injected refs). I was thinking of doing something like this, but it doesn't work:First EJB of class EjbFinderBean has a method:@ResourceSessionContext ctx;MyEjbRemote ...
Hello i have a swing app that can send mail. I would like to know how to check if there is a connection to the smtp server before displaying the panel that contains the button to send mail. This must not be available if there is no connection to the server.Thanks for helping
Hi, I want to visualize the content of an EJB in JSF. My sample EJB is an entity class of a database table. As long as the data in the table is the data I want to present everything seems no problem, but what if this is different. For example I have a table 'address'. Lets suppose that the ...
Hi,I have been quite famiiar with Java SE, and would like to start learning more about web application programming, both for fun and potential job opportunities. However, after some exploration, I found there are countless technologies to learn, only listing them would totally exhaust me. Would ...
Hi,I am trying to call a remote EJB from a client...Here is my client code...InitialContext ic = new InitialContext();Object o= ic.lookup("iiop://127.0.0.1:3700/ejb/TellHelloBean");TellHelloRemoteHome helloHome = (TellHelloRemoteHome) PortableRemoteObject.narrow(o, ...
hi all, can you just tell me how to secure web service using digitally signin in?i need some specific imformation on this. i am new to web service. i now how to create web service using tomcat 5.0 server with eclipse.please tell me about this.thank you in
package helloclient;import java.util.Properties;import javax.naming.Context;import javax.naming.InitialContext;import javax.rmi.PortableRemoteObject;import Hello.*;import org.omg.CORBA_2_3.ORB;import org.omg.CosNaming.NamingContextExt;import org.omg.CosNaming.NamingContextExtHelper;public class ...
Hi, guys I make a tool to send emails by Javamail API, after I browser its properties by MFCMAPI, I find that properties is changed, I can't find out reason. who can tell me? MTA is exchange2003, MUA is outlook2003. Thanks in advance.
2984 byte By
cemoxa at 2007-11-27 2:26:37
Hi there,i've developed a webservice on windows, using netbeans 5.5 with its integrated tomcat and jax-ws. It works without problems. then I'm trying to run the service on another maschine with RHEL4, tomcat 5.5, jdk-ibm 1.5. unfortunately it doesn't work as I thought. The service is ...
I have installed JEE 5 with Sun Java System Application Server and JDK on Windows XP. After installation, the default server is started successfully and I am able to connect to it through URL http://localhost:4848 or 8080,8181). But once I stop and then restart the server later on, I am unable ...
Hi,I am new to Web services world.I read the java web services page . there are more than 6 technologies.JAX-WS,JAX-RPC,JAXB,SAAJ,JAXP,WSIT,XWS-SecurityI went through several documents on web services.I could not get a clear idea of which technolgy to use.Which Java web service technology will ...
997 byte By
darat55a at 2007-11-27 2:26:51
I want to do the following:Run different applications on several SJSAS 8.1 appserver instances. Send a JMS message from one application in EJB container to a message queue which resides with a different appserver instance on a different machine.How can this be done?I know:1.) how to connect ...
259 byte By
JChefa at 2007-11-27 2:27:03
Hi ,I'm currently developing a mail application on NetBeans IDE. In that i need Java Mail API. I've downloaded latest version of JavaMailAPi with activation Framework. Please tell me how to install both files through NetBeans IDE?Thanks
270 byte By
revevera at 2007-11-27 2:27:05
I am now thinking of release stand-alone app-client. But according to tutorial, I have to include javaee.jar(1MB) and appserv-rt.jar(16MB), etc. But my app-client jar is only 2MB. So it's ridicule!Anyone has any idea? or I mis-understand something?
335 byte By
xama at 2007-11-27 2:27:10
Hello @allI磎 new to Open ESB and NetBeans.Does anybody has an idea how to put HTTP-Header to the BPEL-Process?I have to call a WebService (from BPEL) which expects user authentication (sessionId) in the HTTP-Header . How do I do that? Do I have to modify my WSDL-File?Thanks for your posts in ...
hi,I have developed a web service using jax-rpc. i know that when a client invokes the web service a SOAP message is sent to the server. Is there any tool that can intercept the SOAP message so that i can edit the message before it is sent to the server. I tried to download this tool called ...
135 byte By
revevera at 2007-11-27 2:28:48
At container event (Start/Stop), some EJB configuration works can be done. Or JavaEE has other ways to fulfill this task?
Hi all,I am assigned a task to develop an online annotation tool for a course website. It should allow the teachers to annotate the students' answers online. The website (I am the author) is implemented by JSP, Servlets and MySQL database. I don't know where to start, can anyone give me some ...
763 byte By
eMOa at 2007-11-27 2:29:14
Hello,I want clients to create temporary queues, which they'll register into a database through a MDB. Then that MDB will take the names of the registered temp. queues and communicate with those clients through them.Problem is with getting the Destination of a temporary queue having only its ...
137 byte By
princa at 2007-11-27 2:29:15
Does the LIMIT function for EJB QL work in ejb 2.0. I am trying to limit the results returned by an EJB query from an entity bean.
Hi All,I have a typical problem:-I want to search Every occurrence of \" in a file and replace all with " But in turn it is searching for " and converting it too.Any Help at least this time :)Thanks.
Hi. I'm trying to validate a file with DOMParser against a schema. When I do that, I keep getting an error saying:[Error] myFile.xml:1:13: Document is invalid: no grammar found.[Error] myFile.xml:1:13: Document root element "rootEl", must match DOCTYPE root "null".I am not using a DTD to ...