I am trying to use MQ to set up a couple of JNDI objects on the MQ machine ( a QueueConnectionFactory and a Queue object ) and then simply looking these up through configuration and using them to read in and write messages to the queue.My problem is with JNDI. I have created the objects on the ...
448 byte By
matrixmc at 2007-9-26 4:19:01
HiAnybody wanna help me out with this problem,I have correctly deployed nearly all the example application and when run the client I always get a Homexxxx class not found error or another errorBinding name:`java:comp/env/ejb/SimpleSavingsAccount`Application threw an ...
1351 byte By
mneumi at 2007-9-26 4:19:09
Hi!I'm having problems with Crimson in combination with documents validated using an external DTD. I'm usinf JAXP 1.1. Basically I get an exception:Exception in thread "main" java.lang.NoSuchMethodErrorat org.apache.crimson.tree.XmlDocumentBuilder.startDTD(XmlDocumentBuilder.java:648)at ...
206 byte By
yijunwu at 2007-9-26 4:19:45
Hi Does anyone know how to send email with Asian characters? Sample code will be useful. I got ? instead of the real characters, please help....Thanks in advance Ken
469 byte By
wodefey at 2007-9-26 4:20:40
Is is possible to have the JAXB compiler print the default binding schema it is using? This would be a tremendous asset!! The compiler is creating the correct class configuration for my project, but I can't figure out how to modify the binding schema to get the fields to be doubles instead of ...
could any one help me how to export access files to xml using java.all i need is some code related to it.thanks
I tried to run the j2ee -verbose but it gives me an error that "Could not initiallise J2EE Server. Possible cause could be another instance of server already running"Any suggestions?
3264 byte By
Duker at 2007-9-26 4:21:32
Hi All,I am using the following code to parse a xml, the problem is , if I print the instance variable 'stores' in endDocument() it is printing the output, but when I print the instance variable in main ,it is null. Any help with this scope issues will be appreciated:import ...
1192 byte By
me_elf at 2007-9-26 4:21:40
my xml file would look like this..<addresses><address><street-name>400 703 6th Ave SW</street-name><city>Some City</city><post-code>zip code</post-code></address><address><street-name>400 703 6th Ave ...
427 byte By
idog at 2007-9-26 4:22:09
I'd like to use a session variable set from a registration page to set the TO: address on the subsequent page. This is the javamail page. I retrieve the session variable, but I can't seem to use it to set the "TO", e.g., new InternetAddress(session.getValue("svTO_ADDRESS"). If I hard code ...
419 byte By
Peace32 at 2007-9-26 4:22:14
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");con = DriverManager.getConnection("jdbc:odbc:servlet");By running these codes in the servlet and the servlet is running in the j2sdk application server, does the servlet makes a direct connection to the Database(less tier) or does it go through the ...
do we have any method in message class that wouldshow me new messages or unead messages followed by old messagesright now the present system that i have shows the new messages at last position
The system must provide 2 different web applications, 2 daemons (startup classes in weblogic) and probably a swing style client. To optimize accesses, some data, like configuration tables could be shared by all clients sessions. As the EJB specification explains, the session beans can't be ...
555 byte By
auwy29 at 2007-9-26 4:23:05
Dear All,I am totally new to XML, and I am totally confused on what exactly I have to download and ended up downloading all that I could find.So I hav no idea which one I have to use, an article I was reading suggested I download the XML library from Sun and the links led me to a page with two ...
123 byte By
aakashr at 2007-9-26 4:23:23
Hi all can any one send me code for mail at my mail address softupk@yahoo.com thanks in advance
As you can guess, I have never used MailAPI before. I always thought its just another pkg and I can directly use it when I would need.But It doesn't seems to be the case. It is too wast (or may be I am just afraid).At present All I want is sending Some Mails in HTML format using an Existing ...
hi can u help me please.i am new to XML but got to learn it very urgently. pl any soft copy tut .or any material on XML for beginners.sandy
149 byte By
DTUMANOV at 2007-9-26 4:24:44
How can I call one EJB on one J2EE Server from otherEJB on other J2EE Server?Help me, please.Dmitry Tumanov
Hi,In my application, I have an "Account" Entity that holds the account data. There is also a field called "account status", which comes from "parameter" table. The account table stores the PK of parameter table.Now Do I make this parameters table an entity EJB as it is not a business entity as ...
622 byte By
shankeyp at 2007-9-26 4:25:06
Hi:The README for tomcat says make sure jaxp.jar and parser.jar are in the classpath. The readme strongly infers parser.jar should be with the XML Processor. However it is not. Do you think this may be an error with Tomcat's Readme, or has parser.jar been incorporated into something else? ...
Hi All,I need an urgent help with this strange problem with Container Managed Transactions.A session bean CartEJB which is set to be container managed transaction(CMT) is calling two different instances of an entity bean (CMT too),for example Account1, Account2. In the session bean I credit ...
1) Does any one know where can I find documents that describe when EJBs should be used in an application? If I use a J2EE server like WebLogic, should I always try to use EJBS an my applications?2)Once I have decided to use EJBs in an application, should there be an entity bean corresponding ...
I had the j2sdkee1.2.1 working with Oracle 8i and I had the following line in the ~conifg/default.properties filesHere's what ...
I have a question, If I want to build a Web application. Sometime i found that there is no need to use EJB as Servlet already provide that functionality. Can anyone tell me when do I use Pure Servlet? When do I use Pure EJB and, When do I use Both EJB and Servlet?I am very interesting in ...
263 byte By
RearCog at 2007-9-26 4:27:22
We are trying to decide which app server to buy at work. We have been looking at Weblogic, Oracle, jRun, WebSphere, ect. I am new to j2ee programming and am wondering which server you like best. We plan on using ejbs, servlets, and jms.Thanks
183 byte By
jii3 at 2007-9-26 4:27:44
Hi all,I would like to develope an application using EJB with an open source. So please advise me which open source is the best.Thanks in advanceJii
hello,I have to perform XSL Transformations on a Unix Web server .So I work with Xalan and Xerces. The SimpleTransform sample works really correctly on WinNT but when on a Unix (Os/390) system the sample doesn't work and display this error code :java.lang.IllegalArgumentException: ...
My program run well in jbuilder IDE, but after i make the project into JAR file, I meet the exception:javax.mail.NoSuchProviderException: No provider for smtpi set the classpath well, because my other program(.class) sending email well.who knows what should i do?
635 byte By
jcshroff at 2007-9-26 4:28:52
Hi,I am trying to solve this problem of 'sealing exception' that I have been encountering with Unix/Tomcat/JAXP platform. The way I found out is through a thread in this forum itself. It says to unjar the 3 jar files in the JAXP folder (crimson, jaxp and xalan) and change sealed property in ...
598 byte By
maxhugen at 2007-9-26 4:29:16
I've used the JavaMail API examples to successfully create a servlet for sending emails. It catches exceptions, and I have it reporting on Invalid Addresses (etc) back to the user.I'm using the trans = session.getTransport() method, and listeners, so I can report Invalid Addresses if no ...
Hi! I'm new in EJB programming, and I'm trying to deploy an HelloWorld EJB application. I'm using the j2sdkee1.2.1. I can deploy the application but I don't see any result. I think the problem is that I use Windows 98.P.D.: Sorry for my English, I'm Spanish and I've got some problems with ...
I'm trying to follow through the J2ee 1.3 beta draft 4 example.With the currency converter in the getting started section, after pressing the finish button in the EJB wizard (creating ConverterEJB), I get the following error:"There was an error importing component(s) into this ...
818 byte By
Imzadifi at 2007-9-26 4:29:59
Hi!I'm using a XML which structure is following<countries><country><name>France</name><capital>Paris</capital><language>France</language></country><country><name>United ...
306 byte By
NaveenR at 2007-9-26 4:30:37
Hi I have an applet which receives a DOM from a servlet I need a facility to SAX parse this object for creation of a GUI. Since its an applet I cannot serailize the DOM & store it as a file & then parse it using a SAX Parser. F 1RegardsNaveen ...
100 byte By
NaveenR at 2007-9-26 4:30:40
Are there any tools available for comapring two XML files ?RegardsNaveen
555 byte By
perisb at 2007-9-26 4:31:01
Been studying the 2.0 spec. regarding CMP, and it looks great, except for one thing: I'd still like to provide remote interfaces that can mutate and navigate relationships with other (remotable) entities, yet have the Container provide the implementation.As I read it now, to do this I would ...
Could anyone suggest a comparison between XML-RPC and SOAP.Thanks
HiIs there anyway by which i can store my java class inside the oracle database.If anyone has a iota of idea about this then please share it with me.Thanks Sandeep Saluja
Hi,I am trying to use transacted sessions in MQ. I create my session object like sosession = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE); I then send an object to the queue... By mistake the first time I did this I didn't use commit() on the session to actually send this ...
965 byte By
hmugasha at 2007-9-26 4:32:54
I have a remote EJB method,whose signature is as follows:String foo (Vector bar)the Vector bar is a a collection of Objects instantiated from a class A. When I create and invoke the stateless session bean method foo i get the following error:There was an exception while creating and using the ...
93 byte By
MaciejW at 2007-9-26 4:33:22
Hi,Is there any way to set the SOAPAction HTTP header field using JAXM ?
I have an object that I have created. It implements the serializable interface and all its members are also serializable, (except a series of final static ints). When I call a method on my EJB (remotely) that returns the above object I get an exception telling me that my object is not ...
Hi, I am trying to use CMP for entity bean for a simple database table having three columns, namely, cust_id(int), item_code(varchar2), quantity(int). While I am genetrating the Jar file, I am getting the incompatible ERROR. I could not understand where exactly the error is: My code is as ...
When i try to run the demo applications provided with the mail api i get the following error message. Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
331 byte By
msyal at 2007-9-26 4:35:06
How to set the classpath for the helper class files in weblogic.There is option where I can set the classpath of the servlets , but to set the classpath of other class files(helper) , where should I set the classpath in weblogic.properties files Also by default where should I keep my class ...
627 byte By
scrth at 2007-9-26 4:35:22
Is there any way to specify the prefix (first part) of the name of a queue created by CreateTemporaryQueue? This can be done with base MQSeries, and is ESSENTIAL when using the temporary queue as a ReplyTo queue, if sending the request message to an MQ program on S/390. Security checks (eg by ...
1510 byte By
TiGeR1 at 2007-9-26 4:35:29
Hello!When I try to send an Email via JAVAMAIL i get this error:javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: java.net.SocketException: Socket ...
525 byte By
nort_de at 2007-9-26 4:36:02
hi,i have the xml structure like this:<doc><tag1><id>1</id></tag1><tag2><id>2</id></tag2> </doc>when i say nl = e.getElementsByTagName("id"); it returns me all id from tag1 and tag2. i can acces it then like: Node n = nl.item(1); but ...
2526 byte By
kostasa at 2007-9-26 4:36:32
Hello,I have a stateless session bean which performs some complexcalculations, and also does some database access.For the database access the bean class has a datasource asfollows:public class TestBean implements SessionBean {private DataSource ds_;public void ejbCreate() ...
455 byte By
pjrenaud at 2007-9-26 4:36:39
I have been using the SAX2 parser to parse an XML file. I have no problem when give the "parse" method a local XML file name. When I give the parse method a URL address, however, it returns a "SAXParseException: Value must be quoted" error at run-time.The URL address returns the exact same XML ...