133 byte By
Thilsena at 2007-11-27 10:14:12
<p>Hi all,</p><p>I want store JMS queue in oracle database..</p><p>How can i configure my jboss 3.0.1</p><p>Thanks,</p><p>Thilsen</p>
503 byte By
Nanakoa at 2007-11-27 10:14:19
I used the JasperReport to generate a report in html formats.The html page(containg the data) has a lot of images.I need to send the html report by emails with the images saved in local drive. So I used MineMulitipart way, but in existing ways the html part is just a few lines, you can define ...
2585 byte By
enbya at 2007-11-27 10:16:44
Hi Everyone, I'm new using JasperReports, and I'm trying to generate a simple pdf report with the following Java code:JasperReportsIntro.java// JasperReports *********************import net.sf.jasperreports.engine.JREmptyDataSource;import net.sf.jasperreports.engine.JasperCompileManager;import ...
776 byte By
paulnc8a at 2007-11-27 10:16:59
Hey, I am trying to subtract an initial time value from consecutive time values using xsl in order to produce a delta value. The problem is that the way the program creating the files stores the data, it also has the date, etc. as a string. Any ideas on how I can accomplish this? An example of the ...
2671 byte By
jmutonhoa at 2007-11-27 10:17:23
I'm trying to do a simple persisting of an object into a MySQL database , with the following code:public static void main(String[] args){ EntityManager em=JPAUtility.getEntityManager(); List existing = JPAUtility.getEntityManager().createQuery("select u from UserBean u where u.userName='foo' and ...
451 byte By
caesara at 2007-11-27 10:21:11
In my app, client will have to obtain some authorization from a third party before it can consume the service provided by the server. Client - server interaction may span over several messages.As in WSIT, how is that implemented? with WS-Trust and WS-secure conversation, can I say that: client only ...
582 byte By
Viresha at 2007-11-27 10:21:26
HiI have enterprise Jave Application which i am researching on. This Java based application communicates with the Java Client with JMS. At present it is used by the company to run on a LAN. I am looking at possibilites of Connecting the servers to client via Internet connection.i.e which allows ...
Hi,I am trying to connect to JMS running on local Sun App server through java client programI am using following code - Properties prop = new Properties();prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory") ...
479 byte By
YukinoGa at 2007-11-27 10:21:41
Hi,Would like to seek advice on what could be the cause of the following error message:javax.mail.MessagingException: 450 Unable to complete command, no storage availableThe above error was encountered while sending the emails regardless of whether the mail has attachment or not. It happens ...
I have an application where in a user Id should not be used by more than one person to log in at the same time.What I mean is that at any given point of time, if a person is logged in to the application, with say user id "myself002", then another person should not be able to log in using the same ...
<p>i wrote small javamail program it wa compiled but it didnt run.</p><p>i want to know what is the configaration to run javamial programs</p>
Hello there! I'm creating some webservices that will be called on a BPEL process. All webservices have the same method signature, only differ in their implementation (ok, I'm creating a loan broker app, and the webservices are the banks endpoints ;) ).Ok, so far so good. Since all webservices ...
<p>Hello...</p><p>I am using weblogic server v9. I want to hit the database and populate a couple of objects during startup of my app server and store them in application scope.</p><p>I have no idea on how to proceed. Any hints on the same will be appreciated.</p><p>~SirG</p>
<p>Hello!</p><p>Anybody who have a small example project made in Netbeans that uses persistence?</p>
1771 byte By
paulnc8a at 2007-11-27 10:25:35
Ok, so I have an xml file holding all my data and am trying to make it so that different elements/attributes within the structure are links, but XLink does not seem to be working for me. I have an xls stylesheet which displays the xml data, and I would like to be able to click on the elements that ...
1377 byte By
dimka71a at 2007-11-27 10:29:02
Hi,I try to create a web client for remote web service. I got wsdl file and IDE (Sun Java Studio Enterprise 8.1) successfully build java files out of wsdl. Everything looks simple and good except 1 little thing. When I run the client it throws an exception below.--java.rmi.RemoteException: Runtime ...
i am uploading multiple file without FormFile.through java scripting i wrote coding..i wrote the coding correctly but when some one accessing my server to upload file means it take 0 bytes file nothing in the attachment .but its working correctly in my system.if some one accessing my system its ...
<p>Hi all,</p><p> I am trying to send mail on gmail using java mail API.</p><p> It need to authenticate first, can anybody explain why it need to </p><p> authenticate .</p><p> Please Reply</p><p> Thanks in advance.</p><p> Amit</p>
<p>Hi All,</p><p>Could any one suggest me how implement mail delivery failure using java mail API.I have used TransportListener but its giving the successful delivery always.</p><p>A</p>
Hello!I'm working on a POP3 mail fetcher: a program which downloads messages from a POP3 server and delivers them to an SMTP one.I found a problem trying to send the message I get from a POP3 folder, like:Message[] messages = folder.getMessages();for(Message message : ...
<p>Hi all,</p><p>has anybody any experience on using the Advanced Message Queue Protocol (AMQP) [1] with JBI/ESB technology (i.e. Mule)?</p><p>I haven't seen any AMQP connector available: is there any plan for that?</p><p>Thanks,</p><p>Michele</p><p>[1] http://www.amqp.org/</p>
386 byte By
reichana at 2007-11-27 10:32:23
Hi all,i am trying to realize a web services with Jax-ws technology that returns a created complex Object from me and that the client can interpret through the wsdl. How I must set up annotations of Jax-ws? you have of the examples from being able to me to show or of the link that they can help me ...
1756 byte By
restevesa at 2007-11-27 10:32:41
Hi,We're developing a set of applications that communicate via web services.The company decided that to do this we should use jax-ws 2.1.Everything is going ok, its really easy to use, except for a web method that returns a java.util.Hashtable. In the endpoint there's no problem, it compiles and ...
Hi,I went through https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html page to understand the difference between application client and java client. Still I don't seem to understand how is it different. It's not being deployed in Application server then it means we run this as stand alone ...
I have to map a legacy database to JPA enity beans.The legacy database has to following tables:BaseComponent:integer basecomp_id (PK)... more fieldsBasePac:integer basepac_id (PK)... more fieldsComponent:integer basecomp_id (FK and 1. part of PK)integer basepac_id (FK and 2. part of PK... more ...
I have a servlet that can process a request and send a response. Needing to process many simultaneous requests, I started using a LinkedBlockingQueue in a separate thread to take requests and process them. The problem comes when I have finished processing and want to send a response to the client. ...
275 byte By
p-_pa at 2007-11-27 10:38:49
<p>Hi,</p><p>When i try to receive the data from the external system in the form of xml through JMS i am getting an exception like "JMS Exception Sending to queue null". Can somebody help me with this in resolving the issue. </p><p>Thanks & Regards,</p><p>P.Prasanna.</p>
8717 byte By
Rob_Ha at 2007-11-27 10:39:09
So I started looking at JavaMail today and came up with this.import java.util.Properties;import java.security.Security;import javax.mail.Message;import javax.mail.MessagingException;import javax.mail.PasswordAuthentication;import javax.mail.Session;import javax.mail.Transport;import ...
976 byte By
xyzta at 2007-11-27 10:40:38
Hello,I created a Netbeans Visual Web application. I added an Entity Class from a database table. A resource is added into Server Resources part. when I look at its properties, I see that it's JNDI name is set to "bitkiwiki" and I check the Sun Application Server's JDBC Resources and I see ...
Hi All,Could pls throw some light on the following design.Currenty, We have more than 100 queues and for each there is a different MDB to receive the message.Now, somehow we made a single instance of same MDB listen to all these queues by looking at the input message. The requiement now is, is it ...
Hi All,I have a basic question on EJB Session Facade design pattern.What is the extra code we write in normal Session Bean, to make it as Session Facade.I never involve in EJB coding, but i know the coding and bit curious to know about it. I see Normal Session Bean coding and also seen Session ...
I have a file of very very maximum no of mail so i am sending I have a servlet page. Using this servlete page, if I want to send the file to a jsp then between these time taking process i want to show something progress is going on but i dont like to use progressbar just i want to create threading ...
Hello everyone, I have already read the documentation but there is one point still unclear to me.I want to write a messenger on jms basis so that people using clients can chat with each other. There will be topics that single users can subscribe to and direct chat sessions between two users.So my ...
907 byte By
vAaka at 2007-11-27 10:43:03
Hi,I'm developing an application in which both my EJB's and my application client make use of some general classes. To avoid duplication, I thought it was a good idea to create a Java Class Library project (myLibrary) in NetBeans and let the two other projects (ejb and app-client) access them by ...
<p>I'm new to parsing. I have separate XML and DTD txt files and I'm using SAX. Can anyone indicate why I get this error?</p><p>"Problem starting XML processor com.ibm.xml.parser.XMLReader#read: Invalid UTF-8 code. (bytes: 0x93 0x57)"</p>
I recently installed Java SE 6 and want to know how to use the web services that come with it with Tomcat 5.5.Searching the internet yields no answers.Specifically, I need to know what needs to go into the web.xml file to publish the web service, whether another xml file is needed, whether Tomcat ...
3316 byte By
Sapana at 2007-11-27 10:46:13
Hi All,I have been trying to compile and run my first EJB in NetBeans. It is a very simple EJB which goes like this.package test;import javax.ejb.Stateless;-/** * * @author Vibhushan */@Statelesspublic class NewSessionBean implements NewSessionRemote, NewSessionLocal {/** Creates a new instance of ...
Hi frenz,i am having a web service that is having 3 operations. They are all working fine.now i want to add the forth operation with a return type of "ArrayList".i tried, but it thrown an error:error: Collection types are not supported in literal mode - Type: "java.util.ArrayList"This is my wsdl ...
<p>what is the sequence of events that takes place after, findAll method on EJB Home of an entity bean is called. In particular I want to know when EJB Objects are created? I am not able to understand this from Entity Bean lifecycle.</p>
Hi all,I have a requirement wherein I need to enqueue a MimeMessage into a JMS queue. Now MimeMessage is not serializable! And I wonder why!Now here is the problem. I want to invoke the message.getContent() method only after I dequeue from the queue. Which means I will need the entire MimeMessage ...
I'm fairly new to EE development, so forgive me if the answer to this question should be obvious to me.I want to be able to schedule a task to start at a predetermined time. Basically, I need the Java EE equivalent of the cron service on Unix systems. One example: I need to run a few DB queries ...
Hi...I have a different problem.. that isI have a MDB that is interacting with the DB through the result set and statementAnd I have Session bean interacting with the DB through the result set and statement. When both (sometimes) interact with DB . I have a problem.. ( Object closed )i would be ...
324 byte By
Adi1000a at 2007-11-27 10:51:02
Dear experts,I had been using J2EE 1.3 quite long ago.Recently i shifted to latest version of J2EE and despite a Quick start guide,i am unable tofollow how to deploy a simple entity bean.I have coding for home interface,remote interface and the beanclass itself.Plz ...
973 byte By
aacaina at 2007-11-27 10:51:19
I am having a problem with the container-managed transactions not working as expected. I have 2 methods that work as follows:MethodA{for(a lot)call MethodB;}@Transaction Type = RequiresNewMethodB{ EntityManager Persist to database}I want the code in MethodB to be committed to the database when ...
1290 byte By
dnwiebea at 2007-11-27 10:51:32
I'm writing a website that occasionally sends emails--in this case, as part of a new-user registration process. The relevant code looks like this:Message msg = new MimeMessage (session);When I deploy my application in Glassfish, this works wonderfully.But when I run this code in an automated unit ...
<p>Hi</p><p>Can anybody post the sample code or provide a URL for how to read MX records using java.</p><p>Regards,</p><p>Godspeed</p>
hii m facing an issue while sending mail.the mail is actually sending(received in the To email) but an error is thrown javax.mail.MessagingException: Exception reading response; nested exception is:javax.net.ssl.SSLException: Unsupported record version Unknown-50.49at ...
2575 byte By
Tindora at 2007-11-27 10:54:16
Hi,I'm just learning to write web services. I pasted the service and it seems to work.It's code is :package server;import javax.jws.WebService;public class HelloImpl { /*** @param name* @return Say hello to the person.*/public String sayHello(String name) {return "Hello, " + name + "!";}}I wired ...
JSR 220 ejbcore, page 47 : stateless session bean: All business object references of the same interface type for the same stateless session bean have the "same object identity", which is assigned by the container.So, if we have two session beans in client code...@EJB Cart cart1;@EJB Cart cart2;then ...
Hello, Here is my situation -I'm using the metric topic "mq.metrics.destination_list" to receive the mapped message of metric data. I'm doing this to get the queue depth, number of consumers and number of messages acknowledge. My JMS provider is Sun JMS. I have a cluster of two brokers on Window ...