Jeelani,

I have successfully used container managed bean's in weblogic using a
java.sql.Timestamp type. However, in the sql server the field has to me be
set to an sql DATETIME type whereas with cloudscape, the type is simply
DATE.

cheers
William

> -----Original Message-----
> From: Manish Shah [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 20, 2000 16:51
> To: Jeelani Basha
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: need info
>
>
> Hey Jeelani,
>
> The problem is most likely that Weblogic does not take java.util.Date
> types, just java.sql.Date types, to set the Date for an entity bean.
>
> Manish
>
>
> On Fri, 19 Nov 1999, Jeelani Basha wrote:
>
> > Hi,
> >
> > I am using BEA's WebLogic 4.5.1. In my entity bean, when I
> am trying to
> > insert date in Sql Server using Container management
> persistance, I am
> > getting
> > the following error :
> >
> > java.rmi.UnexpectedException: Unexpected exception in
> > ProspectInfoBean.create():
> >
> > java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional
> > feature not i
> > mplemented
> >         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code)
> >         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:4246)
> >         at
> > sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterDate(JdbcOdbc.java:313)
> >         at
> >
> sun.jdbc.odbc.JdbcOdbcPreparedStatement.setDate(JdbcOdbcPreparedState
> > ment.java:605)
> >         at
> weblogic.jdbcbase.jts.Statement.setDate(Statement.java:499)
> >         at ProspectInfoPSJDBC.create(ProspectInfoPSJDBC.java:230)
> >         at ProspectInfoPSJDBC.create(ProspectInfoPSJDBC.java:167)
> >         at
> >
> weblogic.ejb.internal.EntityEJBContext.create(EntityEJBContext.java:9
> > 3)
> >         at
> >
> weblogic.ejb.internal.StatefulEJBObject.postCreate(StatefulEJBObject.
> > java:194)
> >         at
> ProspectInfoBeanEOImpl.create(ProspectInfoBeanEOImpl.java:55)
> >
> >         at
> > ProspectInfoBeanHomeImpl.create(ProspectInfoBeanHomeImpl.java:64)
> >         at
> ProspectInfoBeanHomeImpl_ServiceStub.create(Compiled Code)
> >         at Clients.service(Clients.java:49)
> >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> >         at
> >
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> > pl.java:75)
> >         at
> >
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> > textImpl.java:286)
> >         at
> >
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> > textImpl.java:238)
> >         at
> >
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> > a:501)
> >         at
> >
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:260)
> >
> >         at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
> > ; nested exception is:
> >         java.sql.SQLException: [Microsoft][ODBC SQL Server
> > Driver]Optional featu
> > re not implemented
> >
> > can u please help me out.
> >
> > Thanks,
> > Jeelani
> >
> > ==
> > Send a mail to [EMAIL PROTECTED] with unsubscribe
> ejbhome-discuss in
> > the body of the message to unsubscribe from this list. Any problems
> > with this list, send a mail to [EMAIL PROTECTED]
> >
>
> ==
> Send a mail to [EMAIL PROTECTED] with unsubscribe ejbhome-discuss in
> the body of the message to unsubscribe from this list. Any problems
> with this list, send a mail to [EMAIL PROTECTED]
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to