[appengine-java] Re: java.lang.IllegalStateException: Found a jar file too large to upload: C:\DOCUM E~1\USER~1.SER\LOCALS~1\Temp\appcfg58666690729387545.tmp\WEB-INF\lib\gwt-user.ja r. Consider usin

2011-10-11 Thread Sudhakar Abraham
Your application in war directory seems to be  too large.  Try options
--enable_  jar_splitting with appcfg command in appengine-java-sdk.

step 1:  Go to Google App engine sdk directory through command prompt

step 2:   Type   appcfg --enable_jar_splitting update   war_directory
of  your application

  Ex:
   Your_appengine_sdk_directory\appengine-java-
sdk-1.5.0.1\binappcfg --enable_
jar_splitting update Your_war_directory

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GAE - Vote counting system

2011-10-11 Thread Mat Jaggard
Sorry to bring this thread back up again, but I've noticed quite a lot
of issues being posted to this and other groups about the task queue
system failing - and scrolling back through the issues page (http://
code.google.com/status/appengine) it's always the taskqueue that has
problems. Those of you who use it - are you finding it safe enough for
production use with the kind of volumes and importance that's been
mentioned here? Just wondering whether to re-factor my code to this
pattern or continue writing too much to the datastore on each request.

Thanks,
Mat.

On Oct 3, 7:34 pm, Jeff Schnitzer j...@infohazard.org wrote:
 On Mon, Oct 3, 2011 at 9:24 AM, Mat Jaggard matjagg...@gmail.com wrote:
  Jeff - I'm a bit confused. I thought that the whole idea of the
  datastore was that you could read or write as much as you want, as
  fast as you want as long as they are not related? So one datastore
  write per vote (and being written to different entity groups) should
  be fine? I thought that the system just split tablets if they were
  being accessed too much - so as long as the traffic didn't suddenly
  increase, there'd be no scalability issues apart from cost.

 apart from cost he says :-)

 The OP posited millions of users and millions of things to vote for.
 Each million votes will cost you (at minimum) $1.70 for one write +
 one read, but it'll probably be more depending on how many page views
 you have and what caching strategy you have.  Still, maybe this is no
 big deal.

 The bigger problem though is that vote traffic is likely to be focused
 on a handful of items.  Popular things might get thousands of votes
 per second, unpopular things won't be voted for at all.  It's hard to
 come up with a sharding strategy that works well for this - you
 probably don't want 1k shards for everything, storage costs go up and
 expense/latency of calculating totals goes up.

 I have to deal with a similar problem myself right now (with the added
 constraint that I need an instantaneously precise count).  I'm
 considering a system that automatically tracks latency and increases
 the shard count when it crosses a threshold.  It's not a pretty
 problem to solve.

 Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Calling app script published as service

2011-10-11 Thread Vik
Hello

Thorough my app engine code i want to invoke a Google App Script published
as a service. I would need to pass couple of parameters to this service.

Can someone please advise me on how to do the calling part?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] SQL Service

2011-10-11 Thread Muhammad Ijaz Khan
Any thoughts on
thishttp://googleappengine.blogspot.com/2011/10/google-cloud-sql-your-database-in-cloud.htmlannouncement,
please share :)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] SQL Service

2011-10-11 Thread Matthew Jaggard
You're not a regular here are you?!

On 11 October 2011 14:24, Muhammad Ijaz Khan aija...@gmail.com wrote:
 Any thoughts on this announcement, please share :)

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] SQL Service

2011-10-11 Thread Muhammad Ijaz Khan
Yes, but even when I searched my mailbox I didnt find anything :$

On Tue, Oct 11, 2011 at 4:38 PM, Matthew Jaggard matt...@jaggard.org.ukwrote:

 You're not a regular here are you?!

 On 11 October 2011 14:24, Muhammad Ijaz Khan aija...@gmail.com wrote:
  Any thoughts on this announcement, please share :)
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
 google-appengine-java@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: unable to send an email with attachment

2011-10-11 Thread Rajaganapthi
I am also face the same problem.  I can't attach my text to
attachement with mail.  Please help me.  I didn't get any proper
solution yet.

import java.io.UnsupportedEncodingException;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



public class MailServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
public void doPost(HttpServletRequest req, HttpServletResponse resp)
  {
System.out.println(Mail Servlet is called);
Properties properties = new Properties();
Session session = Session.getDefaultInstance(properties, null);
String message = Welcome to www.datastoregwt.com;
String attachement = attachementString for testing ;
try
{

Message msg = new MimeMessage(session);
Multipart mp = new MimeMultipart();
MimeBodyPart bodyPart = new MimeBodyPart();
bodyPart.setContent(attachement, text/plain);
mp.addBodyPart(bodyPart);
MimeBodyPart bodyPart1 = new MimeBodyPart();
bodyPart1.setContent(attachement, text/html);
mp.addBodyPart(bodyPart1);
msg.setFrom(new InternetAddress(rajaganapathiv...@gmail.com,
Rajaganapathi  velayutham));
  msg.addRecipient(Message.RecipientType.TO, new
InternetAddress(j.gane...@datastoregwt.com, J.Ganesan));

msg.setFrom(new
InternetAddress(rajaganapathiv...@gmail.com,vraja));
msg.addRecipient(Message.RecipientType.TO, new
nternetAddress(vrajaganapathi49...@yahoo.co.in));
  msg.setSubject(Invitation from www.datastoregwt.com);
  msg.setText(message);
  msg.setContent(mp);
  Transport.send(msg);

 }
 catch (AddressException e1)
 {
  e1.printStackTrace();
 }
 catch (MessagingException e2)
 {
   e2.printStackTrace();
 }
 catch (UnsupportedEncodingException e)
 {
   e.printStackTrace();
 }
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Mails got lost between appstore and gmail

2011-10-11 Thread Jan Schweizer
Hi, as I tryout I did a small application for my sons school which 
ultimately resulted in some 25 mails being sent out to each a list of 4 
recipients (to) and  20 recipients BCC. One of the TO addresses has been my 
googlemail account.

What happened is that I only received 8 of those initially sent emails but 
got responses from one of the BCC recipients in one of the other mails.

Now I'm wondering: If the BCC recipient got that mail and I was on the TO - 
why didn't I get this email as well?

To me it looks as if some of these mails where swallowed somewhere inside 
google (between appstore and googlemail) and I'd really like to know what I 
can do to prevent that from happening.

Any suggestions on that?

Thanks

Jan

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/2aS_UDoNnZoJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.