Accessing a remote machine using JNDI (for MQSeries)

1306 byte By willwright at 2007-9-26 4:18:59
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 ...

HomeClass not Found Error!

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 ...

Crimson and DTDs

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 ...

Send email with Asian characters

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

JAXB

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 ...

export ms access db files to xml using java

132 byte By rohinireddy at 2007-9-26 4:20:57
could any one help me how to export access files to xml using java.all i need is some code related to it.thanks

starting j2ee server

203 byte By ramana_dommata at 2007-9-26 4:21:21
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?

Unable to Access the Instance variable

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 ...

Is this possible?

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 ...

session variable and javamail

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 ...

Database connection

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 ...

dislaying messages from inbox

235 byte By hariharan1005 at 2007-9-26 4:22:30
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

Caching data at the ejb teer level

684 byte By Ephemeris-Lappis at 2007-9-26 4:22:34
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 ...

What exactly do I have to download for XML parsing?

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 ...

java mail

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

How do I start Using Mail API ?

438 byte By IrenicMan at 2007-9-26 4:23:28
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 ...

New to XML

181 byte By sandeep_saluja at 2007-9-26 4:24:08
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

Calling EJBs from other EJBs in other J2EE Server?

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

Master Data - Are they EJB's ?

404 byte By puneet_kathuria at 2007-9-26 4:24:48
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 ...

Java API for XML Processing Version 1.1 - Tomcat 3.2.3 and parser.jar

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? ...

A CMT Session Bean Does Not Maintain the Transaction Correctly

7686 byte By tarek.youssef at 2007-9-26 4:25:12
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 ...

When to use EJBs

365 byte By shaheen_75 at 2007-9-26 4:25:19
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 ...

how do you get Oracle 8i to work with j2sdkee 1.3 B

1239 byte By ptulachan at 2007-9-26 4:26:13
I had the j2sdkee1.2.1 working with Oracle 8i and I had the following line in the ~conifg/default.properties filesHere's what ...

When to Use Servlet only, EJB only and, both Servlet And EJB?

352 byte By ballclock at 2007-9-26 4:26:50
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 ...

Which App Server

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

Which one to use JBOSS or J2EE for EJB?

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

Xml and java under Unix environment

793 byte By LeBigornot at 2007-9-26 4:28:40
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: ...

why has there NoSuchProviderException in JAR file?

298 byte By mrmarkwang at 2007-9-26 4:28:45
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?

Sealing exception problems - S.O.S!!!!

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 ...

Catch Unknown Host

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 ...

Can I run an EJB Application in Windows 98?

331 byte By luismahou at 2007-9-26 4:29:36
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 ...

Problem with the J2EE example

347 byte By IBeaumont at 2007-9-26 4:29:55
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 ...

Problems with getting the wanted values form XML

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 ...

SAX parse a DOM

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 ...

How To Comapre 2 XML documents

100 byte By NaveenR at 2007-9-26 4:30:40
Are there any tools available for comapring two XML files ?RegardsNaveen

EJB 2.0 CMP: why no relationships for remote interfaces?

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 ...

XML-RPC vs SOAP

86 byte By swwong888w at 2007-9-26 4:31:04
Could anyone suggest a comparison between XML-RPC and SOAP.Thanks

Oracle and Java

205 byte By sandeep_saluja at 2007-9-26 4:31:07
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

Using transacted sessions in MQ

759 byte By willwright at 2007-9-26 4:31:17
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 ...

Remote Interface Method Invocation generates ClassCastException

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 ...

SOAPAction

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 ?

Serialization issues with an EJB

368 byte By tommyfotak at 2007-9-26 4:34:10
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 ...

CMP for EntityBean - EJBC Error

8114 byte By smitha_rai at 2007-9-26 4:34:50
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 ...

WHat to do...

206 byte By maryamq56 at 2007-9-26 4:35:03
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

Weblogic classpath setting

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 ...

TemporaryQueue Name fails security check

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 ...

Can't send command to SMTP host

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 ...

access a node with jaxp

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 ...

Database access from session bean

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() ...

Error parsing an XML file from a URL identifier

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 ...